Skip to main content
POST
Move mouse
Moves the pointer to the given coordinates without pressing a button. Use it to hover: to open a menu that appears under the pointer, a tooltip, a link preview, or a toolbar that shows only on hover. Click and drag also move the pointer, but both press a button. To see what the hover opened, take a screenshot afterwards.
On a Windows computer the response is {"ok": true} and ?screen= is ignored. A coordinate above 100000 is refused with 400, and the error body reads Request failed with status code 400 rather than saying why.
This endpoint moves the pointer. To move a computer to another workspace, use Move computer.

Path parameters

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

Query parameters

string
Which screen to move the pointer on. Optional. Omit it to act on the screen the computer booted with. Each screen has its own pointer, so the pointer on every other screen stays where it is. An unknown id returns 404 rather than falling back to the default screen.

Body parameters

integer
required
X coordinate, in pixels from the left edge. 0 is the left edge.
integer
required
Y coordinate, in pixels from the top edge. 0 is the top edge.
Both coordinates are required and must be non-negative integers. A missing, negative, fractional, or non-numeric value, or a body that is not JSON, returns 400 before the computer is contacted. Any other field in the body is ignored.

Response

boolean
Always true on a 200. A failed move is an error status.
string
Always mouse_move.
object
Echo of the coordinates the pointer moved to: x and y.
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

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 move the pointer on. Omit for the boot screen. Each screen has its own pointer. An unknown id returns 404 rather than falling back.

Body

application/json

Where to move the pointer. Both coordinates are required non-negative integers; anything else returns 400. Any other field is ignored.

x
integer
required

X coordinate, in pixels from the left edge.

Required range: x >= 0
Example:

640

y
integer
required

Y coordinate, in pixels from the top edge.

Required range: x >= 0
Example:

360

Response

Pointer moved

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.