Templates
Create TSX template projects, publish exact commits, and send from stable template references.
Email templates are stable entries in Git-backed TSX projects. Save creates a Git commit;
Publish creates an immutable publication that sends can reference by templateId or
templateSlug without a code deploy.
What you can do
- Manage template metadata and stable project entries.
- Edit, preview, save, and restore through the shared project workspace.
- Publish an exact saved commit and retrieve its immutable publication receipt.
Sending from a template
Reference a stored template from the send body instead of inline content:
{
"to": [{ "email": "ada@example.com" }],
"channel": "email",
"email": { "templateId": "tmpl_7q2xk9mvt4znw8rh" }
}Shared conventions (auth, status codes, errors, pagination) are in the REST API reference. Per-operation request and response detail is in the sidebar.
Related documentation
Update email tracking defaults
Updates one or both organization email tracking defaults and returns the complete saved policy. Recipient opt-out still takes precedence.
Add a template entry
Registers a `.tsx` file under `templates/` or `emails/` in an existing template project as its own template and returns it with status 201.