Skip to the page

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.

LimitValuePast the limit
A request body1 MiBPast the limit413 request_too_large. POST /sign-in/{action} answers 400 invalid_request, and /mcp and /a2a answer 413 in plain text.
A result16 MiBPast the limit413 result_too_large
A statement’s time60 secondsPast the limit503 project_unavailable
A dry run’s write10 secondsPast the limit503 project_unavailable. The write rolls back.
Dry runs, tests, checks and plans100 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 requestOnePast the limit400 query_rejected
A question’s length2,000 charactersPast the limit400 invalid_request
A question’s time120 seconds with the model’s turnsPast the limit504 ask_timeout
Allowed origins32 originsPast the limitPOST /projects/{id}/endpoint answers 400 invalid_request. A browser at an unlisted origin gets 403 forbidden.
Upload parts in one call1,000 partsPast the limit400 invalid_parts
An agent tool’s answer512 KiB of textPast the limitThe answer is cut short and carries is_cut: true.
Connections to an engine1,000 connections for each GiB of the engine’s memory, up to 8,000 connectionsPast the limitA new connection goes to another engine of the cluster. The connection waits when every engine is full.

Live queries and presence#

LimitValuePast the limit
Live subscriptions1,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 joins16 roomsPast the limit429 presence_limit_reached
Rooms a stream watches256 roomsPast the limit429 presence_limit_reached
Members in a room200 membersPast the limitThe stream leaves the room with channel_full.
A member’s state4 KiBPast the limit413 presence_too_large
A message16 KiBPast the limit413 presence_too_large
Messages from a member32 a secondPast the limitThe room drops and counts the extra messages. POST /presence/{object} answers 429 presence_rate_reached.
Messages kept for a returning member10 seconds, up to 256 messages and 64 KiBPast 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#

LimitValuePast the limit
Actions on a branch128 actionsPast the limit400 invalid_request
A handler’s time1 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 payload64 KiBPast the limit413 request_too_large
A handler’s answer1 MiBPast the limit502 answer_too_large
An answer schema16 KiBPast the limit400 invalid_request
Hosted handlers on a branch128 handlersPast the limit400 invalid_request
A hosted handler’s build128 MiBPast the limit413 in plain text
A container image256 layersPast the limit400 invalid_image
Handler machines1 to 8 on a branchPast the limit400 invalid_request
A secret’s name64 charactersPast the limit400 invalid_request
A secret’s value64 KiBPast 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.

LimitValuePast the limit
Waiting jobs10,000 for each callerPast the limit429 job_limit_reached. The statement’s changes are not kept.
One attempt120 seconds for the query and the handler togetherPast the limitThe attempt fails, and retries follow until expire_time.
Attempts at once10 on each engine for a branchPast the limitOther attempts wait.
A job’s expire_timeA day after run_time by default and 30 days at mostPast the limitNapalm sets a later expire_time to the limit.
Finished jobsRetained until deleted.Past the limitNapalm never deletes finished jobs automatically. Deleting a job also deletes its runs and steps.
A long job’s timeout60 to 86,400 seconds from each requestPast 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 keeps1,000 stepsPast the limit409 step_limit_reached on a new name
A step’s name200 charactersPast the limit400 invalid_request
A step’s answer64 KiB of JSON without spacesPast the limit413 request_too_large
Schedules on a branch128 schedulesPast the limit400 invalid_request
A schedule’s variables16 KiBPast the limit400 invalid_request
Webhooks on a branch128 webhooksPast the limit409 webhook_limit_reached
A rows delivery100 transactions or 1 MiBPast 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#

LimitValuePast the limit
A service key’s life1 to 365 daysPast the limit400 invalid_request
A key’s or an org token’s label128 charactersPast the limit400 invalid_request
Live service keys on a branch500 keys. A revoked or expired key isn’t live.Past the limit409 key_limit_reached
A call budget1 to 1,000,000,000 calls in each hour or day, set on a key or an agent’s grantPast 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 length1 hour to 365 days. 14 days by default.Past the limitPOST /projects/{id}/sign-in 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#

LimitValuePast the limit
A request body16 KiB on most routesPast the limit413 in plain text
A schema change1 MiB body and up to 512 KiB of schema textPast the limit413 in plain text. More schema text gets 400 invalid_request.
A query deployment4 MiBPast the limit413 in plain text
A statement check4 MiB body and up to 256 statements of 64 KiB eachPast the limit413 in plain text. More statements, or a longer one, get 400 invalid_request.
Checks and plans100 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 queries256 queries, 64 KiB eachPast the limit400 invalid_request
A maintenance hold7 days from placement (reason up to 256 characters)Past the limit400 invalid_request
Branches on a shard80% of the shard’s volumePast 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.

LimitValuePast 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 capSet by the org’s managers under Napalm’s limitPast the limit402 monthly_cap_reached
Saved payment methodRequired before provisioning the org’s first machinePast the limit402 payment_method_required
Upfront prorated chargeProrated remainder-of-month charge for a new cluster or scale is declinedPast the limit402 payment_failed
Unpaid invoiceProvisioning and scaling stay blocked until overdue balances are paidPast 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.

Type a word or two to search every docs page.