List Files
List files with pagination for a workflow
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number (minimum: 1) |
page_size | integer | 20 | Items per page (minimum: 1, maximum: 100) |
page_size is 100. Requests exceeding this value are silently capped at 100.id is the collection id. The accompanying file_id is the file’s UUID — pass it to Run Uploaded File (POST /v2/workflows/{workflow_id}/files/{file_id}/run/) to start extraction on an already-uploaded file.Possible status Values
| Status | Description |
|---|---|
pending | File created, processing not yet started |
queued | Waiting for an available processing slot |
in_progress | Processing is actively running |
processed | Processing complete, results available |
error | Processing failed |
cancelled | Processing was cancelled |
Authorizations
API key issued from app.anyformat.ai/api-key. Send as Authorization: Bearer <key>.
Path Parameters
Query Parameters
Deprecated. Use cursor for stable keyset pagination — offset pagination can skip or repeat rows when the underlying list changes between requests.
x >= 11 <= x <= 100Opaque token from a previous response's next_cursor. When present, page is ignored and pagination uses keyset order.
Response
Successful Response
List of items for the current page.
Total number of items matching the query.
Deprecated. Current page number when using offset pagination. Prefer next_cursor.
Number of results per page.
Opaque token to fetch the next page in keyset order. Present when the caller sent a cursor query param and more rows may follow; null on the last page. Ignore unless you're using cursor pagination — offset pagination via page is unaffected.
