メインコンテンツへスキップ
POST
/
api
/
v1
/
knowledge
/
bases
Create Knowledge Base
curl --request POST \
  --url http://localhost:5300/api/v1/knowledge/bases \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "技术文档库",
  "description": "存储技术文档和API参考",
  "embedding_model_uuid": "uuid-of-embedding-model"
}
'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "uuid": "<string>"
  }
}

承認

X-API-Key
string
header
必須

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

ボディ

application/json
name
string
必須

name

embedding_model_uuid
string
必須

Embedding model UUID

description
string

description

レスポンス

200 - application/json

Knowledge base created successfully

code
integer
:

0

msg
string
:

"ok"

data
object