Send up to 100 emails in a single request
/v1/send/emails/batchSend multiple emails in a single batch. Maximum 100 emails per request. Partial failures are possible.
emailsobject[]requiredcurl -X POST "https://api.do.dev/v1/send/emails/batch" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"emails": [
{
"from": { "email": "hello@example.com" },
"to": "user1@example.com",
"subject": "Welcome!",
"text": "Welcome to the platform."
},
{
"from": { "email": "hello@example.com" },
"to": "user2@example.com",
"subject": "Welcome!",
"text": "Welcome to the platform."
}
]
}'{
"message": "2 emails queued for delivery",
"results": [
{ "id": "msg_abc123", "status": "queued" },
{ "id": "msg_def456", "status": "queued" }
]
}