logoAccess

rate_limited

Too many requests in a short time.

Type: invalid_request_error
HTTP status: 429 Too Many Requests

Cause

The API counts requests per API key, per minute:

RequestsLimit per minute
Reads (GET)600
Writes (POST, PATCH, DELETE)120

Reads and writes are counted separately. A key can also have its own limit, which replaces both.

Separately, after 10 refused API keys from one IP address in a minute, every request from that address gets 429 until the minute is up, even with a valid key. This stops anyone guessing keys.

Response

{
  "error": {
    "type": "invalid_request_error",
    "code": "rate_limited",
    "message": "Too many requests. Retry in 23 seconds.",
    "doc_url": "https://docs.tryaccess.xyz/docs/errors/rate_limited",
    "request_id": "req_01JB2X7Q9R8S6T5U4V3W2X1Y0Z"
  }
}

Every response carries the current limit in standard headers:

RateLimit-Policy: 600;w=60
RateLimit: limit=600, remaining=598, reset=42

A 429 also has Retry-After, the seconds until the window resets.

Resolution

Wait for the number of seconds in Retry-After, then retry. To stay under the limit, watch remaining in the RateLimit header, spread requests out, and back off when you get a 429 instead of retrying right away. If you're refused for bad keys, check the key you send in x-api-key.

How is this guide?