Template Tags
Work with template variable tags like #topic and #style
Template tags are placeholders in prompts (e.g., #topic, #style) that can be dynamically replaced with actual values.
Return all template variable tags inside an elemental (mostly used in prompts).
Tags like: #name, #age, #state
API Key authentication. Get your key at snackprompt.com/api-keys.
Example: x-api-key: sk-your-api-key-here
Elemental ID
List of template tags
HTTP status code
200Unauthorized
Elemental not found
curl -X GET "https://api-integrations.snackprompt.com/v1/elemental/abc123/tags" \
-H "x-api-key: YOUR_API_KEY"
{
"code": 200,
"meta": {
"version": "v1.0.2"
},
"response": {
"list": [
"#topic",
"#tone",
"#audience",
"#length"
],
"plaintext": "#topic #tone #audience #length"
}
}API Key authentication. Get your key at snackprompt.com/api-keys.
Example: x-api-key: sk-your-api-key-here
Elemental ID
Key-value pairs where keys are tag names (with
Prepared template with replaced values
HTTP status code
200Unauthorized
Elemental not found
curl -X POST "https://api-integrations.snackprompt.com/v1/elemental/abc123/template/prepare" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"#topic": "artificial intelligence",
"#tone": "professional",
"#audience": "business executives"
}'
{
"code": 200,
"meta": {
"version": "v1.0.2"
},
"response": {
"result": "Write a professional blog post about artificial intelligence that is approximately 500 words. Target audience: business executives."
}
}Last updated
Was this helpful?