Files
Read a file from a sandbox
Returns the file at path as raw bytes. To download a directory, set format=zip to receive its contents as a zip archive.
GET
Read a file from a sandbox
Authorizations
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
Set to zip to download the directory at path as a zip archive. Omit when downloading a single file.
Available options:
zip 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.