Skip to Content
API ReferenceEmailsSend template

Send template

Send a previously-saved template with per-recipient {{variables}} substituted in the subject + body.

POST /api/v1/partner/email/send-template

Request body

{ "from": "hello@yourcompany.com", "to": ["customer@example.com"], "template_name": "welcome", "variables": { "first_name": "Alex", "company_name": "Acme" }, "configuration_set_name": "production" }
FieldTypeRequiredNotes
fromstringyesVerified identity
tostring[]yesUp to 50 recipients
cc / bccstring[]no
reply_tostringno
template_namestringyesFriendly name from POST /templates
variablesobjectno{{key}} tokens replaced in subject + body
configuration_set_namestringnoEvent-routing scope
customer_idstringnoDownstream customer attribution
categorystringnotransactional (default) or marketing

Response

Same shape as /send.

Variable substitution

{{first_name}} and {{ first_name }} (with spaces) both resolve. Missing variables stay as-is in the rendered output — they don’t raise errors. To enforce required variables, declare them on the template via declared_vars.

cURL

curl https://apis.splashifypro.com/api/v1/partner/email/send-template \ -H "Authorization: Bearer $SPLASHIFY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "from": "hello@yourcompany.com", "to": ["customer@example.com"], "template_name": "welcome", "variables": {"first_name": "Alex"} }'

Common errors

StatusCodeMeaning
404TEMPLATE_NOT_FOUNDtemplate_name not registered for this account
400RENDERING_FAILURETemplate rendering failed (rare — most variables are forgiving)