Skip to main content
POST
/
api
/
v1
/
platform
/
bots
/
{bot_uuid}
/
send_message
curl --request POST \
  --url http://localhost:5300/api/v1/platform/bots/{bot_uuid}/send_message \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "target_type": "group",
  "target_id": "123456789",
  "message_chain": [
    {
      "type": "Plain",
      "text": "Hello, World!"
    }
  ]
}
'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "sent": true
  }
}

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

bot_uuid
string
required

Bot UUID

Body

application/json
target_type
enum<string>
required

Target type

Available options:
person,
group
target_id
string
required

Target ID (user ID or group ID)

message_chain
object[]
required

Message chain (array of MessageComponent)

Response

Message sent successfully

code
integer
Example:

0

msg
string
Example:

"ok"

data
object