Skip to main content
GET
Read a file from a sandbox

Authorizations

X-Access-Token
string
header
required

Per-sandbox token returned by create, resume, and activate. Grants access to a single sandbox's files and commands. Distinct from the team X-API-Key.

Query Parameters

format
enum<string>

Set to zip to download the directory at path as a zip archive. Omit when downloading a single file.

Available options:
zip
path
string
required

Absolute path inside the sandbox (e.g. /home/user/out.txt).

Response

File contents, or a zip archive when format=zip.

The response is of type file.