> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bludia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Rate limits

> Bludia rate limits: each API key allows a configurable number of requests per minute (default 1,000, range 10 to 100,000). Auth endpoints are limited to 10 requests per minute per IP. Exceeding a limit returns 429.

## Limits

| Scope | Limit | Window | Configurable |
| :- | :- | :- | :- |
| Per API key | **1,000** requests by default | 1 minute | Yes, 10 to 100,000 per key |
| `/auth/{guard}/*` endpoints | **10** requests | 1 minute, per IP and route | No |
| PDF generation (dashboard) | 30 requests | 1 minute | No |

Every request made with a key counts toward that key's limit, including auth requests. The auth endpoint limit protects against password guessing and sign-up spam.

## When you exceed a limit

```http theme={null}
HTTP/1.1 429 Too Many Requests
Content-Type: application/json

{ "message": "Rate limit exceeded." }
```

The window resets 60 seconds after the first counted request.

## Retry with backoff

```javascript theme={null}
async function withRetry(fn, attempts = 4) {
  for (let i = 0; ; i++) {
    try {
      return await fn();
    } catch (err) {
      if (err.status !== 429 || i >= attempts - 1) throw err;
      const delay = Math.min(60_000, 1000 * 2 ** i) + Math.random() * 250;
      await new Promise((r) => setTimeout(r, delay));
    }
  }
}
```

## Stay under the limit

> [card] Fetch bigger pages
>
> Use `limit=100` instead of many small pages.

> [card] Use relations
>
> Load related data with `with=` instead of one request per record.

> [card] Cache on your side
>
> Cache rarely changing data such as categories or settings.

> [card] Split keys
>
> Give each app or job its own key and limit, so one can't starve another.

To change a key's limit, edit the key in **API** → **API Keys**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.