Skip to content

Bots

Bot instance management operations


List all bots

GET
/api/v1/platform/bots

Retrieve a list of all configured bot instances

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)

Responses

Successful response

application/json
JSON
{
"code": 0,
"msg": "ok",
"data": {
"bots": [
{
"uuid": "string",
"name": "string",
"adapter": "telegram",
"config": {
},
"created_at": "string",
"updated_at": "string"
}
]
}
}

Playground

Server
Authorization

Samples


Create a new bot

POST
/api/v1/platform/bots

Create and configure a new bot instance

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",
"adapter": "string",
"config": {
}
}

Responses

Bot created successfully

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

Playground

Server
Authorization
Body

Samples


Get a specific bot

GET
/api/v1/platform/bots/{bot_uuid}

Retrieve details of a specific bot instance

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

bot_uuid*

Bot UUID

Typestring
Required
Format"uuid"

Responses

Successful response

application/json
JSON
{
"code": 0,
"msg": "ok",
"data": {
"bot": {
"uuid": "string",
"name": "string",
"adapter": "telegram",
"config": {
},
"created_at": "string",
"updated_at": "string"
}
}
}

Playground

Server
Authorization
Variables
Key
Value

Samples


Update a bot

PUT
/api/v1/platform/bots/{bot_uuid}

Update the configuration of an existing bot instance

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

bot_uuid*
Typestring
Required
Format"uuid"

Request Body

application/json
JSON
{
"name": "string",
"config": {
}
}

Responses

Bot updated successfully

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

Playground

Server
Authorization
Variables
Key
Value
Body

Samples


Delete a bot

DELETE
/api/v1/platform/bots/{bot_uuid}

Remove a bot instance from the system

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

bot_uuid*
Typestring
Required
Format"uuid"

Responses

Bot deleted successfully

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

Playground

Server
Authorization
Variables
Key
Value

Samples


Get bot event logs

POST
/api/v1/platform/bots/{bot_uuid}/logs

Retrieve event logs for a specific bot

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

bot_uuid*
Typestring
Required
Format"uuid"

Request Body

application/json
JSON
{
"from_index": -1,
"max_count": 10
}

Responses

Successful response

application/json
JSON
{
"code": 0,
"msg": "ok",
"data": {
"logs": [
{
}
],
"total_count": 0
}
}

Playground

Server
Authorization
Variables
Key
Value
Body

Samples


Send Message

POST
/api/v1/platform/bots/{bot_uuid}/send_message

Send a message to a specific target via the specified bot

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)

Parameters

Path Parameters

bot_uuid*

Bot UUID

Typestring
Required

Request Body

application/json
JSON
{
"target_type": "group",
"target_id": "123456789",
"message_chain": [
{
"type": "Plain",
"text": "Hello, World!"
}
]
}

Responses

Message sent successfully

application/json
JSON
{
"code": 0,
"msg": "ok",
"data": {
"sent": true
}
}

Playground

Server
Authorization
Variables
Key
Value
Body

Samples


Powered by VitePress OpenAPI