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

# Rate limits

> Which Occtoo API limits you can hit, what is counted, and how to handle 429 responses.

Occtoo limits how much each tenant can send and read, so one integration cannot slow down the others. When you go over a limit, the API answers with HTTP `429 Too Many Requests`, or with an error in the GraphQL response.

## Handle a 429

1. Read the `Retry-After` header. When it is present, wait that many seconds before you retry.
2. When there is no `Retry-After`, retry with exponential backoff and a cap, for example 1, 2, 4 and 8 seconds.
3. Read the error message. For plan limits it names the limit you hit, how many requests were counted, and how many are allowed.

Spread large jobs over time instead of sending everything at once. Reuse access tokens until they expire instead of requesting a new one per call.

## Limits

| API | Limit | Counted per | When you go over it |
| - | - | - | - |
| [Ingest API](https://docs.occtoo.com/api-reference/ingest/overview.md) | Import requests per period, set by your plan | Tenant | `429` |
| [Ingest API](https://docs.occtoo.com/api-reference/ingest/overview.md) | Size of one request, entries per request, size of one entry, and size of one property value, set by your plan | Request | `400` that names the limit |
| [Assets API](https://docs.occtoo.com/api-reference/assets/overview.md) | Asset requests per period, set by your plan | Tenant | `429` |
| [Data consumption](https://docs.occtoo.com/api-reference/consumption/overview.md) | Token requests per hour | Application | `429` |
| [Durable consumers](https://docs.occtoo.com/api-reference/events/durable-consumers.md) | 1,000 events leased but not acknowledged | Consumer | `429` |
| [GraphQL API](https://docs.occtoo.com/api-reference/graphql/overview.md) | 16 data-layer requests running at the same time, such as `sourceEntries` and `cardEntries` | Tenant | An error in `errors` |
| [GraphQL API](https://docs.occtoo.com/api-reference/graphql/overview.md) | 30 seconds per request | Request | `504` with a `requestId` |

### Plan limits

Your plan sets the values of the Ingest and Assets limits. Contact Occtoo to learn or change the values for your tenant.

* **Import requests:** every ingest call counts once, even when its payload is rejected.
* **Payload size:** a request over a size or entry limit is rejected as a whole with `400`, and it still counts as an import request. If the same request also goes over the request limit, you get `429`.
* **Asset requests:** every call to `/v1/assets/{dataSourceId}` counts once, however many assets it carries.

Occtoo can also pause ingest for a tenant. Ingest calls then return `429` with the message `Ingest is temporarily blocked for this tenant`. Contact Occtoo support if you see it.


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