Send a transactional email via the public API. Automatically creates/updates contacts.
API Key authentication. Secret keys (sk_*) are required for all endpoints except /v1/track. Public keys (pk_*) only work with the /v1/track endpoint for client-side event tracking. The project is automatically derived from the key.
Recipient email(s). Can be a string, an object with {name, email}, or an array of either.
Sender email address (requires verified domain). Required unless using a template that has a 'from' address configured. Can be a string (e.g., "[email protected]" or "My App <[email protected]>") or an object with {name, email} (e.g., {name: "My App", email: "[email protected]"}).
Email subject (required if no template)
Email body HTML (required if no template)
Template ID to use for this email. When provided, uses the template's subject, body, from, and reply-to settings. You can override these by explicitly providing subject, body, from, or reply fields in the request. Template variables are populated from the data field.
Sender display name (alternative to using from.name)
Whether recipient is subscribed to marketing emails. Defaults to false for transactional emails.
Optional template variables. Choose Empty object if you do not want to send any example preset keys.
{
"resetLink": "https://example.com/reset/abc123"
}Custom email headers
Reply-to address
Email attachments (max 10 attachments, 10MB total)
10