> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeus.agentspro.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 创建知识库

> 创建新的知识库

<ParamField header="Authorization" type="string" required>
  Bearer JWT Token
</ParamField>

<ParamField body="name" type="string" required>
  知识库名称
</ParamField>

<ParamField body="description" type="string">
  知识库描述
</ParamField>

<ResponseField name="id" type="string">
  新创建的知识库 ID
</ResponseField>

<ResponseField name="name" type="string">
  知识库名称
</ResponseField>

<ResponseField name="description" type="string">
  知识库描述
</ResponseField>

<ResponseField name="status" type="string">
  知识库状态，默认 `active`
</ResponseField>

<ResponseField name="createdAt" type="string">
  创建时间（ISO 8601）
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url https://zeus-api.agentspro.cn/api/knowledge-base \
    --header 'Authorization: Bearer <token>' \
    --header 'Content-Type: application/json' \
    --data '{
      "name": "产品文档",
      "description": "产品使用手册和 API 文档"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "id": "kb_abc123",
    "name": "产品文档",
    "description": "产品使用手册和 API 文档",
    "status": "active",
    "createdAt": "2025-06-01T10:00:00Z"
  }
  ```
</ResponseExample>
