Skip to main content
POST
/
computers
/
{id}
/
key
curl --request POST \
  --url https://www.orgo.ai/api/computers/{id}/key \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "Enter"
}'
{
  "success": true
}
Presses a key or key combination.

Path parameters

id
string
required
Computer ID.

Request

key
string
required
Key or key combination to press.

Supported keys

KeyDescription
EnterEnter/Return key
TabTab key
EscapeEscape key
BackspaceBackspace key
DeleteDelete key
Up, Down, Left, RightArrow keys
Home, EndHome/End keys
PageUp, PageDownPage navigation
F1-F12Function keys

Key combinations

Use + to combine modifier keys:
CombinationDescription
ctrl+cCopy
ctrl+vPaste
ctrl+aSelect all
ctrl+sSave
alt+TabSwitch windows
alt+F4Close window
ctrl+shift+tReopen closed tab

Response

success
boolean
true if key was pressed.

Example

# Press Enter
curl -X POST https://www.orgo.ai/api/computers/a3bb189e-8bf9-3888-9912-ace4e6543002/key \
  -H "Authorization: Bearer $ORGO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key": "Enter"}'

# Ctrl+C
curl -X POST https://www.orgo.ai/api/computers/a3bb189e-8bf9-3888-9912-ace4e6543002/key \
  -H "Authorization: Bearer $ORGO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key": "ctrl+c"}'

Response

{
  "success": true
}

Authorizations

Authorization
string
header
required

API key authentication. Get your key at orgo.ai/workspaces

Path Parameters

id
string
required

Computer ID

Body

application/json
key
string
required

Key or key combination (e.g., Enter, Tab, ctrl+c, alt+F4)

Example:

"Enter"

Response

Key pressed

success
boolean
Example:

true