Skip to main content
POST
/
api
/
knowledge-bases
/
{kbId}
/
documents
Upload a document to the knowledge base
curl --request POST \
  --url http://localhost:3000/api/knowledge-bases/{kbId}/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form documentGroup=product-docs

Authorizations

Authorization
string
header
required

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

Path Parameters

kbId
string
required

Knowledge base ID

Body

multipart/form-data
documentGroup
string
default:default

Document group for organizing documents within a knowledge base

Maximum string length: 100
Example:

"product-docs"

Response

Document accepted for processing