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
Name of the knowledge base. Maximum 255 characters.
Optional description. Maximum 255 characters.
Response
The created knowledge base.
Name of the knowledge base.
Status — always empty for new knowledge bases.
Human-readable status label.
ISO 8601 creation timestamp.
ISO 8601 last update timestamp.
Example
curl -X POST "https://portal.intellixent.ai/api/user/knowledgebases" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Product Documentation",
"description": "Technical documentation for our products"
}'
{
"message": "Knowledgebase created successfully.",
"data": {
"id": 1,
"name": "Product Documentation",
"description": "Technical documentation for our products",
"status": "empty",
"status_label": "Empty",
"created_at": "2025-01-08T10:30:00.000000Z",
"updated_at": "2025-01-08T10:30:00.000000Z"
}
}
After creating the knowledge base:
- Add documents using the create document endpoint.
- Wait for document processing to complete.
- Attach the knowledge base to an assistant using the update assistant endpoint.