Skip to main content

Rate Limits

The Annie Insights API enforces rate limits to ensure fair usage and system stability.

Limits by Key Type​

Key TypeRate LimitBurstDaily Cap
Sandbox10 req/min5 concurrent500/day
ProductionCustomCustomCustom

Rate Limit Headers​

Every API response includes rate limit information in the headers:

HeaderDescription
X-RateLimit-LimitMaximum requests allowed in the current window
X-RateLimit-RemainingRequests remaining in the current window
X-RateLimit-ResetUnix timestamp when the window resets
Retry-AfterSeconds to wait before retrying (only on 429)

Handling Rate Limits​

When you exceed the rate limit, the API returns HTTP 429:

{
"error": "Too Many Requests",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"statusCode": 429
}

Best Practices​

  1. Monitor headers — Check X-RateLimit-Remaining before sending requests
  2. Queue requests — Implement a request queue with controlled throughput
  3. Exponential backoff — On 429, wait 2^attempt seconds before retrying
  4. Contact sales — For higher limits, contact api-support@hcds.ai