Create Knowledge Base
Create a new knowledge base in your workspace.
POST
Headers
x-api-keystringrequiredAPI key used for authenticating requests to the API.
x-workspace-idstringrequiredWorkspace identifier for the API.
Request Body
namestringrequiredName of the knowledge base.
descriptionstringDescription of the knowledge base.
Response Fields
_idstringUnique identifier for the newly created knowledge base.
namestringName of the knowledge base.
descriptionstringDescription of the knowledge base.
workspaceIdstringWorkspace ID associated with the knowledge base.
createdAtstringTimestamp when the knowledge base was created.
{
"_id": "665a1b2c3d4e5f6a7b8c9d0e",
"name": "Product Documentation",
"description": "All product-related documentation and FAQs",
"workspaceId": "664a1b2c3d4e5f6a7b8c9d0e",
"files": [],
"createdAt": "2024-06-01T09:00:00.000Z",
"updatedAt": "2024-06-01T09:00:00.000Z"
}