Publish template (changes live email)
publish_templatePublishes a template’s current draft as a new live version; all future sends use it, so confirm before updating a template already in use.
Instructions
POST /templates/:id/publish. Copies the current draft (HTML, text, subject, default sender, Reply-To, preview text and variables) into a new published version. EVERY email sent with this template from then on uses the new version, so confirm with the user before publishing a template that is in use. Undeclared placeholders are added as string variables without a fallback. Earlier versions stay in the app's version history. Needs a full-access key. Returns { id, version }.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "publish_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The template id or alias. |