Duplicate a template
POST
/v1/templates/{id}/duplicateSecret key — sk_… or sk_test_… · Base URL https://api.volanea.com
Clones the current content as a new template with its own fresh version-1 history (the source's version history is not copied).
Path parameters
idstringrequiredTemplate id.
Response
201 · 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/duplicate \
-X POST \
-H "Authorization: Bearer sk_..."Response
201 · 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