Send a batch of emails
/emails/batchAuthorizationBearer 令牌 · header必填A 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/jsonSendEmailRequest 数组fromstring必填Sender, "Name <user@domain>" or bare address; the domain must be verified for the team
tostring | string[]必填Recipient address or list of up to 50
显示属性隐藏属性
stringstring 数组stringsubjectstring必填Subject 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
显示属性隐藏属性
stringstring 数组stringbccstring | string[]Bcc address or list
显示属性隐藏属性
stringstring 数组stringreply_tostring | string[]Reply-To address or list
显示属性隐藏属性
stringstring 数组stringscheduled_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
显示属性隐藏属性
object 数组namestring必填valuestring必填topic_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)
显示属性隐藏属性
object 数组filenamestring | boolean | null显示属性隐藏属性
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[]必填显示属性隐藏属性
object 数组idstring<uuid>必填errorsobject[]显示属性隐藏属性
object 数组indexinteger必填messagestring必填Idempotency-Key is not 1 to 256 characters
statusCodenumber必填namestring必填messagestring必填Missing, malformed, unknown or revoked API key
statusCodenumber必填namestring必填messagestring必填Restricted API key
statusCodenumber必填namestring必填messagestring必填Not found
statusCodenumber必填namestring必填messagestring必填Idempotency conflict
statusCodenumber必填namestring必填messagestring必填Validation error
statusCodenumber必填namestring必填messagestring必填Sending quota exceeded, or the rate limit (rate_limit_exceeded, with Retry-After)
statusCodenumber必填namestring必填messagestring必填