Skip to main content
GET
/
v1
/
sandboxes
/
{id}
/
file
Download a file as raw bytes
import requests

url = "https://api.13-215-85-171.sslip.io/v1/sandboxes/{id}/file"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
"<string>"

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Path Parameters

id
string
required

Sandbox ID (e.g. sb_a1b2c3d4)

Query Parameters

path
string
required

File path inside the sandbox. Absolute paths may target valid sandbox locations such as /workspace, /data, /tmp, or /context where present. Relative paths resolve from the sandbox cwd when set, otherwise from the selected user's home when user is provided, otherwise from /workspace.

user
string

Optional sandbox user for relative-path resolution and ownership.

Response

200 - application/octet-stream

File content stream

The response is of type file.