Create Knowledge Base
Creates a new knowledge base for storing documents and reference materials.
Endpoint
Authentication
Requires a valid API key or user authentication token.
Request Body
Request Fields
name
string
Yes
Name of the knowledge base
description
string
No
Description of the knowledge base's purpose and contents
Response
Returns the created knowledge base object.
Response Format
Response Fields
id
string
Unique identifier for the knowledge base
name
string
Name of the knowledge base
description
string
Description of the knowledge base
created_at
datetime
When the knowledge base was created
updated_at
datetime
When the knowledge base was last updated
created_by
string
ID of the user who created the knowledge base
document_count
integer
Number of documents in the knowledge base
Example Request
Example Response
Error Responses
400
Bad Request - Invalid input data
401
Unauthorized - Invalid or missing API key
500
Internal Server Error
Notes
A new knowledge base starts with zero documents
Knowledge bases can be immediately linked to agents
Names should be descriptive and unique within your account
The description helps users understand the knowledge base's purpose
Document count updates automatically as files are added or removed
Last updated