POST
Add File Source
Uploads a document (PDF, DOCX, TXT, or Markdown) as a source.
POST
https://api.vantaxai.com/v1/knowledge-bases/{knowledgebase_id}/sources/fileThe uploaded file is parsed, chunked, and embedded. The source begins in the `processing` state while extraction runs and becomes `ready` once indexing completes.
multipart/form-data
This endpoint accepts a `multipart/form-data` body, not JSON. Send the binary file in the `file` field and an optional `title` field. Do not set a `Content-Type: application/json` header — your HTTP client sets the multipart boundary automatically.
Headers
AuthorizationstringrequiredBearer authentication with your secret API key.
example: Bearer vx_live_3fa9c2…
Path Parameters
knowledgebase_idstringrequiredThe knowledge base to add the source to.
example: kb_71ac0
Body Parameters
filefilerequiredThe document to upload. Supported types: PDF, DOCX, TXT, Markdown (max 25 MB).
titlestringoptionalOptional label. Defaults to the uploaded file name.