Skip to navigation

Upload knowledge base document

View as Markdown

Upload a file (md, txt, csv, tsv, pdf, docx, xlsx — max 300KB). Text is extracted server-side and becomes the editable document content; the original binary is not retained. The document is indexed immediately.

Authentication

AuthorizationBearer

Supabase session JWT from a signed-in browser session, supplied as Authorization: Bearer <jwt>. This is what the web app sends. It shares the Authorization header with bearerApiKey; the server distinguishes them by the ela_ prefix on API keys.

Path parameters

knowledgeBaseIdstringRequired

Request

This endpoint expects an object.
orgSlugstringRequired
fileanyRequired
namestringOptional1-200 characters

Response

OK
any
OR
any