Skip to content

Create Knowledge Base

POST
/api/v1/knowledge/bases

Create a new knowledge base

Authorizations

ApiKeyAuth

API Key authentication using X-API-Key header.
Example: X-API-Key: lbk_your_api_key_here

TypeAPI Key (header: X-API-Key)
or
BearerAuth

Bearer token authentication. Can be either a user JWT token or an API key.
Example: Authorization: Bearer <token_or_key>

TypeHTTP (bearer)

Request Body

application/json
JSON
{
"name": "string",
"description": "string",
"embedding_model_uuid": "string"
}

Responses

Knowledge base created successfully

application/json
JSON
{
"code": 0,
"msg": "ok",
"data": {
"uuid": "string"
}
}

Playground

Server
Authorization
Body

Samples

Powered by VitePress OpenAPI