Send a batch of emails
/emails/batchAuthorizationJeton Bearer · headerrequisA BillionSend API key (bs_…).
Idempotency-Keystring1 to 256 characters. A retry with the same key and the same body answers the original response instead of sending again; the same key with a different body answers 409 invalid_idempotent_request.
x-batch-validationstringstrict (default): any invalid email rejects the whole batch with that email's error, sending nothing. permissive: invalid emails are listed in errors by index and the valid ones are sent.
strictpermissiveapplication/jsonSendEmailRequestfromstringrequisSender, "Name <user@domain>" or bare address; the domain must be verified for the team
tostring | string[]requisRecipient address or list of up to 50
Afficher les propriétésMasquer les propriétés
stringstringstringsubjectstringrequisSubject line
htmlstringHTML body; at least one of html/text is required
textstringPlain-text body; at least one of html/text is required
ccstring | string[]Cc address or list
Afficher les propriétésMasquer les propriétés
stringstringstringbccstring | string[]Bcc address or list
Afficher les propriétésMasquer les propriétés
stringstringstringreply_tostring | string[]Reply-To address or list
Afficher les propriétésMasquer les propriétés
stringstringstringscheduled_atstringDeliver later: ISO 8601 with offset, or relative like "in 2 hours" (an ISO 8601 datetime with offset (e.g. "2026-09-01T12:00:00Z") or a relative time like "in 5 mins", "in 2 hours", or "in 1 day"); max 30 days ahead
tagsobject[]Key/value labels attached to the email for filtering; names starting with billionsend_, in any letter case, are reserved
Afficher les propriétésMasquer les propriétés
objectnamestringrequisvaluestringrequistopic_idstring<uuid> | nullTopic id: recipients opted out of the topic are skipped; a send to one address that is a contact also gets that contact's unsubscribe link. A topic bound to a domain (domain_id) can be sent only from that domain (422 otherwise)
attachmentsobject[]Attachments with base64 content (no remote paths)
Afficher les propriétésMasquer les propriétés
objectfilenamestring | boolean | nullAfficher les propriétésMasquer les propriétés
stringbooleannullcontentstringcontent_typestringcontent_idstringInline part: the HTML shows it with <img src="cid:<content_id>">
pathstringheadersobjectExtra message headers (transport headers are rejected)
templateanyNot supported: any value is a 422; an email takes html and/or text
Batch accepted
dataobject[]requisAfficher les propriétésMasquer les propriétés
objectidstring<uuid>requiserrorsobject[]Afficher les propriétésMasquer les propriétés
objectindexintegerrequismessagestringrequisIdempotency-Key is not 1 to 256 characters
statusCodenumberrequisnamestringrequismessagestringrequisMissing, malformed, unknown or revoked API key
statusCodenumberrequisnamestringrequismessagestringrequisRestricted API key
statusCodenumberrequisnamestringrequismessagestringrequisNot found
statusCodenumberrequisnamestringrequismessagestringrequisIdempotency conflict
statusCodenumberrequisnamestringrequismessagestringrequisValidation error
statusCodenumberrequisnamestringrequismessagestringrequisSending quota exceeded, or the rate limit (rate_limit_exceeded, with Retry-After)
statusCodenumberrequisnamestringrequismessagestringrequis