Skip to main content
GET
Reconnect to session sandbox

Authorizations

x-api-key
string
header
required

Query Parameters

sessionId
string
required

The id of the session whose sandbox to reconnect to.

Response

Reconnect probe completed. Inspect status for the outcome.

status
enum<string>
required

connected when the live runtime probe succeeded; expired when the recorded runtime state is no longer reachable (the UI should offer resume-from-snapshot or fresh-create); no_sandbox when the session has never had a sandbox provisioned.

Available options:
connected,
expired,
no_sandbox
hasSnapshot
boolean
required

True when a paused/snapshotted sandbox exists and can be resumed. Used by the UI to decide whether to show "resume" vs "create" affordances on expired / no_sandbox.

lifecycle
object
required

Lifecycle envelope shared between GET /api/sandbox/status and GET /api/sandbox/reconnect. Server-clock-stamped snapshot of the sandbox's lifecycle FSM state and the timestamps the UI uses to render countdown timers.

expiresAt
integer<int64>

Epoch milliseconds when the sandbox runtime will expire. Present only when status is "connected"; reflects the freshly-probed expiry, which may differ from lifecycle.sandboxExpiresAt if the sandbox extended itself between writes.