Ingest
Batch add documents
Add multiple documents in a single request. Each document can have any content type (text, url, file, etc.) and metadata
post/v3/documents/batch
Request body
Example request
{
"containerTag": "user_123",
"containerTags": [
"user_123",
"project_123"
],
"metadata": {
"category": "technology",
"isPublic": true,
"readingTime": 5,
"source": "web",
"tag_1": "ai",
"tag_2": "machine-learning"
},
"taskType": "memory",
"filepath": "/documents/reports/file.pdf",
"documents": [
{
"containerTag": "user_123",
"containerTags": [
"user_123",
"project_123"
],
"content": "This is a detailed article about machine learning concepts...",
"customId": "mem_abc123",
"metadata": {
"category": "technology",
"isPublic": true,
"readingTime": 5,
"source": "web",
"tag_1": "ai",
"tag_2": "machine-learning"
},
"taskType": "memory",
"filepath": "/documents/reports/file.pdf"
}
]
}Response
Documents added successfully