Send up to 100 emails
/emails/batchThe body is a JSON list of up to 100 emails, each with the fields of POST /emails, and each sent as its own email (its own id, status and events). Answers 200 with one result per email, in request order: its id (and scheduled_at), or the error that refused it; an error's param starts with the email's position in the list (1.from). One invalid email never fails the others. The request itself (not a list, an empty one, more than 100) is refused with 400 like any other. No attachments in a batch: send those through POST /emails. Each email may use a template (template_id + variables); one batch may use at most 10 different templates.
Permission: emails:send · on the API key screen: Transactional email → Full access · All permissions
Body parameters
fromstringrequiredThe sender:
you@yourdomain.comorYour Name <you@yourdomain.com>. Its domain must be a verified sending domain of the account or a subdomain of one. The name may not contain an email address.At least 3 characters. At most 320 characters.
tostring | string[]requiredRecipient address(es), at most 50: plain addresses (no names). To, cc and bcc together: at most 50. Addresses are lower-cased and repeats dropped (an address already in to is left out of cc and bcc).
ccstring | string[]Cc address(es), at most 50.
bccstring | string[]Bcc address(es), at most 50.
reply_tostring | string[]Reply-To address(es), at most 10.
subjectstringThe subject line: one line, no control characters. Required, unless you send a template_id: then it defaults to the template's subject (filled in with variables).
At least 1 characters. At most 998 characters.
htmlstringThe HTML body. Sent as given (no templating). At least one of html and text is required (whitespace alone does not count), unless you send a template_id instead. Its length is counted in UTF-16 code units, as JavaScript's .length counts (most emoji count as 2).
At most 1,048,576 characters.
textstringThe plain-text body. Generated from the HTML when omitted. Its length is counted in UTF-16 code units, as JavaScript's .length counts (most emoji count as 2).
At most 1,048,576 characters.
template_idstringSend a transactional template made in the app (Templates → Transactional) instead of html / text: its id, from GET /api/v1/templates. A marketing template is refused (422 template_not_transactional). Filled in with variables when the email is accepted; no unsubscribe footer is added (this is transactional email). Give either template_id or html / text, not both.
At most 2,000 characters.
variablesobjectValues for the template's tags: {{ name }} reads variables.name, {{ order.total }} reads variables.order.total, and {% for item in items %} repeats over a list. Text, numbers, true / false, null, lists and objects. At most 5 levels, 2000 keys and values in all, keys of at most 100 characters, text values of at most 5000 characters and 200000 characters of keys and text together. Values are written as text, escaped for where they land: a value can never add HTML to the email.
At most 2000 keys.
headersobjectExtra headers: X-… headers and List-Unsubscribe, List-Unsubscribe-Post, List-Id, In-Reply-To, References, Auto-Submitted, Precedence. At most 15. Name (at most 76 characters) and value together at most 996 characters; the value one line and not empty. Non-ASCII text is allowed in X-… values (sent MIME-encoded); the list and threading headers must be plain ASCII.
At most 15 keys.
tagsobject[]Labels for your own use: they come back on the email, in webhooks, and group emails on the Groups screen.
At most 10 items.
Show propertiesHide properties
namestringrequiredLetters, digits, _ and -.
At least 1 characters. At most 64 characters.
valuestringrequiredLetters, digits, _ and -.
At least 1 characters. At most 256 characters.
scheduled_atstringSend later: an ISO 8601 date and time WITH its offset (2026-01-31T12:00:00Z or 2026-01-31T07:00:00-05:00), at most 30 days ahead. A time in the past sends now.
At most 40 characters.
Response
dataobject[]At most 100 items.
Show propertiesHide properties
indexnumberidstring | nullAt most 2,000 characters.
statusstring | nullOne of:
scheduledqueuedsendingsentfailedcancelledAt most 2,000 characters.
scheduled_atstring | nullAt most 2,000 characters.
errorobject | nullShow propertiesHide properties
codestringAt most 64 characters.
messagestringAt most 2,000 characters.
paramstring | nullAt most 200 characters.