Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Email data to send
Recipient email address and name
Sender email address (must be from a verified domain) and name
Email subject line (max 998 characters). Required if not using templateId.
998"Welcome to Our Platform!"
HTML content of the email. Required if not using templateId.
Handlebars Template Variables:
Use Handlebars syntax for template variables in your HTML. Variables are wrapped in double curly braces: {{variableName}}. Example:
<h1>Hello {{firstName}}!</h1>
<p>Your order #{{orderNumber}} has been shipped.</p>
<p>Total: {{orderTotal}}</p>Provide the values for these variables in the dynamicData field.
"<h1>Hello {{firstName}}!</h1>\n\n<p>Your order #{{orderNumber}} has been shipped.</p>\n\n<p>Total: {{orderTotal}}</p>"
Key-value pairs for template variable substitution (Handlebars syntax)
{
"name": "Jane",
"firstName": "Jane",
"orderNumber": "ORD-12345",
"orderTotal": "$99.99"
}Plain text version of the email
"Welcome! Thanks for signing up."
ID of the email template to use. Required if not providing html/text.
"tmpl_abc123"
Reply-to email address and name
ID of the unsubscribe group
"unsub_group_123"