Deployment status
A create request returns once the sandbox isDEPLOYED. Check status later
with Get a sandbox, or on the sandbox’s
detail page in the dashboard.
DEPLOYING: deployment is in progress.DEPLOYED: the sandbox is ready.DEACTIVATING: the sandbox is going idle.DEACTIVATED: the sandbox is on standby. Its files and processes persist, and the next request resumes it.FAILED: deployment failed.DELETING: deletion is in progress.TERMINATED: deletion has completed.
DEPLOYED means the environment is ready, not that a task succeeded. Confirm
a task by its command’s exit status and output.
Deletion is asynchronous. A delete request returns DELETING. Repeat the get
request until the status is TERMINATED or the sandbox is no longer found.
Expiration policy
An expiration policy deletes a sandbox automatically. Set one when you create a sandbox, so a sandbox your application forgets to delete doesn’t keep running. Set the policy when you create the sandbox. The CLI has no expiration flag, so use the dashboard’s Time to live or one of these interfaces. These examples delete the sandbox 1 hour after creation:- TypeScript
- Python
- Go
- API
expires_in field shows the seconds until it expires.
Each policy type measures time differently:
TTL_MAX_AGE: deletes the sandbox a set duration after creation. Idle time counts, and activity doesn’t extend it. Time to live in the dashboard sets this policy.TTL_IDLE: deletes the sandbox after a set duration without activity.DATE: deletes the sandbox at an ISO 8601 timestamp, such as2026-10-02T18:00:00Z.