Templates

Create a template

Stores reusable content addressed by templateId, so a send can name the template instead of carrying the markup.

subject, body, and the preheader support {{variable}} placeholders, resolved at send time against the per-call variables first and the contact's own fields second. fromEmail must sit on a verified domain or every send from this template fails.

Version 1 is written immediately. Every later content change bumps the version and keeps the previous one, which is what POST /v1/templates/{id}/rollback restores.

post/v1/templates

Request

  • Base URL: https://api.volanea.com
  • URL: https://api.volanea.com/v1/templates
  • Auth: HTTP bearer

Request body

namestring required
type'transactional' | 'marketing'

Marketing templates get the unsubscribe footer and respect the subscribed flag.

subjectstring required
bodystring required

HTML with {{variable}} placeholders.

fromNamestring
fromEmailstring email required

Response

Created (version 1 is snapshotted).

templateIdstring required
projectIdstring
namestring required
type'transactional' | 'marketing' required
subjectstring required
bodystring required
fromNamestring nullable
fromEmailstring email required
versioninteger required

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

createdAtstring date-time required
updatedAtstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.