Prepare Elemental Template
Return the elemental template with replaced tags
POST/v1/elemental/{id}/template/prepare- Param
- Body
- Response
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | ✅ | ID of the elemental |
Example
/v1/elemental/your-elemental-id/template/prepare
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| any | any | ❌ | Any key-value pair to replace the tags in the template, need to send #[] struct. Ex: #[name] |
Example
{
"#[name]": "Leonardo",
"#[lastname]": "Sola"
}
Properties
| Name | Type | Description |
|---|---|---|
| result | string | The template with replaced tags |
Example
{
"response": {
"result": "Leonardo Sola ❤️ Snack Prompt"
}
}
CURL Example
curl -X POST "https://api-integrations.snackprompt.com/v1/elemental/{id}/template/prepare" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"#[name]":"Leonardo","#[lastname]":"Sola"}'