Batch Emails

Send up to 100 transactional emails in one request.

MethodPOST
/api/v2/emails/batch

Sends up to 100 transactional emails. Body is a JSON array of the same objects as Send Email. Permission: emails.

Body Parameters

Each array item:

NameTypeDescription
fromstringRequired. Sender. Display name is allowed. Domain must be verified.
tostring or [string]Required. One recipient. A one-address array is accepted.
subjectstringRequired. Subject line.
htmlstringHTML body. Provide exactly one of html, tiptap, or markdown.
tiptapstring or objectTipTap JSON. Rendered to HTML on send.
markdownstringMarkdown body. Rendered to HTML on send.
textstringPlain-text body. Omit to generate from HTML.
reply_tostring or string[]Reply-To addresses.
ccstring or string[]Carbon copies.
bccstring or string[]Blind carbon copies.
headersobjectExtra MIME headers.
tags{ name, value }[]Metadata tags stored on the email.
previewstringPreview / preheader text.

Options

NameTypeDescription
Idempotency-KeystringOptional header. Suffixed with :index per item. SDK: pass { idempotencyKey } as the second argument to emails.batch.

Response Fields

FieldTypeDescription
data{ id }[]Queued email ids, same order as the request.

Errors

StatusnameWhen
401missing_api_keyMissing or invalid bearer token
403missing_permissionToken lacks the emails permission
422validation_errorBody is not an array, or an item fails send validation