Skip to main content

Get Chat Message Reactions

Retrieve reaction data for a specific chat message (comment or reply).

Endpoint

GET /api/chat/:id/reactions

Authentication

Optional. When authenticated, the response includes the user's own reactions in myReactions.

Path Parameters

ParameterTypeDescription
idintegerThe chat message ID

Query Parameters

ParameterTypeRequiredDescription
emojistringNoFilter to a specific emoji to get the list of users who reacted with that emoji

Response

Without emoji filter — Aggregated Counts

Status Code: 200 OK

Returns the total reaction counts per emoji and, if authenticated, the user's own reactions.

{
"reactions": [
{ "emoji": "heart", "count": 12 },
{ "emoji": "fire", "count": 5 },
{ "emoji": "thumbs_up", "count": 3 }
],
"myReactions": ["heart", "fire"]
}
FieldTypeDescription
reactionsarrayArray of { emoji, count } objects for each emoji used on this message
myReactionsstring[]Emoji identifiers the authenticated user has reacted with (empty if unauthenticated)

With emoji filter — Reactor Users

Status Code: 200 OK

Returns the list of users who reacted with the specified emoji.

{
"emoji": "heart",
"users": [
{
"id": 6604,
"name": "Bruce van Zyl",
"photoUrl": "1639671861952.png"
},
{
"id": 6605,
"name": "Jane Smith",
"photoUrl": "1639672045123.png"
}
]
}
FieldTypeDescription
emojistringThe emoji that was queried
usersarrayArray of user objects (id, name, photoUrl) who reacted

Examples

Get aggregated counts

curl -X GET "https://api.tribesocial.io/api/chat/1693/reactions" \
-H "Authorization: Bearer YOUR_AUTH_TOKEN"

Get users who reacted with a specific emoji

curl -X GET "https://api.tribesocial.io/api/chat/1693/reactions?emoji=heart" \
-H "Authorization: Bearer YOUR_AUTH_TOKEN"