List who reacted
GET
/chat-rooms/:roomId/messages/:messageId/reactionsList the reactions on a message together with the users who added them. The message list only includes userIds, so use this endpoint when you need to show who reacted.
| Auth | Login required |
|---|
Path parameters
roomIdstringrequiredChat room ID.
messageIdstringrequiredMessage ID.
Response
| Field | Type | Description |
|---|---|---|
messageId | string | The message ID. |
reactions | object[] | Per-emoji emoji / count / users, in the order they were added. |
Request
curl https://api.4s.link/chat-rooms/ROOM_ID/messages/MESSAGE_ID/reactions \-H "Authorization: Bearer 4s_at_..."
Example response
{"messageId": "m1a2b3c4-...","reactions": [{"emoji": "👍","count": 2,"users": [{ "id": "a1b2c3d4-...", "slug": "taro", "firstName": "太郎", "lastName": "山田", "avatarUrl": "https://.../avatar.png" },{ "id": "b2c3d4e5-...", "slug": "hanako", "firstName": "花子", "lastName": "鈴木", "avatarUrl": null }]}]}