API reference / Computer
Get the computer
The workspace's cloud computer, where its teammates work: whether it has launched, each launch step, and how each AI plan of the organization is signed in there. Poll it while launching or while a sign-in code waits for approval.
/api/v1/computerOther ways to call it
troopy computer gettroopy_get_computerResponse
200 · application/jsondata*object6 properties
status*enum<string>provisioning: still launching; poll statusUrl every few seconds
provisioningreadyfailed
steps*array<object>What launching does, in order
3 properties
id*stringlabel*stringstate*enum<string>donerunningpendingfailed
error*string | nullWhy launching failed. Launch again to retry from the failed step
color*enum<string>The colour it wears in Troopy and on its screen's wallpaper; graphite until one is picked
skytangerinevioletmintrosegraphite
connection*object11 properties
provider*enum<string> | nullclaudechatgptgeminigrokcopilotopenrouterzaikimiminimaxqwenanthropicopenaicursor
method*enum<string> | nullHow the plan signs in: an API key; a code to approve on the provider's site (device_code); or signing in at the provider's site and pasting back the code it shows (paste_code). Null when Troopy can't connect the plan yet
api_keydevice_codepaste_code
status*enum<string>pending: waiting for someone to approve userCode at verificationUrl (device_code), or to sign in at verificationUrl and send the code back (paste_code)
nonependingconnectedfailed
userCode*string | nullThe code to enter at verificationUrl. Shown to owners and admins only
verificationUrl*string | nullexpiresAt*string | nullWhen userCode stops working
keyHint*string | nullThe last four characters of the API key in use
connectedAt*string | nullerror*string | nullWhy the last attempt failed, in words to show people
limitedUntil*string | nullOut of usage until then: teammates use the next plan down the list meanwhile
lapsedAt*string | nullSince when the sign-in lapsed and the plan's CLI couldn't renew it. Sign the plan in again (POST /computer/connection). Null while the sign-in is fresh
statusUrl*stringPoll this (GET) until status is ready