depth parameter.
Endpoint
Authentication
Your team’s API key. Pass the full
wrn_... key value.Path parameters
The ID of the capsule to list files in. The capsule must be in the
running state.Request body
Absolute path to the directory inside the capsule, e.g.
"/home/user".Recursion depth for the listing.
0 returns only the directory itself (non-recursive); 1 returns its immediate children. Higher values recurse further into subdirectories.Example request
Response
Returns200 OK with a JSON object containing an entries array.
Array of file and directory entries found at the specified path.
Example response
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. |