Document

Batch Gets Documents from a DocumentCollection

POST
Returns Documents from a DocumentCollection specified by UUID or ID.

Path parameters

collectionNamestringRequired
Name of the Document Collection

Request

This endpoint expects an object.
document_ids
list of stringsOptional
uuids
list of stringsOptional

Response

This endpoint returns a list of objects
content
stringOptional
created_at
stringOptional
document_id
stringOptional
embedding
list of doublesOptional
is_embedded
booleanOptional
metadata
map from strings to anyOptional
updated_at
stringOptional
uuid
stringOptional

Errors

POST
1curl -X POST https://api.getzep.com/api/v2/collections/collectionName/documents/batchGet \
2 -H "Authorization: Api-Key <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
1[
2 {
3 "content": "content",
4 "created_at": "created_at",
5 "document_id": "document_id",
6 "embedding": [
7 1.1
8 ],
9 "is_embedded": true,
10 "metadata": {
11 "metadata": {
12 "key": "value"
13 }
14 },
15 "updated_at": "updated_at",
16 "uuid": "uuid"
17 }
18]