Skip to content
Docs
GitHub

Get a Sandbox with its resources and state history

Preview

Get one Sandbox with its provider resources and full state history.

Public APIEverruns Cloud and self-hosted Platform

GET/v1/sandboxes/{id}

See authentication for credentials and permissions.

id
required
string

Prefixed public identifier

Responses

200Success

Success

Media typeapplication/json

One Sandbox with its incarnations and lifecycle history.

object
agent_id

Agent the Session ran.

string | null
agent_name

Agent display name.

string | null
attention
required

Why this Sandbox needs attention: lost, failed, init_failed, idle_running (running with no activity for an hour) or cleanup_failed.

Array<string>
checkpoint_count
required

Committed workspace checkpoints.

integer format: int64
created_at
required
string format: date-time
deleted_at
string | null format: date-time
desired_state
required

Lifecycle intent the control plane is moving the Sandbox toward: ready, paused or deleted.

string
external_id

Provider’s id for the latest physical resource.

string | null
generation
required

Incarnation counter. Above 1 means the provider resource was lost and rebuilt.

integer format: int64
id
required

Durable logical Sandbox id. Stays the same when the provider resource is replaced.

string
idle_after_seconds

Inactivity interval before the Sandbox is paused.

integer | null format: int64
last_activity_at

Last recorded tool activity or state change.

string | null format: date-time
last_init_error

Error from the latest init commands, if they failed.

string | null
provider
required

Provider id, such as daytona, modal or docker.

string
role
required

primary (addressed implicitly by shell and file tools) or resource.

string
session_id

Owning Session; absent once the Session is deleted.

string | null
session_title

Session title, kept after the Session is deleted.

string | null
state
required

running, paused, lost, starting, failed, not_started or deleted.

string
target_kind

Target kind from the pinned specification: managed, container, machine, vfs or host.

string | null
template
One of:

Template revision the Sandbox was created from.

object
display_name

Template display name.

string | null
id
required

Sandbox Template id.

string
revision

Revision number pinned when the Session was created.

integer | null format: int32
updated_at
required
string format: date-time
workspace_path

Working directory inside the Sandbox.

string | null
history
required

State history, oldest first.

Array<object>

A span of time a Sandbox spent in one state.

object
current
required

The Sandbox is still in this state.

boolean
end
required
string format: date-time
generation
required

Incarnation during the span.

integer format: int64
start
required
string format: date-time
state
required

Fleet state during the span.

string
incarnations
required

Provider resources, newest first.

Array<object>

One physical provider resource behind a logical Sandbox.

object
created_at
required
string format: date-time
external_id
required
string
generation
required
integer format: int64
last_init_error
string | null
retired_at

When it was replaced or deleted.

string | null format: date-time
status
required

Provider status the last time it was observed: running, paused or lost.

string

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