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#
Payload, timeout and object quotas apply uniformly across every project, while open connections and live subscriptions scale with your cluster’s engine memory.
Scaled engine capacity
Payload and timeout caps stay fixed while connections scale with engine memory.
Documented error codes
Exceeded limits return an explicit status and error code without silent drops.
Each row below lists the quota alongside the status and error code returned past the limit. Troubleshooting catalogs every error code.
| 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. |
| Handler request payload | 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.
Job and cron limits
Attempts, retries and cron schedules run within per-branch timeout and concurrency caps.
Atomic webhook batches
Row webhook deliveries cap batch size without splitting any committed transaction.
Queue depth is tracked per caller, while schedule and webhook counts apply per branch.
| 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 | Retained until deleted. | 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 body and up to 512 KiB of schema text | 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 body and 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 (reason 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.
Monthly spend caps
Provisioning and scaling requests check platform and org spend caps before starting machines.
A new cluster or scale charges the prorated remainder of the month to the organization’s saved card first, and returns 402 whenever a billing check fails.
| 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 |
| Saved payment method | Required before provisioning the org’s first machine | Past the limit402 payment_method_required |
| Upfront prorated charge | Prorated remainder-of-month charge for a new cluster or scale is declined | Past the limit402 payment_failed |
| Unpaid invoice | Provisioning and scaling stay blocked until overdue balances are paid | Past the limit402 payment_overdue |
napalm orgs limits shows Napalm’s monthly limit beside your organization’s cap. Launch preparation covers raising the cap ahead of a launch.