Skip to main content
GET
Read File
Reads the specified file from the sandbox filesystem and returns its raw content as a plain-text response body (Content-Type: text/plain). The bytes are returned unmodified — no encoding is applied.

Path Parameters

string
required
The sandbox identifier. Format: sbx-<8 chars>.

Query Parameters

string
required
Absolute path of the file to read inside the sandbox.Example: /home/user/script.py

Response

Returns the raw file content as text/plain. The response body is the file’s bytes — no JSON wrapper.

Example

Error Responses