cURL
curl --request POST \ --url https://api.cyberdesk.io/v1/computer/{machine_id}/input/mouse/click \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "x": 123, "y": 123, "button": "left", "down": true } '
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Click the mouse button at specified coordinates. If coordinates are not provided, clicks at current position.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
None = full click, True = mouse down, False = mouse up
Successful Response
Was this page helpful?