Lists files in the workspace with pagination, sorted by created_at in descending order. Use scope_id to list only files within a specific session sandbox.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
GET /files
Query parameterslimitint (Optional) Default 20Number of items per page, maximum 100page string (Optional) Default —Omit on the first call; pass next_page from the previous response for subsequent callsscope_id string (Optional) Default —Pass a session ID to list only files within that session sandbox | Request example |
Response example
data (an array of File objects) and next_page. File object fields are as follows:
File object fields
id string
File ID, format: file_<24 alphanumeric>
type string
Fixed value file
filename string
Filename
mime_type string
MIME type detected by the server
size_bytes int
File size in bytes
downloadable bool
Whether the file supports download; both direct uploads and session sandbox copies are false
status string
Security review status: available / checking / rejected / type_rejected
created_at string
Upload time, ISO 8601