Batch sending puts up to 100 separate emails in one API call. Each email has its own recipients and content; nothing is shared between them.
To send a batch
curl https://api.mailcandor.com/v1/emails/batch \
-H "Authorization: Bearer $MAILCANDOR_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: digest-2026-11-16-part-1" \
-d '[
{
"from": "Acme <hello@acme.com>",
"to": "sam@example.com",
"subject": "Your weekly summary",
"html": "<p>Hi Sam, here is your week.</p>"
},
{
"from": "Acme <hello@acme.com>",
"to": "ana@example.com",
"subject": "Your weekly summary",
"html": "<p>Hi Ana, here is your week.</p>"
}
]'
The body is a JSON array, not an object. The answer is 202 Accepted with the ids in the same order:
{ "data": [ { "id": "0b1d..." }, { "id": "7e2c..." } ] }
Any key type can send a batch, including sending-only keys.
What each email can contain
The same fields as POST /v1/emails (from, to, cc, bcc, reply_to, subject, html, text, headers, tags, template), with two exceptions:
| Not allowed in a batch | Instead |
|---|---|
attachments |
Send those emails one at a time. |
scheduled_at |
Send scheduled emails one at a time. |
Each email still has its own 50-recipient limit across to, cc and bcc.
All or nothing
Mailcandor checks every email before storing any. If email 3 has a problem, nothing is sent and the error says where:
{
"error": {
"type": "missing_required_field",
"message": "Email 3: Add subject.",
"field": "3.subject"
}
}
Positions start at 0. Fix that email and send the whole batch again.
Limits
- 1 to 100 emails per request. More returns
422 validation_error: “Send at most 100 emails per batch.” - One batch counts as one request against your team’s per-second rate limit.
- On Starter, the whole batch counts against the 100-a-day and 3,000-a-month quota. If the batch would go over, none of it is sent.
Batch or broadcast?
- Use batch when your code builds each email itself: digests, notifications, per-user reports.
- Use a broadcast when the same email goes to an audience of contacts and needs one-click unsubscribe. See Broadcasts and audiences.
Retrying safely
Add an Idempotency-Key header. If the request times out and you retry with the same key and the same body within 24 hours, you get the first answer back and nothing is sent twice. See Idempotency.
If it does not work
422“Send a JSON array of 1 to 100 emails.”: the body is an object or empty. Wrap your emails in[ ].422withfieldlike5.attachments: remove attachments from batch emails.422withfieldN.scheduled_at: removescheduled_at.403 domain_not_verifiedwith “Email N: …”: that email’sfromdomain is not verified.429 daily_quota_exceeded: on Starter, the batch would pass 100 emails today. Send fewer or change plan.
Full reference: docs.mailcandor.com.