Templates
email_publish_template_version
Promote a version to live: what the API and automations resolve for this template.
write email_publish_template_version
Promote a version to live: what the API and automations resolve for this template. Only on the human's explicit OK after a test send. Publishing freezes the version (edits create a new draft).
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
slug | string | Yes | |
version | integer | No | Default: latest draft. |
projectId | string | No | Target company (project id) — required on company-scoped tools. Call email_list_projects to enumerate companies. |
send_template_testwrite
Render a template version (draft or published) and send it to a real inbox with example (or given) props.
unpublish_templatewrite
Take a published template back out of service: clears its live version and returns it to draft, so every send refuses with template_not_published until it is published again.