v45

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-0114775543.6 KB
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

Path parameters

idstring required

The ID of the knowledge base

Response

Knowledge base item created successfully

statusboolean

Example response

{
  "status": true
}