Click
Click at the current position or at optional coordinates. Button: 1 = left, 2 = middle, 3 = right.
POST
/api/input/clickClick 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.
Range
0 <= valuey?integer
Y coordinate. Must be provided with x.
Range
0 <= valuebutton?integer
Mouse button: 1 = left, 2 = middle, 3 = right.
Default
1Range
1 <= value <= 3Response 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" } ]}
