List files in a session
List all files associated with a session, combining uploaded input files and sandbox-generated output files. Results are sorted by creation time and support cursor-based pagination.
Query parameters
Session / container identifier.
Session / container identifier.
Maximum number of files to return per page.
Maximum number of files to return per page.
Return files created after this file ID (exclusive). Used for forward pagination.
Return files created after this file ID (exclusive). Used for forward pagination.
Return files created before this file ID (exclusive). Used for backward pagination.
Return files created before this file ID (exclusive). Used for backward pagination.
Namespace to list files from. Defaults to 'session'.
Namespace to list files from. Defaults to 'session'.
Object-storage-style key prefix filter. When set, only files whose key starts with this prefix are returned (e.g. data/2024/ lists everything uploaded under that virtual folder). Works like S3 list-objects-v2 --prefix. The prefix is matched against the relative upload key, not the full canonical path.
Object-storage-style key prefix filter. When set, only files whose key starts with this prefix are returned (e.g. data/2024/ lists everything uploaded under that virtual folder). Works like S3 list-objects-v2 --prefix. The prefix is matched against the relative upload key, not the full canonical path.
Response
Successful Response
Example response
{
"data": [
{
"created_at": "2024-01-15T10:30:00Z",
"downloadable": false,
"filename": "data.csv",
"id": "uploads/data.csv",
"mime_type": "text/csv",
"scope": {
"id": "session-abc123",
"type": "session"
},
"size_bytes": 4096,
"type": "file"
}
],
"first_id": "uploads/data.csv",
"has_more": false,
"last_id": "outputs/result.png"
}Changes
Changed in 2 of the 11 revisions of this API.15
- ▲
the
typeresponse property const valuesessionwas removed for the status200response-property-const-removed
- ○
added the new optional
queryrequest parameternamespacenew-optional-request-parameter
- ○
added the new optional
queryrequest parameterprefixnew-optional-request-parameter
- ○
added the optional property
data/items/etagto the response with the200statusresponse-optional-property-added
- ○
added the optional property
data/items/namespaceto the response with the200statusresponse-optional-property-added
- ▲
- ○
endpoint added
endpoint-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○