Read error.type to know which 429 you have. The fixes are different.
rate_limit_exceeded: too many requests this second
{
"error": {
"type": "rate_limit_exceeded",
"message": "This team can make 10 requests a second. Slow down, or send up to 100 emails per call with /v1/emails/batch."
}
}
The response also carries retry-after: 1.
| Plan | Requests per second |
|---|---|
| Starter | 5 |
| Pay as you go | 10 |
| Team | 50 |
The limit is per team, across every API key and the SMTP relay, and every endpoint counts, including /v1/emails/check and list calls. It is a strict one-second window: no bursting.
Every response shows where you are:
ratelimit-limit: 10
ratelimit-remaining: 3
ratelimit-reset: 1
Fixes
- Batch.
POST /v1/emails/batchtakes up to 100 emails in one request, so 10 requests a second can carry up to 1,000 emails. Batches cannot have attachments orscheduled_at. - Retry after a second. On
rate_limit_exceeded, wait forretry-afterand send again. Add anIdempotency-Keyheader so a retry never sends twice:
async function send(email, key, attempt = 0) {
const res = await fetch('https://api.mailcandor.com/v1/emails', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.MAILCANDOR_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': key,
},
body: JSON.stringify(email),
});
if (res.status === 429 && attempt < 5) {
const { error } = await res.clone().json();
if (error.type === 'rate_limit_exceeded') {
await new Promise((r) => setTimeout(r, 1000 * (attempt + 1)));
return send(email, key, attempt + 1);
}
}
return res;
}
- Spread the load. Send from a queue with a fixed number of workers rather than all at once.
- Check other users of the team. A second app, an export script or a broadcast can use the same allowance.
- Change plan for more requests a second. See Change plan.
daily_quota_exceeded and monthly_quota_exceeded: Starter allowance used
{ "error": { "type": "daily_quota_exceeded", "message": "Starter includes 100 emails a day and 100 are used today. Switch to Pay as you go under Billing to send more." } }
Retrying in a second will not help. These only happen on Starter:
- Daily: 100 emails, resets at 00:00 UTC.
- Monthly: 3,000 emails, resets on the 1st at 00:00 UTC.
A batch needs room for all its emails; if 30 are left today, a batch of 40 is refused.
Fix: wait for the reset, or open Billing, add a card and press Choose on Pay as you go. It applies at once and removes both caps. See Daily and monthly limits.
Over SMTP
Both kinds of 429 come back as a temporary SMTP error, 451 4.7.1 with the same message. Most mail libraries and servers retry those automatically; for quota errors they will keep failing until the reset or a plan change.
If it does not work
- 429 even at low volume. Something else on the team is busy. Check
ratelimit-remainingon a quiet request, and look for loops in your code. - Still 429 quota errors after upgrading. Confirm Your plan on Billing shows the new plan. A plan change without a card is refused.
- Batch returns 422 instead. A batch over 100 emails, or with attachments or scheduling, is a validation error. See 422 validation errors.
See the API reference for rate limit headers.