Skip to content

Send batch

POST /emails/batch

Send up to 100 emails in one HTTP request. Each email is queued individually; the response includes one id per email in submission order.

FieldTypeRequiredDescription
emailsobject[]yesArray of email objects (max 100).
Terminal window
curl -X POST https://mail.3ava.com/api/emails/batch \
-H "Authorization: Bearer am_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"emails": [
{
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Hello A",
"html": "<p>Hi A</p>"
},
{
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Hello B",
"html": "<p>Hi B</p>"
}
]
}'
{
"data": [
{ "id": "a1b2...", "status": "queued" },
{ "id": "c3d4...", "status": "queued" }
]
}

If any individual email fails validation, the whole batch is rejected with 422. Either all 100 are queued, or none are.