curl --request GET \
--url https://{appid}.api-{region}.cometchat.io/v3/messages/{id}/reactions \
--header 'apikey: <api-key>'
{
"data": [
{
"id": "1",
"messageId": "2",
"reaction": ":reaction",
"uid": "superhero1",
"reactedAt": 1700210335,
"reactedBy": {
"uid": "superhero1",
"name": "Iron Man",
"status": "offline",
"role": "default",
"createdAt": 1698934972
}
},
{
"id": "2",
"messageId": "2",
"reaction": "😅",
"uid": "superhero1",
"reactedAt": 1700210456,
"reactedBy": {
"uid": "superhero1",
"name": "Iron Man",
"status": "offline",
"role": "default",
"createdAt": 1698934972
}
},
{
"id": "5",
"messageId": "2",
"reaction": "😒",
"uid": "superhero2",
"reactedAt": 1700230866,
"reactedBy": {
"uid": "superhero2",
"name": "Captain America",
"status": "offline",
"role": "default",
"createdAt": 1698934987,
"conversationId": "superhero1_user_superhero2"
}
}
],
"meta": {
"current": {
"limit": 100,
"count": 3
},
"next": {
"affix": "append",
"id": "5"
}
}
}
Lists all the reactions for a message
curl --request GET \
--url https://{appid}.api-{region}.cometchat.io/v3/messages/{id}/reactions \
--header 'apikey: <api-key>'
{
"data": [
{
"id": "1",
"messageId": "2",
"reaction": ":reaction",
"uid": "superhero1",
"reactedAt": 1700210335,
"reactedBy": {
"uid": "superhero1",
"name": "Iron Man",
"status": "offline",
"role": "default",
"createdAt": 1698934972
}
},
{
"id": "2",
"messageId": "2",
"reaction": "😅",
"uid": "superhero1",
"reactedAt": 1700210456,
"reactedBy": {
"uid": "superhero1",
"name": "Iron Man",
"status": "offline",
"role": "default",
"createdAt": 1698934972
}
},
{
"id": "5",
"messageId": "2",
"reaction": "😒",
"uid": "superhero2",
"reactedAt": 1700230866,
"reactedBy": {
"uid": "superhero2",
"name": "Captain America",
"status": "offline",
"role": "default",
"createdAt": 1698934987,
"conversationId": "superhero1_user_superhero2"
}
}
],
"meta": {
"current": {
"limit": 100,
"count": 3
},
"next": {
"affix": "append",
"id": "5"
}
}
}
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
UID of the user on whose behalf the action is performed.
Id of the message whose reactions are to be fetched.
List Reactions
The response is of type object
.