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