Skip to main content
POST
Upload a knowledge base document

Authorizations

Authorization
string
header
required

Supabase JWT — Authorization: Bearer <token>.

Body

knowledge_base_store_id
string
required

The knowledge base store to add the document to.

Minimum string length: 1
Example:

"d9d6f121-1230-48fd-b3a7-8b5a1e8db052"

file
file
required

The document file (binary).

name
string

Document name (with extension). Falls back to the uploaded file name for multipart.

merchant_id
string

Override merchant id (admin / sub-merchant only).

Response

The document was uploaded and queued for processing.

knowledge_base_id
string
required

Id of the created knowledge_base record.