POST
/
interact
/
file
/
{instance_id}
import os
from skylight_sdk import Skylight


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

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

    # Handle response
    print(res)
{
  "download_url": "https://s3.amazonaws.com/bucket/file?token=...",
  "expires_in": 3600
}

Authorizations

X-API-Key
string
header
required

API key authentication

Path Parameters

instance_id
string
required

Body

application/json ยท object
{key}
string

Response

200
application/json
Presigned URL to download the file

The response is of type any.