Batch Send

Send up to 100 emails in a single request

POST/v1/send/emails/batch

Send multiple emails in a single batch. Maximum 100 emails per request. Partial failures are possible.

Requires:send:write

Request Body

Body Parameters

emailsobject[]required
Array of email objects (max 100). Each email follows the same schema as the single send endpoint.
Send a batch of emails
curl -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."
    }
  ]
}'
Response202
{
"message": "2 emails queued for delivery",
"results": [
  { "id": "msg_abc123", "status": "queued" },
  { "id": "msg_def456", "status": "queued" }
]
}