Skip to content

Start or stop recording the sandbox's screen

POST
/sandboxes/{id}/desktop/recording
curl --request POST \
--url https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/desktop/recording \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "recording": true }'

Records the screen of a sandbox with one (the browser template) to a video in ~/recordings, at 10 frames a second, until stopped or for at most an hour. Download it from the sandbox’s files. A recording keeps the sandbox awake.

id
required
string
Media typeapplication/json
object
recording
required
boolean

Example generated

{
"recording": true
}

The recording

Media typeapplication/json
object
recording
required
boolean
path

The video being recorded, or the last one finished.

string
started_at
string format: date-time

Example generated

{
"recording": true,
"path": "example",
"started_at": "2026-04-15T12:00:00Z"
}

The API key is missing or invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

No such sandbox in your organization (or no such file)

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

The sandbox isn’t running, or its server is unreachable right now

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}