Files
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.
get/v1/files
Query parameters
scope_idstring required
Session / container identifier.
Example:session-abc123
Session / container identifier.
limitinteger
Maximum number of files to return per page.
Example:20
Maximum number of files to return per page.
after_idstring nullable
Return files created after this file ID (exclusive). Used for forward pagination.
Example:uploads/data.csv
Return files created after this file ID (exclusive). Used for forward pagination.
before_idstring nullable
Return files created before this file ID (exclusive). Used for backward pagination.
Example:outputs/result.png
Return files created before this file ID (exclusive). Used for backward pagination.
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"
}