v5
OpenAPI 3.1.02026-08-025631,1012.8 MBDocuments
List documents across all collections (namespace-scoped).
List documents across all collections in the namespace.
Use this when you don't know which collection a document belongs to, or when you need to search across collections. Optionally filter to specific collection_ids.
For collection-specific listing, use POST /v1/collections/{collection_id}/documents/list instead.
post/v1/documents/list
Query parameters
limitinteger nullable
page_sizeinteger nullable
offsetinteger nullable
pageinteger nullable
cursorstring nullable
next_cursorstring nullable
afterstring nullable
include_totalboolean
Request body
Example request
{
"filters": {
"AND": [
{
"field": "name",
"operator": "eq",
"value": "John"
},
{
"field": "age",
"operator": "gte",
"value": 30
}
],
"OR": [
{
"field": "status",
"operator": "eq",
"value": "active"
},
{
"field": "role",
"operator": "eq",
"value": "admin"
}
],
"NOT": [
{
"field": "department",
"operator": "eq",
"value": "HR"
},
{
"field": "location",
"operator": "eq",
"value": "remote"
}
],
"case_sensitive": true
},
"sort": {
"field": "created_at"
},
"group_by": "source_object_id",
"select": [
"metadata.title",
"content"
],
"expand": [
"customer_id"
]
}Response
Successful Response
Example response
{
"description": "Regular document list (no grouping)",
"pagination": {
"has_more": false,
"limit": 10,
"offset": 0,
"total_count": 1
},
"results": [
{
"collection_id": "col_articles",
"document_id": "doc_123",
"metadata": {
"title": "AI Article"
}
}
],
"stats": {
"avg_blobs_per_document": 1,
"total_documents": 1
}
}