Flexible document listing with aggregates, projections, and advanced pagination.
Supported operators: $and, $or, $nor, $not, $eq, $ne, $gt, $gte, $lt, $lte,
$in, $nin, $exists, $type, $regex, $contains.
Implicit equality (backwards compatible, JSONB containment):
{"status": "active"}
Explicit operators (typed comparisons for number, decimal, datetime, date):
{"priority": {"$gte": 40}, "end_date": {"$lt": "2025-01-01"}}
Use folder_name and end_user_id query parameters to scope system metadata.
Flexible request model for listing documents with projection and aggregates.
Metadata filters with operator support: $and, $or, $nor, $not, $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin, $exists, $type, $regex, $contains. Implicit equality uses JSONB containment; explicit operators support typed comparisons.
Number of documents to skip
x >= 0Maximum number of documents to return
x >= 0When false, only aggregates are returned
Include total number of matching documents when true
Include document counts grouped by processing status when true
Include document counts grouped by folder when true
When true, only documents with completed processing status are returned and counted
Field to sort the results by
created_at, updated_at, filename, external_id Sort direction for the results
asc, desc Optional list of fields to project for each document (dot notation supported). Derived fields such as 'page_count' are also supported.
Successful Response
Flexible response for listing documents with aggregates.