Knowledge Base
Upload a PDF file to a knowledge base
Upload a PDF file to a knowledge base. Only PDF files are accepted (validated by MIME type and extension).
400 is returned for billing/entitlement failures before the file is processed:
- "Insufficient credits for KB storage upload." — account lacks upload credits
- "KB storage access is not enabled for your account." — plan doesn't include KB storage
No application-level file size limit is enforced — any proxy or infrastructure limits (e.g. nginx) apply instead.
post/knowledgebase/{id}/items/upload-media
Request
- Base URLhttps://api.smallest.ai/atoms/v1
- URLhttps://api.smallest.ai/atoms/v1/knowledgebase/{id}/items/upload-media
- AuthHTTP bearer
Path parameters
idstring required
The ID of the knowledge base
Request body multipart/form-data
Response
Knowledge base item created successfully
Example response
{
"status": true
}Changes
No recorded changes to this operation across all 54 revisions of this API.