curl --request POST \
--url https://apix.spotzee.com/api/client/templates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "email",
"campaign_id": 123,
"locale": "en-AU",
"data": {
"from": {
"name": "<string>",
"address": "jsmith@example.com"
},
"cc": "jsmith@example.com",
"bcc": "jsmith@example.com",
"reply_to": "jsmith@example.com",
"subject": "<string>",
"text": "<string>",
"html": "<string>",
"mjml": "<string>"
}
}
'{
"id": 158,
"project_id": 123,
"campaign_id": 24,
"type": "email",
"locale": "en-AU",
"data": {},
"created_at": "<string>",
"updated_at": "<string>",
"name": "<string>"
}Creates a new template for a campaign. The type discriminator chooses the channel-specific data shape (email, text, push, webhook, in_app).
curl --request POST \
--url https://apix.spotzee.com/api/client/templates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "email",
"campaign_id": 123,
"locale": "en-AU",
"data": {
"from": {
"name": "<string>",
"address": "jsmith@example.com"
},
"cc": "jsmith@example.com",
"bcc": "jsmith@example.com",
"reply_to": "jsmith@example.com",
"subject": "<string>",
"text": "<string>",
"html": "<string>",
"mjml": "<string>"
}
}
'{
"id": 158,
"project_id": 123,
"campaign_id": 24,
"type": "email",
"locale": "en-AU",
"data": {},
"created_at": "<string>",
"updated_at": "<string>",
"name": "<string>"
}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.
Create a new template. The type discriminator selects the channel-specific data shape.
email Campaign this template belongs to.
BCP-47 locale tag (for example en-AU).
"en-AU"
Email template payload — supports plain-text, HTML, and MJML bodies.
Hide child attributes
The newly created template.
A localised, channel-specific message body bound to a campaign.
Numeric template identifier.
158
Identifier of the owning project.
Identifier of the campaign this template belongs to.
24
Delivery channel a template is bound to.
email, text, push, webhook, in_app "email"
BCP-47 locale this template is authored in.
"en-AU"
Optional human-readable template name.
Was this page helpful?