Send template
Send a previously-saved template
with per-recipient {{variables}} substituted in the subject + body.
POST /api/v1/partner/email/send-templateRequest body
{
"from": "hello@yourcompany.com",
"to": ["customer@example.com"],
"template_name": "welcome",
"variables": {
"first_name": "Alex",
"company_name": "Acme"
},
"configuration_set_name": "production"
}| Field | Type | Required | Notes |
|---|---|---|---|
from | string | yes | Verified identity |
to | string[] | yes | Up to 50 recipients |
cc / bcc | string[] | no | |
reply_to | string | no | |
template_name | string | yes | Friendly name from POST /templates |
variables | object | no | {{key}} tokens replaced in subject + body |
configuration_set_name | string | no | Event-routing scope |
customer_id | string | no | Downstream customer attribution |
category | string | no | transactional (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
| Status | Code | Meaning |
|---|---|---|
| 404 | TEMPLATE_NOT_FOUND | template_name not registered for this account |
| 400 | RENDERING_FAILURE | Template rendering failed (rare — most variables are forgiving) |