Skip to main content
Creates a new knowledge base. After creation, add documents to it using the create document endpoint, then attach the knowledge base to an assistant.

Endpoint

POST /user/knowledgebases

Request

string
required
Name of the knowledge base. Maximum 255 characters.
string
Optional description. Maximum 255 characters.

Response

string
Confirmation message.
object
The created knowledge base.

Example

201 Created
After creating the knowledge base:
  1. Add documents using the create document endpoint.
  2. Wait for document processing to complete.
  3. Attach the knowledge base to an assistant using the update assistant endpoint.