A11yRisk/Docs/Rate Limits & Credits

Rate Limits & Credits

The API enforces two independent rate limits and uses a credit system for scan pages.

Rate limits

EndpointLimitScope
POST /v1/ci/scans60 / minutePer organisation
All API key requests60 / minutePer API key (sliding window)
GET /v1/scans/*/report300 / minutePer organisation
POST /v1/api-keys20 / minutePer organisation

Handling 429 responses

When rate-limited, the API returns HTTP 429 with a Retry-After header indicating how many seconds to wait before retrying.

HTTP/1.1 429 Too Many Requests
Retry-After: 60

{ "detail": "rate_limit_exceeded" }

In polling loops, sleep for the Retry-After value before the next attempt. For scan polling, a 5–10 second interval is sufficient and stays well within limits.

Credit model

Check your current balance:

curl https://api.a11yrisk.eu/v1/billing/credits \
  -H "X-API-Key: ar_live_YOUR_KEY"

# { "balance": 145, "plan": "paid", "setup_complete": true }