LangBot Docs
机器人

通过机器人发送消息

通过指定的机器人向目标发送消息。仅支持 API Key 认证。

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

通过指定的机器人向目标发送消息。仅支持 API Key 认证。

Authorization

ApiKeyAuth
X-API-Key<token>

In: header

Path Parameters

bot_uuid*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/platform/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/send_message" \  -H "Content-Type: application/json" \  -d '{    "target_type": "person",    "target_id": "string",    "message_chain": [      {        "type": "Plain",        "text": "Hello, World!"      }    ]  }'
{  "code": 0,  "data": {    "sent": true  }}