Add a KB source — file (multipart), URL, or inline text (async)
knowledge-bases
Add a KB source — file (multipart), URL, or inline text (async)
Accepts the upload immediately and returns a job_id. Ingestion (parse → S3 → token count → optional vector indexing) runs in the background. Poll GET /v1/knowledge-bases/{kb_id}/jobs/{job_id} to check completion.
Three call shapes, one endpoint:
- File upload (multipart/form-data):
file=@path/to/doc.pdf. Allowed: pdf, docx, xlsx/xls, txt, md. - URL (multipart):
type=url&source=https://... - Inline text (multipart):
type=text&source=...
Stuff vs vector mode is decided at call time based on the agent’s total KB token budget (default 10k).
POST
Add a KB source — file (multipart), URL, or inline text (async)
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
Successful Response