---
title: "Click mouse button"
method: POST
path: "/v1/computer/{machine_id}/input/mouse/click"
tags: ["computer"]
---

# Click mouse button

`POST /v1/computer/{machine_id}/input/mouse/click`

## Request

- Base URL: `https://api.cyberdesk.io`
- URL: `https://api.cyberdesk.io/v1/computer/{machine_id}/input/mouse/click`
- Auth: HTTP bearer

Click the mouse button at specified coordinates.
If coordinates are not provided, clicks at current position.

## Path parameters

- `machine_id` string, required

## Headers

- `Idempotency-Key` string

## Request body

- MouseClickRequest
  - `x` integer, nullable
  - `y` integer, nullable
  - `button` string
  - `down` boolean, nullable: None = full click, True = mouse down, False = mouse up
  - `clicks` integer: Number of clicks (1=single, 2=double, 3=triple)

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/cyberdesk-hq/apis/cyberdesk-cloud.md) - [All operations](https://skmtc.dev/cyberdesk-hq/apis/cyberdesk-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/cyberdesk-hq/apis/cyberdesk-cloud/revisions/5579352ae05e?raw)
