curl --request POST \
--url https://{projectHost}/collections/{collectionName}/docs/list \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"size": 10,
"filter": {
"queryString": {
"query": "category:docs"
}
},
"partitionFilter": {
"field": "tenant",
"in": [
"acme"
]
},
"fields": {
"include": [
"id",
"title",
"category"
]
},
"includeVectors": false
}
'{
"total": 2,
"docs": [
{
"collection": "example-collection-name",
"doc": {
"id": "doc-1",
"title": "Example document 1",
"category": "docs"
}
},
{
"collection": "example-collection-name",
"doc": {
"id": "doc-2",
"title": "Example document 2",
"category": "docs"
}
}
],
"nextPageToken": "ZXlKcFpDSTZJQ0poWW1NaQ",
"isDocsInline": true
}Documents
List documents extended
List documents in a collection with optional filters, partition filtering, field selection, and vector inclusion. All refs, including tags and aliases targeting tags, list only the currently published snapshot. Pending WAL becomes visible to listing only after a builder publishes a snapshot; listing does not apply a WAL overlay.
POST
/
collections
/
{collectionName}
/
docs
/
list
curl --request POST \
--url https://{projectHost}/collections/{collectionName}/docs/list \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"size": 10,
"filter": {
"queryString": {
"query": "category:docs"
}
},
"partitionFilter": {
"field": "tenant",
"in": [
"acme"
]
},
"fields": {
"include": [
"id",
"title",
"category"
]
},
"includeVectors": false
}
'{
"total": 2,
"docs": [
{
"collection": "example-collection-name",
"doc": {
"id": "doc-1",
"title": "Example document 1",
"category": "docs"
}
},
{
"collection": "example-collection-name",
"doc": {
"id": "doc-2",
"title": "Example document 2",
"category": "docs"
}
}
],
"nextPageToken": "ZXlKcFpDSTZJQ0poWW1NaQ",
"isDocsInline": true
}Body
application/json
Response
Documents list.
Was this page helpful?