Upload Knowledge Base Item
Knowledge Bases
Upload Knowledge Base Item
Upload a new knowledge base item (PDF or TXT file) to a specific knowledge base.
POST
Upload Knowledge Base Item
Documentation Index
Fetch the complete documentation index at: https://docs.kollie.ai/llms.txt
Use this file to discover all available pages before exploring further.
Upload Knowledge Base Item
This endpoint allows you to upload a new item (PDF or TXT file) to a knowledge base.Request
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token for authentication |
| Content-Type | string | Yes | multipart/form-data |
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| kb_id | string | Yes | The ID of the knowledge base |
Form Data
| Name | Type | Required | Description |
|---|---|---|---|
| file | file | Yes | The PDF or TXT file to upload |
| name | string | No | Custom name for the item (defaults to filename) |
Response
200 OK
Response Fields
| Field | Type | Description |
|---|---|---|
| id | string | Unique identifier for the uploaded item |
| name | string | Name of the item |
| file_type | string | Type of the file (PDF or TXT) |
| status | string | Current status of the item |
| created_at | string | Timestamp when the item was created |
| updated_at | string | Timestamp when the item was last updated |
| knowledge_base_id | string | ID of the knowledge base this item belongs to |

