v51

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-01121113461.4 KB
mailboxes

Render a message template

Render the template's html and text bodies with placeholders resolved from the mailbox and the authenticated user (name, user_name, custom attributes). When a draft message_id is provided, message-level placeholders (recipient_name) are also resolved. Unresolved placeholders keep their {placeholder} token.

get/api/v1.0/mailboxes/{mailbox_id}/message-templates/{id}/render/

Path parameters

idstring required
mailbox_idstring uuid required

Query parameters

message_idstring uuid

Optional draft id used to resolve message-level placeholders. Ignored unless it references a draft owned by this mailbox.

Response

html_bodystring required
text_bodystring required

Example response

{
  "html_body": "<p>John Doe</p>",
  "text_body": "John Doe"
}