Upload File
Upload a document to Knowbase for processing and AI-powered querying.
Upload a document for processing
POST https://api.knowbase.ai/api/v1/files
Upload a file to your Knowbase library. The file will be automatically processed (embedded) for AI-powered search and chat. Supported types: PDF, DOCX, DOC, TXT, MD, PPTX, PPT, and audio/video files. Maximum size: 100 MB.
Headers
Name
Type
Description
Authorization*
string
Bearer YOUR_API_TOKEN
Request Body
Name
Type
Description
file*
multipart/form-data
The file to upload
Responses
200: OK File uploaded successfully
{
"message": "File uploaded successfully",
"file_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "processing"
}400: Bad Request Quota exceeded or unsupported file
{
"error": {
"code": "QUOTA_EXCEEDED",
"message": "Upload limit reached (500). Upgrade your plan for more uploads."
}
}401: Unauthorized Invalid or missing token
429: Too Many Requests Rate limit exceeded
Example
Last updated