Skip to main content
POST

Headers

string
required
Bearer YOUR_API_KEY
string
required
application/json

Body

string | string[]
required
Recipient email address or array of up to 50 addresses.
string
required
Email subject line. Supports {{variable}} template variables.
string
HTML body of the email. Supports {{variable}} substitution. Required if template_id is not provided.
string
Plain text fallback body. Recommended alongside html.
string
ID of a saved template to use. Overrides html / text if provided.
object
Key-value pairs for {{variable}} substitution in the subject, html, or template.
string
Override the sender address. Must be a verified sending domain. Defaults to your project’s primary sending domain.
string
Reply-to email address.
object
Arbitrary key-value metadata attached to the log entry for filtering (e.g. { "type": "welcome", "user_id": "abc123" }).

Response

boolean
true if all recipients were sent successfully.
number
Number of successfully sent emails.
number
Number of failed sends.
array
Per-recipient result array.

Template variables

Use {{variable_name}} syntax anywhere in subject, html, or text, then pass values via template_data: