POST
/
interact
/
scroll
/
{instance_id}
import { Skylight } from "skylight-sdk";

const skylight = new Skylight({
  apikey: process.env["SKYLIGHT_APIKEY"] ?? "",
});

async function run() {
  const result = await skylight.interact.scroll("<id>", {
    x: 100,
    y: 200,
    step: 20,
  });

  // Handle the result
  console.log(result);
}

run();
{
  "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

200
application/json
Successfully performed scroll
status
string
required

Status of the operation

Example:

"success"

message
string
required

Human-readable status message