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

# Limits

> check answers in under 25 ms and track in under 100 ms at p99, at 1,000 requests a second per Live key. Every rate, size and value limit.

Ledger answers `check` in under 25 ms and `track` in under 100 ms at p99, at 1,000 requests a second per Live key. Sandbox has its own capacity, so testing never slows production.

## Latency

| | p99 at 1,000 requests a second |
| - | - |
| `POST /v1/check` | Under 25 ms |
| `POST /v1/track` | Under 100 ms |

## Rate limits

Ledger limits how many requests each API key can make per second. Sandbox and Live keys have separate limits, so testing never uses up production capacity.

| Requests | Live key | Sandbox key |
| - | - | - |
| `check`, `track` and reservations, together | 1,000 a second, bursts up to 2,000 | 100 a second, bursts up to 200 |
| Everything else, such as customers and catalog reads | 50 a second | 50 a second |
| Lists: `GET /v1/customers/list`, `GET /v1/usage` and `GET /v1/usage/totals` | 10 a second | 10 a second |
| Calls that reach Stripe: billing, cancellation and catalog writes | 5 a second | 5 a second |

Each limit is per API key. `check`, `track` and the reservation calls share one budget: 600 checks and 400 tracks a second use all of a Live key's 1,000. Treat these as maximums, not targets. Each row of the table is counted on its own, so a backfill of usage reads never slows down your `check` calls.

### When you hit a limit

Ledger answers `429` with `{ "error": "rate_limited" }` and a `Retry-After` header giving the seconds to wait. Nothing was recorded, so send the same request again after that. Retrying `track` with the same `request_id` is always safe. Every response also carries `RateLimit-Remaining` and `RateLimit-Reset` headers, so you can slow down before you reach the limit.

Spread bulk work, such as a backfill or a catalog script, over time rather than sending it all at once. The SDKs [fail open](https://docs.integrateledger.com/fail-open.md) on a `429` from `check` or `track`.

## Failed requests

Repeated `401` responses from one IP address (for IPv6, one /64), about 30 in a row, make Ledger refuse further requests from that address for a short time. A key that has worked recently keeps working. Check your key if you see `401`s. Only `401`s count; a `403` for a key without a permission leaves the count alone.

## Dollar balances

Credits are stored as whole numbers up to 2,147,483,647 per grant and per charge. On a [dollar balance](https://docs.integrateledger.com/pricing/ai-credits.md) at 100,000 credits per dollar, that is \$21,474.83, the most a plan, pack or item can hold.

## Request size

Request bodies are limited to 1 MiB, far more than the largest catalog. A bigger body gets `413` with `{ "error": "payload_too_large" }`.

## Values

| Value | Limit |
| - | - |
| `customerId`, `entityId`, `request_id` | 1 to 255 characters |
| Feature, plan and credit pack IDs | 1 to 100 characters: letters, digits, `_` and `-` |
| Names | 1 to 120 characters |
| `quantity` and `count` on `check` and `track` | Up to 2,147,483,647. For a credits feature, `quantity` × `creditCost` must also stay within 2,147,483,647 credits |
| API keys | 8 per environment ([API keys](https://docs.integrateledger.com/api-keys.md#create-a-key)) |
| Webhook endpoints | 16 per environment ([Webhooks](https://docs.integrateledger.com/webhooks.md)) |

A value past its limit gets `400 invalid_request`, with `issues` naming the field.

## Webhooks

Signed Stripe and Clerk webhook deliveries are never limited. Only deliveries that fail verification count, per sending address and endpoint.


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