Rate limits

Hourly quota

Each API client has an hourly allowance of quota units. Each operation costs the units shown as x-quota-units in the reference (plus x-quota-units-per-item times the number of items where set). For example campaigns/list costs 10, recipients/add costs 20 plus 1 per recipient, and an operation not listed costs 1.

Every authenticated response tells you where you stand:

Header Meaning
X-RateLimit-Limit Units per hour for your client.
X-RateLimit-Remaining Approximate units left this hour. Units are charged after each response, so the current call is not counted yet.
X-RateLimit-Reset Unix time (seconds) when the hour resets.

When the quota is spent the API answers 429 limit_reached with a Retry-After header in seconds. Wait that long before retrying.

Per-second limit

Bursts above 25 requests per second per key may be answered 429 rate_limited with Retry-After: 1. Slow down and retry.

Good practice