# Rate limits

> **No limits are enforced on `/v1/*` today.** Nothing throttles the resource
endpoints, and no numbers are published. The guidance below is how to be
ready for limits, not a description of current behaviour.


## Where limits apply

**The token endpoint is limited already.** `POST /oauth/token` caps how often
one client ID may exchange credentials, and locks out after repeated failures.
See [Authentication](/getting-started/authentication#limits-on-the-token-endpoint) —
that's the limit you are most likely to meet, and caching your token avoids it.

**The resource endpoints are not.** There is no per-credential cap on `/v1/*`.

**A volumetric cap is planned at the edge.** It will bound requests from one
source address over a time window, applied before a request reaches the API.
Two consequences worth designing for:

- Its `429` comes from the edge, so — unlike every other error — it will **not**
carry the `{"error": {"code", "message"}}` envelope. Don't assume the body parses.
- If your integration runs behind a shared egress address, that budget is shared
with everything else behind it.


## Handling 429

Treat `429` as "slow down", not as a failure.

A `Retry-After` header, where present, gives the number of seconds to wait.
Honour it rather than guessing. Otherwise back off exponentially, **with
jitter**:

```python
import random, time
import requests

def get(url, token, attempts=5):
    for attempt in range(attempts):
        response = requests.get(url, headers={"Authorization": f"Bearer {token}"})

        if response.status_code not in (429, 503):
            return response

        retry_after = response.headers.get("Retry-After")
        delay = float(retry_after) if retry_after else (2 ** attempt) + random.random()
        time.sleep(delay)

    raise RuntimeError(f"still rate limited after {attempts} attempts")
```

Jitter is not decoration. Without it, every client throttled in the same window
retries in the same instant, and the next window is just as congested.

**Don't retry in a tight loop.** Depending on how the limiter is implemented, a
rejected request can extend the window that rejected it — so a client hammering
away keeps itself locked out while a well-behaved one recovers.

## Staying under the limit

- **Page with `limit=100`** rather than the default 50: same data, half the requests.
- **Filter server-side.** `?applicable=true` beats fetching everything and filtering locally.
- **Cache what rarely changes.** Framework criteria and control descriptions move seldom.
- **Poll on a schedule, not in a loop.** For a dashboard, a few times an hour is usually plenty.


## Related

`503 service_unavailable` is not a rate limit. It means the data store could
not answer, and is worth retrying on the same backoff. See
[Error handling](/concepts/errors).