Skip to main content
GET
/
v1
/
sandboxes
/
{id}
Get sandbox details
import requests

url = "https://api.13-215-85-171.sslip.io/v1/sandboxes/{id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "id": "<string>",
  "config": {
    "vcpus": 123,
    "memory_mb": 123,
    "disk_mb": 123
  },
  "template": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "metadata": {},
  "started_at": "2023-11-07T05:31:56Z",
  "timeout_ms": 123,
  "timeout_at": "2023-11-07T05:31:56Z",
  "expires_at": "2023-11-07T05:31:56Z",
  "cwd": "<string>",
  "snapshot_id": "<string>",
  "warm_pool_checkout": {
    "hit": true,
    "id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Path Parameters

id
string
required

Sandbox ID (e.g. sb_a1b2c3d4)

Query Parameters

fields
string

Comma-separated field mask for sandbox list/get responses. Supported fields: id, status, config, template, metadata, started_at, timeout_ms, timeout_at, expires_at, timeout_action, created_at, cwd, snapshot_id, traffic_access_token.

Response

Sandbox details

id
string
required
status
enum<string>
required
Available options:
creating,
running,
paused,
destroyed,
error
config
object
required
template
string
required
created_at
string<date-time>
required
metadata
object

Sandbox metadata. Attached volume state is exposed under volume_attachments in request order. Free-form user-supplied object stored verbatim; deliberately open.

started_at
string<date-time>
timeout_ms
integer<int64>
timeout_at
string<date-time>
expires_at
string<date-time>

Alias of timeout_at for clients that expect an expiry timestamp field.

timeout_action
enum<string>
Available options:
destroy,
hibernate
cwd
string

Normalized default working directory for this sandbox when one was configured.

snapshot_id
string

Present only when status is paused. The snapshot ID needed to resume this sandbox.

warm_pool_checkout
object

Create-time warm-pool checkout result. Omitted when create did not consider a warm pool.