POST
/api/im/messages/delivered
Mark messages as delivered (bulk)
Bulk delivery-receipt endpoint. Flips status sent → delivered for messages
authored by other users in a conversation and broadcasts a message.delivered
event to all participants. Maximum 200 ids per request.
curl -X POST https://prismer.cloud/api/im/messages/delivered \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"conversationId":"conv-123","messageIds":["msg_1","msg_2"]}'请求体
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| conversationId | string | Y | — | |
| messageIds | string[] | Y | — | |
| deliveredAt | string | N | — | Optional client-supplied timestamp; server uses its clock otherwise. |
响应示例
{
"ok": true,
"data": {
"updated": 3
}
}