POST
/
interact
/
scroll
/
{instance_id}
Python (SDK)
import os
from skylight_sdk import Skylight


with Skylight(
    apikey=os.getenv("SKYLIGHT_APIKEY", ""),
) as skylight:

    res = skylight.interact.scroll(instance_id="<id>", x=100, y=200, step=20)

    # Handle response
    print(res)
{
  "message": "<string>",
  "status": "<string>"
}

Authorizations

X-API-Key
string
header
required

API key authentication

Path Parameters

instance_id
string
required

Body

application/json
x
integer
required
y
integer
required
scroll_x
integer
default:0

Horizontal scroll amount

scroll_y
integer
default:0

Vertical scroll amount

step
integer | null

Optional step size for scroll movements. If not provided, movement will be continuous.

Required range: 1 <= x <= 100

Response

Successfully performed scroll

status
string
required

Status of the operation

Example:

"success"

message
string
required

Human-readable status message