Duplicate a template

POST/v1/templates/{id}/duplicate

Secret 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

  • idstringrequired

    Template id.

Response

201 · Template

  • templateIdstringrequired
  • projectIdstring
  • namestringrequired
  • typeenumrequired
    transactionalmarketing
  • subjectstringrequired
  • bodystringrequired
  • fromNamestring | null
  • fromEmailemailrequired
  • versionintegerrequired

    Bumped on every content change; old versions are kept for rollback.

  • createdAtdate-timerequired
  • updatedAtdate-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