Send transactional email
send_transactional_emailSend one email to one address now, for something the person did or asked for (a receipt, a login link, a notice), never marketing. It goes out within seconds and cannot be recalled. Merge tags read variables as {{ variables. }}. Pass an idempotency_key so a retry never sends twice: the same key returns the first email and sends nothing. A blocked address (recipient_blocked) or a sender that cannot send yet (sender_not_ready) is refused.
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>",
"to": "<to>",
"subject": "<subject>",
"preview_text": "<preview_text>",
"html": "<html>",
"markdown": "<markdown>",
"template_id": "<template_id>",
"variables": "<variables>",
"reply_to": "<reply_to>",
"idempotency_key": "<idempotency_key>"
},
"name": "send_transactional_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| html | Yes | The body as HTML. Null when you send markdown or a template_id. | |
| subject | Yes | ||
| markdown | Yes | The body as markdown. Null when you send html or a template_id. | |
| reply_to | Yes | Null uses the sender's reply-to address. | |
| variables | Yes | Values for {{ variables.<key> }} merge tags. | |
| project_id | Yes | ||
| template_id | Yes | Copy a template's subject, preview text and body; then subject, preview_text, html and markdown are null. | |
| preview_text | Yes | The line inbox previews show after the subject. | |
| idempotency_key | Yes | Your own unique id for this email, e.g. "order-1234-receipt". |