Skip to main content
POST
/
browsers
/
{id}
/
computer
/
move_mouse
Move the mouse cursor to the specified coordinates on the browser instance
curl --request POST \
  --url https://api.onkernel.com/browsers/{id}/computer/move_mouse \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "x": 123,
  "y": 123,
  "hold_keys": [
    "<string>"
  ]
}
'
{
  "code": "bad_request",
  "message": "Missing required field: app_name",
  "details": [
    {
      "code": "invalid_input",
      "message": "Provided version string is not semver compliant"
    }
  ],
  "inner_error": {
    "code": "invalid_input",
    "message": "Provided version string is not semver compliant"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Browser session ID

Body

application/json
x
integer
required

X coordinate to move the cursor to

y
integer
required

Y coordinate to move the cursor to

hold_keys
string[]

Modifier keys to hold during the move

Response

Mouse cursor moved