Knowledge Bases
Upload Documents
Upload one or more documents to a knowledge base
POST
Upload Documents
Path Parameters
| Parameter | Type | Description |
|---|---|---|
kb_id | string | Knowledge base ID |
Request
Content-Type: multipart/form-data
| Field | Type | Description |
|---|---|---|
files | file[] | Documents to upload (PDF, TXT, MD, DOCX, and supported text formats) |
Processing
Uploaded files are saved and queued for background ingestion:- Chunking — split into overlapping segments
- Embedding — vector representations generated
- Storage — persisted for retrieval
Response
GET /api/v1/batches/{job_id} to track ingestion progress.Upload Documents

