cURL
curl --request GET \ --url https://{projectHost}/collections/{collectionName}/docs \ --header 'x-api-key: <api-key>'
{ "total": 2, "docs": [ { "collection": "example-collection-name", "doc": { "example-field1": "example-value1", "example-field2": [ 0.1, 0.2, 0.3 ] } }, { "collection": "example-collection-name", "doc": { "example-field1": "example-value2", "example-field2": [ 0.4, 0.5, 0.6 ] } } ], "nextPageToken": "eyJpZCI6ICJhYmMiLCAiY3JlYXRlZF9hdCI6ICIyMDI0LTExLTA1VDE0OjI3OjU2KzAwOjAwIn0=" }
List documents in a collection.
Project API Key.
Collection name.
Max number of documents to return at once.
1 <= x <= 100
Next page token.
Documents list.
A list of documents.
Was this page helpful?