Files API (NEW)
List Files
Retrieve paginated list of uploaded files with filtering support
GET
List Files
GET /files
Retrieve a paginated list of uploaded files with support for filtering by type and status. Deleted files are excluded by default.
Features
- Paginated results with configurable page sizes
- Filter by document type and status
- Exclude deleted files by default
- Efficient querying with proper indexing
Parameters
Parameter | Type | Default | Description |
---|---|---|---|
page | integer | 1 | Page number |
page_size | integer | 20 | Items per page (max: 100) |
type | string | - | Filter by document type (invoice, bank_statement, etc.) |
status | string | - | Filter by status (pending, processing, completed, failed, deleted) |
Request
Response
Response Fields
Field | Type | Description |
---|---|---|
id | string | Unique file identifier |
filename | string | Original filename |
file_id | string | Internal file storage identifier |
type | string | Document type |
status | string | Processing status |
size | integer | File size in bytes |
created_at | string | Upload timestamp (ISO 8601) |
completed_at | string | Processing completion timestamp |
page | integer | Current page number |
page_size | integer | Items per page |
total | integer | Total number of files |
Try It Out
Use the interactive playground above to test the list files endpoint. You can:
- Add your API key in the Authorization header
- Configure pagination with page and page_size parameters
- Apply filters by type (invoice, bank_statement) or status
- Execute the request to see paginated results
The playground allows you to experiment with different filter combinations.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Page number
Items per page
Required range:
x <= 100
Filter by document type (invoice, bank_statement, etc.)
Filter by status
Available options:
pending
, processing
, completed
, failed
, deleted
Response
200 - application/json
Files retrieved successfully
The response is of type object
.