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"
}
知识库管理 API
创建知识库
创建新的知识库
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"
}
string
必填
Bearer JWT Token
string
必填
知识库名称
string
知识库描述
string
新创建的知识库 ID
string
知识库名称
string
知识库描述
string
知识库状态,默认
activestring
创建时间(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"
}
⌘I