Skip to main content
POST
Type text
Types text on the computer keyboard. Each character is sent as an individual keystroke, so unicode characters and printable symbols are supported.

Path parameters

string
required
Computer ID (UUID). An instance_id is not accepted here and fails with 500.

Query parameters

string
Which screen to type 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. A Windows computer ignores this parameter.

Body parameters

string
required
Text to type. Unicode is supported. Nothing checks that it is present: omitting it types the empty string and still returns 200 (with text_length: 0 on Linux), so a body that lost its text looks like a success.
integer
default:"12"
Delay between keystrokes, in milliseconds. Optional. Omitting it, or sending 0, uses 12. Lower values type faster; higher values help with inputs that drop fast keystrokes. A Windows computer refuses this field with 400.
The API waits at most 30 seconds for the computer to finish typing. The text takes about delay_ms per character, so at the default of 12 ms anything over roughly 2,500 characters returns 503 with code: "ECONNABORTED", and the text may be only partly typed. Split long text into several requests.
A Windows computer ignores ?screen= and accepts only text in the body. Any other field, including delay_ms, returns 400, and so does text longer than 20,000 bytes. A successful response is {"ok": true}.

Response

boolean
Always true on a 200. A failed keystroke is an error status.
string
Always type.
object
Carries text_length, the length of the typed text in bytes, not characters. A non-ASCII character counts as more than one.

Example

Response

Use Press key for special keys like Enter, Tab, or keyboard shortcuts.

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

Authorization
string
header
required

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

Path Parameters

id
string
required

Computer ID

Query Parameters

screen
string

Which screen to act on. Omit for the boot screen. An unknown id returns 404 rather than falling back.

Body

application/json
text
string
required

Text to type. Unicode is supported. Not validated: omitting it types the empty string and still returns 200.

delay_ms
integer
default:12

Delay between keystrokes, in milliseconds. Omitted or 0, 12 is used. The API waits at most 30 seconds for the typing to finish; longer text returns 503 with code: "ECONNABORTED", and the text may be only partly typed.

Response

Text typed. details.text_length is the length in bytes, not characters.

success
boolean

Always true on a 200. A failed action is an error status.

Example:

true

action
string

The action performed: click, mouse_move, drag, type, key_press, scroll, or wait.

details
object

Echo of what was performed. Its fields depend on the action.

error
null

Always null on a 200.

error_type
null

Always null on a 200.