Skip to main content
GET
Get sandbox

Authorizations

Authorization
string
header
required

An API key from the dashboard, such as sk_live_…. It acts in its workspace.

Path Parameters

sandbox_id
string
required

The sandbox, sbx_….

Query Parameters

wait
boolean
default:false

Answer once it's ready (or failed), waiting up to 45 seconds, instead of at once.

Response

OK

created_at
string
required

RFC 3339.

folder
string
required

The folder its recordings and screenshots go in.

id
string
required

sbx_….

project_id
string
required

The project its recordings and screenshots go in.

region
string
required

The region it runs in.

state
string
required

starting, ready, stopping, stopped or failed.

timeout
integer<uint64>
required

Seconds it runs before it stops itself.

Required range: x >= 0
viewport
object
required

The browser window.

cdp_url
string | null

While it's ready: the browser's DevTools websocket, for Playwright's connectOverCDP, Puppeteer's connect or any CDP client. It opens connections until cdp_url_expires_at; a connection stays open until the sandbox stops. Get the sandbox again for a fresh one.

cdp_url_expires_at
string | null

RFC 3339.

error
string | null

Why it failed.

started_at
string | null

RFC 3339: when its browser was ready.

stop_reason
string | null

Once it's stopping: requested or timeout.

stopped_at
string | null

RFC 3339.