Skip to main content
POST
/
v1
/
computer
/
{machine_id}
/
input
/
mouse
/
click
Click mouse button
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,
  "clicks": 1
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

Unique key for idempotent requests. If provided, the server ensures the request is processed at most once. Retries with the same key return the original response. SDKs auto-generate this for write requests.

Example:

"550e8400-e29b-41d4-a716-446655440000"

Path Parameters

machine_id
string
required

Body

application/json
x
integer | null
y
integer | null
button
string
default:left
down
boolean | null

None = full click, True = mouse down, False = mouse up

clicks
integer
default:1

Number of clicks (1=single, 2=double, 3=triple)

Required range: 1 <= x <= 3

Response

Successful Response