Skip to main content

Rate limits

The Mage Loyalty API enforces a rate limit of 6 requests per second per API key using a sliding window. Exceeding the rate limit returns a 429 Too Many Requests response:

Response headers

A 429 response includes headers that describe the limit and when you can retry:

Best practices

  • Cache responses where possible to reduce the number of API calls
  • Use pagination to fetch large datasets in batches rather than making many parallel requests
  • Implement exponential backoff when you receive a 429 response
  • Use read-only keys for high-frequency read operations like storefront widgets