GET
/
messages
/
{id}
/
reactions
/
{reaction}
List reactions with a specific emoji/unicodes
curl --request GET \
  --url https://{appid}.api-{region}.cometchat.io/v3/messages/{id}/reactions/{reaction} \
  --header 'apikey: <api-key>'
{
  "data": [
    {
      "id": "1",
      "messageId": "1",
      "reaction": "😅",
      "uid": "superhero1",
      "reactedAt": 1702638595,
      "reactedBy": {
        "uid": "superhero1",
        "name": "Iron Man",
        "avatar": "https://data-us.cometchat.io/assets/images/avatars/ironman.png",
        "status": "available",
        "role": "default",
        "lastActiveAt": 1689082633,
        "createdAt": 1684751861
      }
    }
  ],
  "meta": {
    "current": {
      "limit": 100,
      "count": 1
    },
    "next": {
      "affix": "append",
      "id": "1"
    }
  }
}

Authorizations

apikey
string
header
required

API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).

Headers

onBehalfOf
string

UID of the user on whose behalf the action is performed.

Path Parameters

id
string
required

Id of the message whose reactions are to be fetched.

reaction
string
required

reaction whose details are to be fetched.

Response

200 - application/json

Get Reactions

The response is of type object.