Upload a knowledge base document
Knowledge base
Upload a knowledge base document
Uploads a document to a knowledge base store and queues it for processing. Accepts the file either as multipart/form-data (binary file) or as application/json (base64 file).
POST
Upload a knowledge base document
Authorizations
Supabase JWT access token, passed as Authorization: Bearer <token>.
Body
The knowledge base store to add the document to.
Minimum string length:
1Example:
"d9d6f121-1230-48fd-b3a7-8b5a1e8db052"
The document file (binary).
Document name (with extension). Falls back to the uploaded file name for multipart.
Override merchant id (admin / sub-merchant only).
Response
The document was uploaded and queued for processing.
Id of the created knowledge_base record.