Skip to main content
The Lettr API returns HTTP 429 when a request exceeds a rate limit or a sending quota. This guide covers how to read the response, back off correctly, and tell the different kinds of 429 apart. For the full list of limits and headers, see the Rate Limit reference.

Which Limit Did I Hit?

Sandbox keys are exempt from the team limit and have their own per-second, per-minute and per-day limits, so a 429 on a sandbox key means you hit a sandbox limit. A live key hitting 429 while another live key is busy is expected: they share one limit.
A per-IP 429 can also hit live-key traffic. It comes from the network edge, so it is not produced by the team limiter and its body differs from the one below. On API routes its JSON body uses error_code api_rate_limited instead of rate_limit_exceeded. A 429 whose body has error_code set to quota_exceeded or daily_quota_exceeded comes from a sending quota rather than a rate limit, so slowing down won’t clear it. See Email Usage & Quotas.

Reading the Response

Exceeding the team limit returns HTTP 429 with this body:
Every API response carries the X-RateLimit-* headers, so a client can slow down before it gets a 429. Sandbox keys also get X-Sandbox-RateLimit-* headers, described on the sandbox page.
Requests sent before the window resets are rejected with another 429. Always respect the Retry-After header before retrying.

Implementing Backoff

On a 429, pause and retry with exponential backoff. This example reads Retry-After and doubles the wait on each attempt:

Sending Fewer Requests

Each request supports up to 50 recipients across to, cc and bcc combined, so fill each request before sending the next. Sending one recipient per request uses up the 3 requests per second for no benefit.
Sending to 10,000 recipients at 50 per request takes 200 API calls. With a 1-second pause between each, that finishes in under 4 minutes, well within the limit.
Rather than polling the API for email status, use webhooks to receive delivery events. For large sends, see Batch Sending.

Still Getting Unexpected 429s?

For 429 errors well below the limits above, contact support@lettr.com with your API key prefix and the timestamps of the affected requests. For higher limits, contact sales@lettr.com.

Rate Limits Reference

Full reference for API rate limits, quota headers and error codes.

Email Usage & Quotas

How monthly and daily sending quotas work.

Delivery Issues

Troubleshoot common email delivery problems.