Skip to main content

Send Messages

POST /messages

Send messages in bulk.

info

A maximum of 100 messages can be sent in batch each time, and the message body cannot exceed 128Kb.

Endpoint URL

 https://api.mixin.one/messages

Authentication and options

Authorization
Authorized
LimitationNo limitation

Payload

[
{ message object },
{ message object },
...
]
info

message object is a JSON object, please refer to the Message Category.

Example request

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:

[
{
"conversation_id": "UUID",
"recipient_id": "UUID",
"message_id": "UUID",
"category": "",
"representative_id": "UUID",
"quote_message_id": "UUID",
"data": "Base64 encoded data"
},
...
]

It returns empty JSON on success.