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

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

async function run() {
  const result = await skylight.windows.instances();

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

run();
{
  "instances": [
    {
      "assigned_at": "2023-01-01T12:00:00Z",
      "instance_id": "i-123456",
      "knowledge": "unknown",
      "livestream_url": "launchskylight.com/embed/i-123456",
      "state": "running"
    },
    {
      "assigned_at": "2023-01-02T12:00:00Z",
      "instance_id": "i-789012",
      "knowledge": "unknown",
      "livestream_url": "launchskylight.com/embed/i-789012",
      "state": "stopped"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

API key authentication

Response

200
application/json
List of instances retrieved successfully
instances
object[]
required

List of instances associated with the API key