Skip to content

Add File to Knowledge Base​

POST
/api/v1/knowledge/bases/{kb_uuid}/files

Add uploaded file to knowledge base for processing

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)

Parameters​

Path Parameters

kb_uuid*

Knowledge Base UUID

Typestring
Required

Request Body​

application/json
JSON
{
"file_id": "string"
}

Responses​

Addition successful

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

Playground​

Server
Authorization
Variables
Key
Value
Body

Samples​

Powered by VitePress OpenAPI