Skip to main content
GET
/
files
Read a file from a sandbox
curl --request GET \
  --url https://sandbox.superserve.ai/files \
  --header 'X-Access-Token: <api-key>'
"<string>"

Documentation Index

Fetch the complete documentation index at: https://docs.superserve.ai/llms.txt

Use this file to discover all available pages before exploring further.

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

path
string
required

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

Response

File contents.

The response is of type file.