Skip to main content
GET
Downloads the raw content of a file from the sandbox. Returns the file as a binary stream with the appropriate content type. Required scope: sessions:read

Path Parameters

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

Query Parameters

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

Headers

string
required
Bearer token. Example: Bearer runtm_xxx

Response

Returns the raw file content with Content-Type and Content-Disposition headers.