Skip to main content
GET
Returns the contents of a file at the specified path in the sandbox. Required scope: sessions:read

Path Parameters

string
required
The session ID (e.g. ses_abc123).

Query Parameters

string
required
Path to the file (e.g. /src/index.ts).

Headers

string
required
Bearer token. Example: Bearer runtm_xxx

Response

string
The file contents as a string.
string
Full path of the file.
integer
File size in bytes.