Get a Sandbox with its resources and state history
PreviewGet one Sandbox with its provider resources and full state history.
/v1/sandboxes/{id}See authentication for credentials and permissions.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Prefixed public identifier
Responses
200Success
Success
One Sandbox with its incarnations and lifecycle history.
object
Agent the Session ran.
Agent display name.
Why this Sandbox needs attention: lost, failed, init_failed,
idle_running (running with no activity for an hour) or cleanup_failed.
Committed workspace checkpoints.
Lifecycle intent the control plane is moving the Sandbox toward: ready, paused or deleted.
Provider’s id for the latest physical resource.
Incarnation counter. Above 1 means the provider resource was lost and rebuilt.
Durable logical Sandbox id. Stays the same when the provider resource is replaced.
Inactivity interval before the Sandbox is paused.
Last recorded tool activity or state change.
Error from the latest init commands, if they failed.
Provider id, such as daytona, modal or docker.
primary (addressed implicitly by shell and file tools) or resource.
Owning Session; absent once the Session is deleted.
Session title, kept after the Session is deleted.
running, paused, lost, starting, failed, not_started or deleted.
Target kind from the pinned specification: managed, container, machine, vfs or host.
Working directory inside the Sandbox.
State history, oldest first.
A span of time a Sandbox spent in one state.
object
The Sandbox is still in this state.
Incarnation during the span.
Fleet state during the span.
Provider resources, newest first.
One physical provider resource behind a logical Sandbox.
object
When it was replaced or deleted.
Provider status the last time it was observed: running, paused or lost.
Example
{ "agent_name": "Coder", "checkpoint_count": 12, "desired_state": "ready", "external_id": "dtn-7f3a91c2", "generation": 1, "id": "sandbox_01933b5a00007000800000000000001", "idle_after_seconds": 300, "provider": "daytona", "role": "primary", "session_title": "Fix flaky CI", "state": "running", "target_kind": "managed", "template": { "display_name": "Coding - Daytona", "id": "sbxtpl_01933b5a00007000800000000000001", "revision": 4 }, "workspace_path": "/home/daytona/workspace", "history": [ { "state": "running" } ]}404Sandbox not found
Sandbox not found