GET
/
windows
/
state
/
{instance_id}
Python (SDK)
import os
from skylight_sdk import Skylight


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

    res = skylight.windows.state(instance_id="<id>")

    # Handle response
    print(res)
{
  "assigned_at": "2023-01-01T12:00:00Z",
  "files": {
    "downloads": [
      {
        "download_url": "https://example.com/download/file.pdf",
        "file_path": "C:\\Users\\Administrator\\Downloads\\file.pdf",
        "name": "file.pdf",
        "timestamp": "2023-01-01T12:00:00Z"
      }
    ],
    "uploads": [
      {
        "file_path": "C:\\Users\\Administrator\\Desktop\\uploaded.xlsx",
        "name": "uploaded.xlsx",
        "timestamp": "2023-01-01T12:00:00Z",
        "type": "application/spreadsheet"
      }
    ]
  },
  "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

The response is of type object.