Access is invite-only during beta. Once invited, create a key to personalize these examples. Production sending requires a separate review.
Templates
Hosted Liquid templates.
Hosted Liquid templates. Create a draft, edit HTML, text, subject, and global CSS, then publish. Send with template.id (alias or public id) and a variables object. Drafts cannot send. Editing a published template keeps the published snapshot live until you publish again. CSS is injected and inlined at send time. id on member routes is the public id or the alias.
GET /api/v1/teams/:obfuscated_team_id/templates
List templates.
GET /api/v1/templates/:id
Get one template by public id or alias. Returns the current draft fields.
id: Public template id or alias
POST /api/v1/teams/:obfuscated_team_id/templates
Create a draft template. Alias is generated from name when omitted.
PATCH /api/v1/templates/:id
Update draft fields. The published snapshot is unchanged until you publish.
id: Public template id or alias
POST /api/v1/templates/:id/publish
Publish the current draft. Sends use this snapshot until the next publish.
id: Public template id or alias
POST /api/v1/templates/:id/duplicate
Copy the draft into a new unpublished template.
id: Public template id or alias