Update a template
PATCH
/v1/templates/{id}Secret key — sk_… or sk_test_… · Base URL https://api.volanea.com
Content changes (subject, body, from) bump the version and snapshot the new content for rollback.
Path parameters
idstringrequiredTemplate id.
Body
Required · application/json
namestringtypeenumMarketing templates get the unsubscribe footer and respect the subscribed flag.
transactionalmarketingsubjectstringbodystringHTML with `{{variable}}` placeholders.
fromNamestringfromEmailemail
Response
200 · Template
templateIdstringrequiredprojectIdstringnamestringrequiredtypeenumrequiredtransactionalmarketingsubjectstringrequiredbodystringrequiredfromNamestring | nullfromEmailemailrequiredversionintegerrequiredBumped on every content change; old versions are kept for rollback.
createdAtdate-timerequiredupdatedAtdate-timerequired
Errors
Every failure returns the standard envelope — branch on `code`, never on the wording of `error`.
401Missing or invalid API key.404Not found.422Request validation failed (code `validation_error`, 422).
Request
curl https://api.volanea.com/v1/templates/id_123 \
-X PATCH \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Welcome",
"type": "transactional",
"subject": "Your order shipped"
}'Response
200 · application/json
{
"success": true,
"data": {
"templateId": "tpl_9f2c",
"projectId": "<projectId>",
"name": "Welcome",
"type": "transactional",
"subject": "Your order shipped",
"body": "<p>On its way, {{firstName}}.</p>",
"fromName": "Acme",
"fromEmail": "hello@yourdomain.com",
"version": 1,
"createdAt": "2026-01-01T09:00:00.000Z",
"updatedAt": "2026-01-01T09:00:00.000Z"
}
}92 endpoints · OpenAPI document