Skip to main content
POST
/
browsers
/
{id}
/
computer
/
scroll
Scroll the mouse wheel at a position on the host computer
curl --request POST \
  --url https://api.onkernel.com/browsers/{id}/computer/scroll \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "x": 123,
  "y": 123,
  "delta_x": 0,
  "delta_y": 0,
  "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 at which to perform the scroll

y
integer
required

Y coordinate at which to perform the scroll

delta_x
integer
default:0

Horizontal scroll amount. Positive scrolls right, negative scrolls left.

delta_y
integer
default:0

Vertical scroll amount. Positive scrolls down, negative scrolls up.

hold_keys
string[]

Modifier keys to hold during the scroll

Response

Scroll performed