Skip to main content
POST
Upload a document into the org's Document RAG knowledge base

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data

Shared upload validation for both the Inertia and Public API knowledge document controllers (HASP-57). mimetypes sniffs the actual file content rather than trusting the extension; per-mime size caps come from {@see KnowledgeDocumentUploader::SIZE_LIMITS}.

file
file
required

Response

The newly uploaded knowledge base document.

data
any[]
required