Skip to main content
POST
/
api
/
v1
/
knowledge
/
bases
/
{kb_uuid}
/
retrieve
Retrieve Knowledge
curl --request POST \
  --url http://localhost:5300/api/v1/knowledge/bases/{kb_uuid}/retrieve \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "query": "如何使用 LangBot 创建机器人?"
}
'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "results": [
      {}
    ]
  }
}

Authorizations

X-API-Key
string
header
required

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

Path Parameters

kb_uuid
string
required

Knowledge Base UUID

Body

application/json
query
string
required

Query text

Response

200 - application/json

Retrieval successful

code
integer
Example:

0

msg
string
Example:

"ok"

data
object