Skip to main content

Rate Limits

All Magne API endpoints are rate-limited per IP address using a sliding window algorithm with two tiers.

Tiers

Additionally, webhook execution has its own per-webhook rate limit:

Response Headers

When rate-limited, the API returns a 429 Too Many Requests response with:

Retry Strategy

Implement exponential backoff when you receive a 429 response. Start with the Retry-After value, then double the wait time on each subsequent retry.
Recommended implementation:

IP Detection

Rate limits are tracked by client IP. The server checks headers in this order:
  1. X-Forwarded-For (first entry, if behind a reverse proxy)
  2. X-Real-IP
  3. Fallback: connection IP