List who reacted

GET/chat-rooms/:roomId/messages/:messageId/reactions

List 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.

AuthLogin required

Path parameters

roomIdstringrequired

Chat room ID.

messageIdstringrequired

Message ID.

Response

FieldTypeDescription
messageIdstringThe message ID.
reactionsobject[]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 }
]
}
]
}