Computer Actions
Press key
Press a single key or a key combination like ctrl+c.
POST
Presses a key or key combination. Join a combination with
+, for example ctrl+shift+t.
On a Windows computer the response is
{"ok": true}. Key names are not case-sensitive and follow Windows naming, so Page_Up and Page_Down are spelled pageup and pagedown; the other keys in the tables below work as written. A missing or unrecognised key returns 400 rather than 500, and the error body reads Request failed with status code 400 rather than saying why. ?screen= is ignored.Path parameters
string
required
Computer ID (UUID). An
instance_id is not accepted here and fails with 500.Query parameters
string
Which screen to press the key on. Optional.
Omit it to act on the screen the computer booted with. An unknown id returns
404 rather than falling back to the default screen.Body parameters
string
required
Key or key combination to press. On Linux the value is passed through to the computer’s
keyboard driver unchanged, so it must be an X11 keysym name. Keysym names are
case-sensitive. Nothing validates the field before it gets there: a missing or
misspelled key surfaces as a
500, not a 400.Common keys
Use the keysym name, not the label printed on the key.Return and BackSpace
are the two that most often catch people out.
Common combinations
The modifier names are
ctrl, alt, shift, and super.
Response
boolean
Always
true on a 200. A key the computer could not press is an error status.string
Always
key_press.object
Carries
key, an echo of what was sent.null
Always
null on a 200.null
Always
null on a 200.Example
Response
Errors
Every failure raised after the request leaves the API layer also carries a
request_id. Quote it in support requests. When the computer agent itself
answered non-2xx, the body additionally carries upstream_status.
Authorizations
API key authentication. Get your key at orgo.ai/workspaces
Path Parameters
Computer ID
Query Parameters
Which screen to act on. Omit for the boot screen. An unknown id returns 404 rather than falling back.
Body
application/json
Key or key combination (e.g., Enter, Tab, ctrl+c, alt+F4). On an iPhone: home, app_switcher, Return, BackSpace, space.
Example:
"Return"
Response
Key pressed
Always true on a 200. A failed action is an error status.
Example:
true
The action performed: click, mouse_move, drag, type, key_press, scroll, or wait.
Echo of what was performed. Its fields depend on the action.
Always null on a 200.
Always null on a 200.