Skip to main content
GET
/
api
/
sandbox
/
reconnect
Reconnect to session sandbox
curl --request GET \
  --url https://api.recoupable.com/api/sandbox/reconnect \
  --header 'x-api-key: <api-key>'
{
  "status": "connected",
  "hasSnapshot": true,
  "lifecycle": {
    "serverTime": 123,
    "state": "provisioning",
    "lastActivityAt": 123,
    "hibernateAfter": 123,
    "sandboxExpiresAt": 123
  },
  "expiresAt": 123
}

Documentation Index

Fetch the complete documentation index at: https://developers.recoupable.com/llms.txt

Use this file to discover all available pages before exploring further.

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.