Skip to content

Documentation

Rate Limits

The Customer API limits requests per API key and per source IP.

Limit

The default limit is 300 requests per minute, measured over a rolling 60-second window. The limit applies equally to every Customer API endpoint — reads and sends share the same budget.

How requests are counted

Requests are counted against two buckets at the same time: your API key and the source IP address. A request is rejected if either bucket is over the limit.

Because the IP bucket is shared, multiple servers or clients behind a single NAT or proxy address share one IP budget.

Not rate limited

The documentation, OpenAPI and health endpoints are exempt from rate limiting.

When you exceed the limit

The API returns 429 with a Retry-After header (in seconds). Wait for Retry-After, then retry — ideally with exponential backoff.

{
  "detail": "Rate limit exceeded. Try again in N seconds"
}

Informational headers

Every successful response includes:

X-RateLimit-RemainingRequests remaining in the current window.
X-RateLimit-ResetLength of the window in seconds (always 60). This is not a timestamp.

X-RateLimit-Limit is not sent.

Other limits

  • Recipient quota

    Campaigns and transactional emails share a single per-period recipient quota from your subscription; the per-plan number depends on your plan. When it is exhausted the API returns 402 with:

    402Recipient quota exhausted for the current period
  • SMS quota

    When the SMS recipient quota is exhausted the API returns 409 with:

    409{"code": "quota_exhausted"}
  • Pagination

    page_size accepts at most 100 and defaults to 10. Larger values are rejected with 422.

    422
  • Transactional attachments

    The total attachment size for a transactional email is capped at 15 MB. Larger payloads return 413.

    413
  • File uploads

    Temporary uploads are capped at 10 MB and email assets at 5 MB; assets must be PNG, JPEG/JPG or GIF. Violations return 400.

    400
  • Idempotency-Key

    Optional for transactional emails — replaying a known key returns the original record with 200. Required for SMS (1 to 200 characters); a conflicting reuse returns 409 with:

    409idempotency_conflict