curl --request POST \
--url https://apix.spotzee.com/api/client/templates/{templateId}/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"user": {},
"event": {},
"context": {}
}
'{}Compiles the template against the supplied user, event, and context payloads and returns the rendered output. Useful for previewing campaign content before sending.
curl --request POST \
--url https://apix.spotzee.com/api/client/templates/{templateId}/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"user": {},
"event": {},
"context": {}
}
'{}Documentation Index
Fetch the complete documentation index at: https://docs.spotzee.com/llms.txt
Use this file to discover all available pages before exploring further.
Project-scoped secret API key (sk_…). Pass in the Authorization: Bearer <key> header. Grants access to the project the key was issued for.
Numeric template identifier.
158
Variables and context used to render a template for preview.
The compiled, channel-specific preview.
Compiled preview output. Shape varies by channel: email returns {from, subject, html, text}; SMS returns {text}; etc.
Was this page helpful?