Skip to main content
POST
/
v1
/
knowledge
/
groups
/
{id}
/
documents
cURL
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-file

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

multipart/form-data
file
file
required

Document file (TXT, MD, DOCX, or CSV, max 50MB). PDF upload temporarily disabled.

chunkSize
integer
default:1000
chunkOverlap
integer
default:200

Response

Successfully uploaded document