POST
/
v1
/
sessions
/
{sessionId}
/
mouse
/
click
curl --request POST \
  --url https://api.anchorbrowser.io/v1/sessions/{sessionId}/mouse/click \
  --header 'Content-Type: application/json' \
  --header 'anchor-api-key: <api-key>' \
  --data '{
  "x": 200,
  "y": 150,
  "button": "left"
}'
{
  "status": "success"
}

Authorizations

anchor-api-key
string
header
required

API key passed in the header

Path Parameters

sessionId
string
required

The ID of the browser session

Body

application/json
x
integer
required

X coordinate for the click

Example:

200

y
integer
required

Y coordinate for the click

Example:

150

button
enum<string>
default:left

Mouse button to use

Available options:
left,
middle,
right
Example:

"left"

Response

200
application/json
Click performed successfully
status
string
Example:

"success"