curl --request POST \
--url https://api.anam.ai/v1/knowledge/groups/{id}/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file' \
--form chunkSize=1000 \
--form chunkOverlap=200Upload a document to a RAG group (Supports TXT, MD, DOCX, CSV up to 50MB)
curl --request POST \
--url https://api.anam.ai/v1/knowledge/groups/{id}/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file' \
--form chunkSize=1000 \
--form chunkOverlap=200Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successfully uploaded document
Was this page helpful?