POST
/
windows
/
files
/
download
/
{instance_id}
Python (SDK)
import os
from skylight_sdk import Skylight


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

    res = skylight.files.download(instance_id="<id>", request_body={
        "key": "<value>",
    })

    # Handle response
    print(res)
{
  "download_url": "https://s3.amazonaws.com/bucket/file?token=...",
  "message": "File download URL generated successfully",
  "status": "success"
}

Authorizations

X-API-Key
string
header
required

API key authentication

Path Parameters

instance_id
string
required

Body

application/json · Request · object
{key}
string

Response

Presigned URL to download the file

Response containing a presigned URL to download a file

status
string
required

Status of the operation

Example:

"success"

message
string
required

Human-readable status message

Example:

"File download URL generated successfully"

download_url
string
required

Presigned URL to download the file

Example:

"https://s3.amazonaws.com/bucket/file?token=..."