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"
}
Requires API key authentication.
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"
}
API key authentication
Instance status retrieved successfully
The response is of type object
.