GET
/
windows
/
state
/
{instance_id}
import { Skylight } from "skylight-sdk";

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

async function run() {
  const result = await skylight.windows.state("<id>");

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

run();
{
  "assigned_at": "2023-01-01T12:00:00Z",
  "instance_id": "i-123456",
  "knowledge": "The user previously asked to perform ....",
  "livestream_url": "https://launchskylight.com/embed/i-123456",
  "state": "running"
}

Authorizations

X-API-Key
string
header
required

API key authentication

Path Parameters

instance_id
string
required

Response

200
application/json
Instance status retrieved successfully
instance_id
string
required
state
string
required

Current state of the instance

Example:

"running"

knowledge
string
required

Current knowledge of the instance

Example:

"unknown"

livestream_url
string
required

URL to livestream the instance

Example:

"launchskylight.com/embed/i-123456"

assigned_at
string | null

When the instance was assigned

Example:

"2023-01-01T12:00:00Z"