LangBot Docs
知识库

创建知识库

POST
/api/v1/knowledge/bases

Authorization

X-API-Key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/knowledge/bases" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "code": 0,  "data": {    "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"  }}