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

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

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

  // 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 | null
y
integer | null
button
enum<string>
default:left
Available options:
left,
right,
middle
clicks
integer
default:1
Required range: 1 <= x <= 10
interval
number | null
default:0
Required range: 0 <= x <= 1

Response

200
application/json
Successfully performed click operation
status
string
required

Status of the operation

Example:

"success"

message
string
required

Human-readable status message