Start or stop recording the sandbox's screen
POST
/sandboxes/{id}/desktop/recording
const url = 'https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/desktop/recording';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"recording":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
recording
required
boolean
Example generated
{ "recording": true}Responses
Section titled “Responses”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"}