List a session tree's volume files
Every session of a tree shares its root’s volume, so any of them names it. Entries come in the order a depth-first walk visits them, siblings by name, one page at a time: a page ends at limit entries or at 5 MB of entries, whichever comes first. List with depth=children to browse one directory at a time.
GET
/v1/sessions/{session_id}/volume/{area}Authorization
AuthorizationBearer token · headerrequiredPath parameters
session_idstring<uuid>requiredSession id
areaVolumeAreaParamrequiredThe area to list in.
Allowed:
tmpdataQuery parameters
prefixstringThe path in the area to list beneath, segments joined by `/`; the area
itself when omitted.
depthVolumeListDepthParam`all` when omitted.
Allowed:
allchildrenafterstringEntries past this path in the listing's order: a page's `next_cursor`.
limitinteger10000 when omitted.
min 1 · max 10000
Responses
200One page of the entries beneath the prefix. Empty for a tree whose functions have written nothing yet.
entriesVolumeFileBody[]requiredShow propertiesHide properties
Array of
VolumeFileBodykindVolumeFileKindBodyrequiredAllowed:
filedirsymlinkmodifiedstring<date-time>requiredWhen the entry itself last changed, in UTC.
pathstringrequiredThe entry's path in the area, e.g. `notes/a.txt`.
sizeinteger<int64>requiredBytes for a file; 0 for a directory or a symlink.
min 0
next_cursorstring | nullrequiredPass back as `after` for the next page; `null` on the last page.
truncatedbooleanrequiredTrue when another page follows, which `next_cursor` then starts.
400Malformed path parameter, prefix, depth, or limit, a cursor not beneath the prefix, or the data area where the root agent does not enable it.
errorErrorDetailrequiredWhat went wrong: a `code` to branch on and a `message` to show. The
message is written for a person and may change; the code will not.
Show propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired401Missing, malformed, or invalid bearer token.
errorErrorDetailrequiredWhat went wrong: a `code` to branch on and a `message` to show. The
message is written for a person and may change; the code will not.
Show propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired403A workspace credential lacking session.read. A session token carries no permissions and never lands here.
errorErrorDetailrequiredWhat went wrong: a `code` to branch on and a `message` to show. The
message is written for a person and may change; the code will not.
Show propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired404No such session, or the caller cannot see it, or the tree has no function grant, or the deployment runs no functions.
errorErrorDetailrequiredWhat went wrong: a `code` to branch on and a `message` to show. The
message is written for a person and may change; the code will not.
Show propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired