跳转到主要内容
POST
/
api
/
knowledge-base
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 文档"
  }'
{
  "id": "kb_abc123",
  "name": "产品文档",
  "description": "产品使用手册和 API 文档",
  "status": "active",
  "createdAt": "2025-06-01T10:00:00Z"
}
Authorization
string
必填
Bearer JWT Token
name
string
必填
知识库名称
description
string
知识库描述
id
string
新创建的知识库 ID
name
string
知识库名称
description
string
知识库描述
status
string
知识库状态,默认 active
createdAt
string
创建时间(ISO 8601)
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 文档"
  }'
{
  "id": "kb_abc123",
  "name": "产品文档",
  "description": "产品使用手册和 API 文档",
  "status": "active",
  "createdAt": "2025-06-01T10:00:00Z"
}