Sending an email
Send a transactional email: a receipt, a password reset, an alert.
POST/emails with from, to, subject and html and/or text. The From address must be on a verified sending domain of your account (or a subdomain of one). Addresses can be one string or a list; to, cc and bcc together take at most 50 addresses. When you give only HTML, the plain-text part is made from it. The answer is 201 with the email's id. Endpoint reference →
{
"from": "Acme Support <support@acme.com>",
"to": ["sam@example.com"],
"cc": "manager@example.com",
"reply_to": "help@acme.com",
"subject": "Your password reset link",
"html": "<p>Reset it <a href=\"https://acme.com/reset?t=…\">here</a>.</p>",
"text": "Reset it here: https://acme.com/reset?t=…",
"headers": { "X-Entity-Ref-ID": "reset-8812" },
"tags": [{ "name": "category", "value": "password_reset" }]
}Transactional, not marketing
The body is sent exactly as you give it: no templating and no footer (to fill in a design made in the app, send a template). POST/emails is for email sent because of something the recipient did. For newsletters and promotions use marketing campaigns: they go only to people who subscribed and carry the unsubscribe footer for you.
Tags
Add tags (name and value: ASCII letters, digits, _ and -; each name once per email) to label emails. They come back on the email and in webhooks, and the Tag reports screen in the app shows delivery, opens, clicks and bounces per tag.
Custom headers
A custom header must start with X- or be one of List-Unsubscribe, List-Unsubscribe-Post, List-Id, In-Reply-To, References, Auto-Submitted and Precedence.