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, reconcile, 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.

On this page