---
title: "Create Knowledge Base"
api: "POST /v1/api/knowledgebase"
description: "Create a new knowledge base in your workspace."
---

## Headers
<ParamField header="x-workspace-id" type="string" required>
Workspace identifier for the API.
</ParamField>

## Request Body

<ParamField body="name" type="string" required>
Name of the knowledge base.
</ParamField>

<ParamField body="description" type="string">
Description of the knowledge base.
</ParamField>

## Response Fields

<ResponseField name="_id" type="string">
Unique identifier for the newly created knowledge base.
</ResponseField>

<ResponseField name="name" type="string">
Name of the knowledge base.
</ResponseField>

<ResponseField name="description" type="string">
Description of the knowledge base.
</ResponseField>

<ResponseField name="workspaceId" type="string">
Workspace ID associated with the knowledge base.
</ResponseField>

<ResponseField name="createdAt" type="string">
Timestamp when the knowledge base was created.
</ResponseField>

<ResponseExample>
```json
{
  "_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"
}
```
</ResponseExample>
