Skip to main content
Use this endpoint to read a file from an absolute path inside a running capsule. The response is raw binary content with 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

Returns 200 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:
The request body is identical — a JSON object with a 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