Create template
create_templateCreate a draft email template with HTML, subject, and {{{VARIABLE}}} placeholders; publish it later before sending.
Instructions
POST /templates. Creates a template DRAFT (it cannot be sent until publish_template is called). Use {{{VARIABLE}}} placeholders in html, text, subject and preview_text. The template also appears under Transactional > Templates in the Cresca app. Needs a full-access key. Returns { object: "template", id }.
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": {
"name": "<name>",
"html": "<html>"
},
"name": "create_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Default sender, e.g. "Acme <hello@acme.com>". | |
| html | Yes | HTML body. Use {{{VARIABLE}}} placeholders for values sent by the app. | |
| name | Yes | Template name, up to 120 characters, unique in the account. | |
| text | No | Plain-text version. If omitted, it is generated from the HTML at send time. | |
| alias | No | Readable id for sending, e.g. "password-reset": lowercase letters, numbers, dashes and underscores, up to 64 characters, unique in the account. | |
| subject | No | Default subject. Can contain variables. | |
| reply_to | No | Default Reply-To address. | |
| variables | No | Up to 50 variable definitions. Undeclared placeholders are added as string variables without a fallback on publish. | |
| preview_text | No | Inbox preview snippet shown after the subject, up to 500 characters. Can contain variables. |