Learn · Scale & operations
Limits
Quotas and size limits across projects, orgs and the control API, plus the HTTP status and error code returned when a call exceeds a limit.
Project API#
The limits on this page are the same for every project. Only connections and live subscriptions grow with a cluster’s engines. Each row gives the status and code a caller gets past the limit. Troubleshooting lists every error code.
Memory-scaled engine capacity
Request bodies, statement timeouts and payload caps stay fixed per project, while engine connections and /subscribe ceilings scale per GiB of engine RAM.
Deterministic HTTP error codes
Every breached ceiling returns a documented status and error code, such as 413 request_too_large, 429 live_limit_reached or 400 query_rejected, without silent drops.
| Limit | Value | Past the limit |
|---|---|---|
| A request body | 1 MiB | Past the limit413 request_too_large. POST /sign-in/{action} answers 400 invalid_request, and /mcp and /a2a answer 413 in plain text. |
| A result | 16 MiB | Past the limit413 result_too_large |
| A statement’s time | 60 seconds | Past the limit503 project_unavailable |
| A dry run’s write | 10 seconds | Past the limit503 project_unavailable. The write rolls back. |
| Dry runs, tests, checks and plans | 100 a minute for each branch, counted together. A call of many tests counts once. An agent’s check_query and explain_query count one each. | Past the limit429 rate_limited with Retry-After. Nothing runs. MCP includes the wait time in the tool text, and A2A returns retry_after_seconds. |
| Statements in a request | One | Past the limit400 query_rejected |
| A question’s length | 2,000 characters | Past the limit400 invalid_request |
| A question’s time | 120 seconds with the model’s turns | Past the limit504 ask_timeout |
| Allowed origins | 32 origins | Past the limitPOST / answers 400 invalid_request. A browser at an unlisted origin gets 403 forbidden. |
| Upload parts in one call | 1,000 parts | Past the limit400 invalid_parts |
| An agent tool’s answer | 512 KiB of text | Past the limitThe answer is cut short and carries is_cut: true. |
| Connections to an engine | 1,000 connections for each GiB of the engine’s memory, up to 8,000 connections | Past the limitA new connection goes to another engine of the cluster. The connection waits when every engine is full. |
Live queries and presence#
| Limit | Value | Past the limit |
|---|---|---|
| Live subscriptions | 1,000 subscriptions for each GiB of memory across the project’s engines, up to 100,000 subscriptions. The count covers every stream and engine. | Past the limit429 live_limit_reached on a new subscription |
| Rooms a stream joins | 16 rooms | Past the limit429 presence_limit_reached |
| Rooms a stream watches | 256 rooms | Past the limit429 presence_limit_reached |
| Members in a room | 200 members | Past the limitThe stream leaves the room with channel_full. |
| A member’s state | 4 KiB | Past the limit413 presence_too_large |
| A message | 16 KiB | Past the limit413 presence_too_large |
| Messages from a member | 32 a second | Past the limitThe room drops and counts the extra messages. POST /presence/{object} answers 429 presence_rate_reached. |
| Messages kept for a returning member | 10 seconds, up to 256 messages and 64 KiB | Past the limitThe room comes back with "is_continuous": false. |
Each joined room counts as one subscription toward the project’s limit. A stream’s watched rooms count as one subscription per object type. Live queries covers rooms and the frames a stream receives.
Actions and handlers#
| Limit | Value | Past the limit |
|---|---|---|
| Actions on a branch | 128 actions | Past the limit400 invalid_request |
| A handler’s time | 1 to 30 seconds. 10 seconds by default and 30 for a hosted handler. | Past the limit502 action_unreachable. The handler may still have acted. |
| What a handler is sent | 64 KiB | Past the limit413 request_too_large |
| A handler’s answer | 1 MiB | Past the limit502 answer_too_large |
| An answer schema | 16 KiB | Past the limit400 invalid_request |
| Hosted handlers on a branch | 128 handlers | Past the limit400 invalid_request |
| A hosted handler’s build | 128 MiB | Past the limit413 in plain text |
| A container image | 256 layers | Past the limit400 invalid_image |
| Handler machines | 1 to 8 on a branch | Past the limit400 invalid_request |
| A secret’s name | 64 characters | Past the limit400 invalid_request |
| A secret’s value | 64 KiB | Past the limit400 invalid_request |
A handler called from a job shares the attempt’s time with the job’s query. Actions covers the codes a handler’s caller receives.
Jobs, schedules and webhooks#
Background queues, cron schedules and signed webhook deliveries enforce per-caller waiting ceilings, bounded retry windows and transaction-atomic batch caps on every branch.
Bounded retry & cron windows
Job attempts, retry cutoffs (expire_time) and recurring cron schedules run within explicit per-branch concurrency and timeout ceilings.
Atomic webhook batch limits
Signed rows webhook deliveries cap batch size without ever splitting a committed transaction across two deliveries.
| Limit | Value | Past the limit |
|---|---|---|
| Waiting jobs | 10,000 for each caller | Past the limit429 job_limit_reached. The statement’s changes are not kept. |
| One attempt | 120 seconds for the query and the handler together | Past the limitThe attempt fails, and retries follow until expire_time. |
| Attempts at once | 10 on each engine for a branch | Past the limitOther attempts wait. |
A job’s expire_time | A day after run_time by default and 30 days at most | Past the limitNapalm sets a later expire_time to the limit. |
| Finished jobs | Kept until you delete them. | Past the limitNapalm never deletes finished jobs automatically. Deleting a job also deletes its runs and steps. |
| A long job’s timeout | 60 to 86,400 seconds from each request | Past the limitA handler’s 202 naming a timeout outside the range fails the attempt. POST /jobs/{id}/timeout answers 400 invalid_request. |
| Steps a job keeps | 1,000 steps | Past the limit409 step_limit_reached on a new name |
| A step’s name | 200 characters | Past the limit400 invalid_request |
| A step’s answer | 64 KiB of JSON without spaces | Past the limit413 request_too_large |
| Schedules on a branch | 128 schedules | Past the limit400 invalid_request |
| A schedule’s variables | 16 KiB | Past the limit400 invalid_request |
| Webhooks on a branch | 128 webhooks | Past the limit409 webhook_limit_reached |
| A rows delivery | 100 transactions or 1 MiB | Past the limitLater transactions go in the next delivery. A delivery never splits a transaction. |
A backend that queues every person’s jobs with one service key counts as one caller. Jobs & schedules covers retries and the job’s caller, and Long jobs covers timeouts and steps.
Keys and sessions#
| Limit | Value | Past the limit |
|---|---|---|
| A service key’s life | 1 to 365 days | Past the limit400 invalid_request |
| A key’s or an org token’s label | 128 characters | Past the limit400 invalid_request |
| Live service keys on a branch | 500 keys. A revoked or expired key isn’t live. | Past the limit409 key_limit_reached |
| A call budget | 1 to 1,000,000,000 calls in each hour or day, set on a key or an agent’s grant | Past the limit429 call_budget_reached with Retry-After until the next hour or day. MCP and A2A answer JSON-RPC error -32029. The Gel protocol answers AvailabilityError. |
| A session’s length | 1 hour to 365 days. 14 days by default. | Past the limitPOST / answers 400 invalid_request. |
An expired or revoked key gets 401 invalid_key, and an ended session gets 401 invalid_session. Key and secret renewal issues the next key before the old key expires.
A call budget counts the calls a key or an agent sends over HTTP, MCP, A2A and the Gel protocol. A refused call counts against no budget, and jobs, scheduled runs and webhook reads run as a key without spending budget. Hours and days follow the clock in UTC. A caller never exceeds its budget, regardless of how many engines serve the project. Each engine reserves a small batch of calls from the budget for up to a minute, so reported usage can sit slightly below the ceiling while a new call is refused.
Control API#
| Limit | Value | Past the limit |
|---|---|---|
| A request body | 16 KiB on most routes | Past the limit413 in plain text |
| A schema change | 1 MiB, with up to 512 KiB of schema | Past the limit413 in plain text. More schema text gets 400 invalid_request. |
| A query deployment | 4 MiB | Past the limit413 in plain text |
| A statement check | 4 MiB, with up to 256 statements of 64 KiB each | Past the limit413 in plain text. More statements, or a longer one, get 400 invalid_request. |
| Checks and plans | 100 a minute for each branch. A check of many statements counts once. The branch’s dry runs and test calls count too. | Past the limit429 rate_limited with Retry-After |
| Deployed queries | 256 queries, 64 KiB each | Past the limit400 invalid_request |
| A maintenance hold | 7 days from placement, with a reason of up to 256 characters | Past the limit400 invalid_request |
| Branches on a shard | 80% of the shard’s volume | Past the limit409 volume_full on a new branch or a branch move |
A request with fields the route does not accept receives 422 in plain text. The error catalog explains each code.
Spend limits#
Monthly platform limits and manager-configured spend caps gate cluster creation, scaling operations, shard splits and core copies before new resources start.
Hard monthly spend & org caps
Provisioning and scaling requests check both Napalm’s monthly limit and your organization’s configured cap up front, returning 402 before exceeding either ceiling.
| Limit | Value | Past the limit |
|---|---|---|
| Napalm’s monthly limit | $0 until the org saves a card, then $500. Each paid monthly invoice doubles the limit up to $8,000. | Past the limit402 monthly_limit_reached |
| The org’s cap | Set by the org’s managers under Napalm’s limit | Past the limit402 monthly_cap_reached |
| A card | Before the org’s first machine | Past the limit402 payment_method_required |
| A declined card | What a new cluster or scale costs for the rest of the month | Past the limit402 payment_failed |
| A failed payment | Until the org pays | Past the limit402 payment_overdue |
Napalm checks a new cluster, scale, split or core copy against both amounts before any machine starts. A new cluster or scale is charged for the rest of the month on the org’s card before its machines start. napalm orgs limits shows Napalm’s limit beside the cap. Launch preparation raises the cap ahead of a launch.