Skip to content

Watch and control a sandbox's screen (WebSocket)

GET
/sandboxes/{id}/desktop
curl --request GET \
--url https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/desktop \
--header 'Authorization: Bearer <token>'

For sandboxes with a screen (the browser template): upgrades to a WebSocket carrying the screen as VNC (RFB), as binary messages, for a VNC client such as noVNC. The screen’s server listens only inside the sandbox. A sleeping sandbox is woken; an open view keeps it awake.

id
required
string

Switching to the WebSocket protocol

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"
}