Sending

How to send up to 100 emails in one request

Short answer

To send many emails at once with Mailcandor, POST a JSON array of 1 to 100 email objects to https://api.mailcandor.com/v1/emails/batch. Each object takes the same fields as a single send, except attachments and scheduled_at. Every email is checked first: if one is wrong, none are sent and the error names its position. The answer is 202 with one id per email, in order.

Last checked 16 November 2026

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 [ ].
  • 422 with field like 5.attachments: remove attachments from batch emails.
  • 422 with field N.scheduled_at: remove scheduled_at.
  • 403 domain_not_verified with “Email N: …”: that email’s from domain 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.

Questions

Does a batch count as one request for the rate limit?

Yes. One batch call of 100 emails uses one request of your per-second limit, which is why batch is the way to send faster.

Can a batch include attachments?

No. Send emails with attachments one at a time with POST /v1/emails.

Can I schedule a batch?

No. Batch sends cannot be scheduled. Send scheduled emails one at a time with scheduled_at.

If one email in the batch is invalid, are the others sent?

No. A batch is all or nothing. Fix the email the error names and send the whole batch again.

Related

Send with someone on your side.

Unlimited domains on every plan, a person before any block, and 3,000 emails a month free. Tell us what you send and we set you up within one business day.