Cloud and BYOC for Orca Agent Engine are in Private Preview — request an invite
Docs
Sessions

Sessions.list files

GET/v1/sessions/{id}/files
x-api-key<token>

Workspace API key. Read from the x-api-key header by src/auth/api-key.ts. A key that is present and does not authenticate is final — no other scheme is consulted.

In: header

Path Parameters

id*string
Match^(?:ses|sesn)_[A-Za-z0-9_-]+$

Query Parameters

limit?integer
Range1 <= value <= 1000
after_id?string
Match^(?:file)_[A-Za-z0-9_-]+$
before_id?string
Match^(?:file)_[A-Za-z0-9_-]+$

Header Parameters

anthropic-beta?string

Accepted for Anthropic SDK compatibility and ignored. No value of this header changes request handling. Typed as a free-form string rather than an enum because this service recognises no specific beta value.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/sessions/string/files"
{  "data": [    {      "id": "string",      "created_at": "2019-08-24T14:15:22Z",      "filename": "string",      "mime_type": "string",      "size_bytes": 0,      "type": "file",      "downloadable": true,      "scope": {        "type": "session",        "id": "string"      }    }  ],  "first_id": "string",  "last_id": "string",  "has_more": true}