# API key limits

Preview: opening soon. These budgets are the planned phase one limits.

| Budget                                  | Limit                                                     |
| --------------------------------------- | --------------------------------------------------------- |
| Each key per API replica                | 120 requests per minute                                   |
| Each key                                | 20,000 requests per day                                   |
| Each shop                               | 100,000 requests per day                                  |
| Customer records per key                | 2,000 per day by default; an owner can raise it to 20,000 |
| Invalid key attempts per client address | 20 per minute, before a database lookup                   |

The minute counter runs separately on each API replica. It is not a global reservation of 120 requests per minute. The daily counters apply across replicas. A customer record budget overrun returns 429 `customer_budget` and notifies the owner. Every 429 from the key gate includes `Retry-After` (the daily ones count to the shop's next midnight); wait that many seconds before retrying. Use paging and incremental syncs instead of repeatedly downloading a full list.

An edge limit also protects `/v1/` per client IP. Its count is per edge location, so it is not a per-key quota. Limits may be lower for a particular route; use the [reference](/docs/api) for the route's page size.
