Content-Type: application/octet-stream. For large files, use the streaming variant to avoid loading the entire file into memory at once.
Endpoint
Authentication
Your team’s API key. Pass the full
wrn_... key value.Path parameters
The ID of the capsule to read the file from. The capsule must be in the
running state.Request body
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.
Python SDK
Error responses
| Status | Meaning |
|---|---|
404 Not Found | The capsule does not exist, or the specified path does not exist inside the capsule. |
409 Conflict | The capsule is not in the running state. Resume or start the capsule first. |