Content-Type: application/octet-stream. For large files, use the streaming variant to avoid loading the entire file into memory at once.
Endpoint
Authentication
string
required
Your team’s API key. Pass the full
wrn_... key value.Path parameters
string
required
The ID of the capsule to read the file from. The capsule must be in the
running state.Request body
string
required
Absolute path to the file inside the capsule, e.g.
"/app/output.json".Example request
Response
Returns200 OK with raw binary file content. The Content-Type header is application/octet-stream.
Streaming download
For large files, use the streaming endpoint instead. It returns the file content using chunked transfer encoding, so you can process or write the data incrementally without buffering the whole file:path field.
Use the streaming endpoint for large files to avoid loading the entire response into memory before writing it to disk.