Skip to main content
TroopyDocs
Open Troopy
Troopy

API reference / Computer

Open the computer's screen

A link to the workspace's computer screen, to watch its teammates work and take over the mouse and keyboard, for instance to sign in to a site. Every teammate has its own browser on it, with its own sign-ins; name one in agent to bring its window to the front. The link carries its own access token: whoever has it controls the computer, so treat it as a secret and never log it. The default is a 60 fps stream that can be embedded; vnc true asks for a slower view that works on strict networks and must open as a page of its own. preparing true means the screen is still being set up: call again in a few seconds. Boots a stopped computer first, which can take up to two minutes. Needs an owner or admin.

post/api/v1/computer/desktop

Authorization

HeaderAuthorization: Bearer <API key>
Or the headerX-API-Key: <API key>
API keyMake one in Troopy under Settings > API keys. It acts as you, in its workspace.

Other ways to call it

CLItroopy computer desktop
MCP toolNone. Call it over REST or with the CLI.
Rate limit20 calls in 60 seconds, for each key

Body

application/json
vncboolean

The VNC view, for networks where the stream won't connect

Default false

agentstring

A teammate whose own browser comes to the front first, opening on its home page if it isn't running

At most 40 characters

Response

200 · application/json
data*object
2 properties
url*string | null

The screen's link, secret-bearing. Null while preparing

preparing*boolean

The screen is still being set up: call again in a few seconds

Errors

400 invalid_inputFix the field named in detail. Each operation's schema is in /api/v1/openapi.json.
401 unauthorizedSend an API key as `Authorization: Bearer tr_live_...`. Create one in Troopy under Settings.
403 forbiddenThe key lacks a scope this operation needs, or its owner lacks the role. detail says which; create a key with the scope, or ask an organization owner or admin.
429 rate_limitedWait the number of seconds in Retry-After, then retry.