Read Messages
POST /acknowledgements
To receive a list of messages from Mixin message service, you need to setup a websocket connection. After receiving the message via WebSocket, you need to call this API to tell Mixin message service that it has been delivered, otherwise it will keep pushing the message.
API 端点 URL
https://api.mixin.one/acknowledgements
请求体
[
{ "message_id": "message UUID", "status": "READ" },
{ "message_id": "message UUID", "status": "READ" },
...
]
请求示例
curl -i -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" https://api.mixin.one/acknowledgements --data '[{"message_id":"928c5c40-769c-3e97-8387-fb1ae0645311", "status":"READ"}]'
Response
[
// up to 100 entries each time.
{ "message_id": "UUID", "status": "READ" },
...
]