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
json
{
"from": "[email protected]",
"to": ["[email protected]"],
"template_name": "welcome",
"variables": {
"first_name": "Alex",
"company_name": "Acme"
},
"configuration_set_name": "production"
}Response
Same shape as /send, including
results on a send that stops part way.
Variable substitution
{{first_name}} and {{ first_name }} (with spaces) both resolve.
A number or true / false goes in as you wrote it, a list or an
object as its JSON. null counts as missing.
Missing variables stay as-is in the rendered output: they don't raise
errors, and declared_vars is not checked at send time. To enforce
required variables, check them on your side before you call.
A subject that holds a line break once its variables are in is refused
with 400 INVALID_REQUEST, before any charge.
cURL
bash
curl https://api.splashifypro.com/api/v1/partner/email/send-template \
-H "Authorization: Bearer $SPLASHIFY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": "[email protected]",
"to": ["[email protected]"],
"template_name": "welcome",
"variables": {"first_name": "Alex"}
}'