Send Messages
POST /messages
Send messages in bulk.
信息
A maximum of 100 messages can be sent in batch each time, and the message body cannot exceed 128Kb.
API 端点 URL
https://api.mixin.one/messages
请求体
[
{ message object },
{ message object },
...
]
信息
message object
is a JSON object, please refer to the Message Category.
请求示例
curl -i -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" https://api.mixin.one/messages --data PAYLOAD
Request body data is a message array:
body payload
[
{
"conversation_id": "UUID",
"recipient_id": "UUID",
"message_id": "UUID",
"category": "",
"representative_id": "UUID",
"quote_message_id": "UUID",
"data_base64": "Base64 encoded data",
"silent": false
},
...
]
It returns empty JSON on success.