| 400 | invalid_argument | the request is malformed: a missing templateID, a timeout outside 1 to 86,400, an unknown field, an unknown pause tier, or an exec of a program or user that does not exist in the sandbox. The message names the field or the program. Fix the request; do not retry it unchanged. |
| 401 | unauthenticated | the key is missing or wrong (missing api key, invalid api key). See API keys. |
| 403 | permission_denied | the key may not do this. |
| 403 | account_suspended | the account was blocked for abuse. Its sandboxes are paused and their files are kept; nothing was deleted. The body adds reason (a machine code), support (where to write) and kept. Do not retry: write to the address in the body to have the account reviewed and restored. |
| 404 | not_found | no such sandbox or template for this account. A sandbox of another account answers the same, so ids do not leak. |
| 404 | unknown_route | the path is not a route of this API. Under a drop-in path (E2B, Daytona, boat and the others) the message names the docs page that lists that family’s routes. |
| 402 | no_credit_stopped | the account has no credit; new starts and resumes are refused until it has a plan or balance, and its data is kept for 7 days, see Plans and billing |
| 402 | plan_required | the account has no trial or plan; see the refusals below. Any other 402 is payment_required. |
| 405 | method_not_allowed | the route exists, the method does not. |
| 409 | already_paused | a pause of a sandbox that is already paused. Nothing changed; carry on. |
| 409 | already_running | a resume of a sandbox that is already running. Nothing changed; carry on. |
| 409 | conflict | another state conflict: a snapshot name that already exists, an Idempotency-Key whose first request is still running, or another lifecycle call on the same sandbox in flight. Retry after that call ends. |
| 412 | sandbox_paused | the sandbox is paused and the call needs it running (an exec, for example). Resume it, or create it with autoResume. |
| 412 | failed_precondition | the sandbox is not in a state that takes this call; the message says why. |
| 410 | sandbox_ended | the sandbox was killed. The body adds sandboxID, state: "killed", endReason and, when known, endedAt. |
| 410 | sandbox_timeout | the sandbox reached its timeout; evidence.timeout_ms is the timeout it had. |
| 410 | node_loss | the node that held the sandbox was lost; evidence.event_id names the event. Create a new sandbox. |
| 410 | agent_exit | the guest agent stopped serving while the VM ran; endDetail can carry its reason. |
| 422 | unknown_region | the create named a region that is not a region id or an alias. See Regions. |
| 422 | snapshot_region_mismatch | a create started a snapshot in another region than the one it is kept in. Leave region out. See Regions. |
| 404 | volume_not_found | a create named a volume the account does not have, or a volume call named one. |
| 409 | name_taken | a volume with that name exists already. |
| 202 | image_building | the image a create named is being prepared. Repeat the create. See Container images. |
| 404 | image_not_found | the registry has no such image repository, tag or digest. |
| 422 | image_registry_not_allowed | the image is on a registry other than docker.io, ghcr.io or quay.io. |
| 429 | image_build_rate_limited | the account asked for too many new images this hour, or too many images wait to be prepared. |
| 409 | volume_busy | the volume is mounted in another sandbox (volume is attached to sandbox <id>): a delete or a create is refused at once. Kill that sandbox, or retry. |
| 409 | volume_mounted | a pause, snapshot, fork or rewind of a sandbox that has a volume mounted. Volumes stay with the sandbox that mounted them; kill it and mount the volume in a new one. |
| 409 | volume_node_mismatch | the volumes (and snapshot) of one create are kept on different machines. Mount volumes kept together. |
| 422 | volume_region_mismatch | a create named another region than the one its volume is kept in. Leave region out. See Regions. |
| 500 | volume_mount_failed | the guest could not mount the volume; the sandbox was not created and the volume is free again. Retry. |
| 503 | region_unavailable | no machine in the asked region is taking new VMs now. Retry after Retry-After, or choose the other region. |
| 422 | class_not_served | the create named a class other than burstable or guaranteed. |
| 402 | guaranteed_needs_paid | class: "guaranteed" is for paid accounts. Add a card, or leave class out. |
| 503 | guaranteed_capacity | no node has whole cores free for a guaranteed sandbox right now. Retry after Retry-After, or leave class out. |
| 429 | quota_exceeded | a limit of your plan: evidence.limit concurrency_target when the account already runs as many sandboxes as it is entitled to (granted, target and live are in the body). Wait for Retry-After, or end a sandbox. |
| 429 | capacity_provisioning | you are entitled to more concurrent sandboxes than you hold now and capacity is being added; the body has granted, target, live and eta_seconds. Retry after Retry-After. |
| 429 | account_throttled | the account sent far more than its tier’s usual traffic and is held to a low rate until the traffic ends. The body adds reason and support; Retry-After is when the current minute’s allowance renews. The limit lifts by itself a few minutes after the traffic stops: back off and retry; write to support if the traffic is expected. |
| 429 | resident_limit | a create would take the account past a ceiling of its tier on what it keeps resident. The body names limit (resident_sandboxes, resident_vcpu or resident_memory_mib), used, maximum, tier and upgrade. It is a quota: archive or kill sandboxes to free room (a kill, a delete or a browser removal frees it at once), or follow upgrade; repeating the create unchanged fails again. maximum is caps.max_resident_sandboxes of GET /v1/run/usage. |
| 429 | storage_limit | the account would keep more stored than its tier allows. The body names limit (held_sandboxes: sandboxes held in any state, paused to disk included, checked on create and fork; snapshots: saved snapshots and checkpoints; snapshot_gib: the GiB they hold, both checked before a snapshot is taken); written_gib: the GiB your running sandboxes on one node have written to their disks, checked on create, fork and resume, see limits), used, maximum, tier and upgrade. It is a quota: kill paused sandboxes or delete snapshots you no longer need (DELETE /snapshots/{name}), or follow upgrade; repeating the call unchanged fails again. |
| 502 | agent_exit | a call reached a sandbox whose guest agent had stopped; origin is agent. |
| 502 | upstream_error | the node answered with an internal failure. Retry once; quote request_id if it repeats. |
| 503 | capacity | no node could take the create right now. Retry after Retry-After. |
| 503 | egress_unavailable | POST /browsers with an egress whose route could not open a connection within 15 s; the session it claimed is closed. The body adds egress (the route asked for), cause (upstream_provider_refused with the provider’s upstream_status, upstream_provider_failed, exit_unreachable or no_answer) and origin infrastructure. Retry after Retry-After (60 s after a provider refusal), or create the session with another egress. |
| 503 | upstream_unavailable | the node of the sandbox could not be reached, its guest agent did not answer, or the node is being updated to a newer build. Retry after Retry-After (1 s). |
| 503 | resource_exhausted | the node or the sandbox is out of a resource. Retry after Retry-After. |
| 504 | deadline_exceeded | the node did not answer in time. |
| 504 | command_timeout | an exec ran past its timeoutMs and was killed; it arrives as a line of the stream, see exec. |