Get Template HTML
get-template-htmlRetrieve a rendered email template by project ID and slug to get its HTML body, subject line, and merge tags. Use it to fetch template content for previewing or preparing personalized sends.
Instructions
Retrieve a rendered template by project_id and slug. Returns the HTML body, the subject (if set) and the list of merge tags (each with key, name and required flag). This endpoint uses a non-standard {success, data} response envelope.
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": {
"project_id": "<project_id>",
"slug": "<slug>"
},
"name": "get-template-html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Template slug. Required. | |
| project_id | Yes | Project ID containing the template. Required. |