Leap0

Click

Click at the current position or at optional coordinates. Button: 1 = left, 2 = middle, 3 = right.

POST/api/input/click

Click at the current position or at optional coordinates. Button: 1 = left, 2 = middle, 3 = right.

Authorization

BearerAuth
AuthorizationBearer <token>

API key passed as a Bearer token.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

x?integer

X coordinate. If omitted, clicks at current position.

Range0 <= value
y?integer

Y coordinate. Must be provided with x.

Range0 <= value
button?integer

Mouse button: 1 = left, 2 = middle, 3 = right.

Default1
Range1 <= value <= 3

Response Body

application/json

application/json

curl -X POST "https://<sandbox_id>.sandbox.leap0.dev/api/input/click" \  -H "Content-Type: application/json" \  -d '{}'
{  "x": 720,  "y": 450}
{  "message": "Invalid request",  "errors": [    {      "field": "string",      "error": "string"    }  ]}