GET
/
stats
/
messages
Message Metrics
curl --request GET \
  --url https://{appid}.api-{region}.cometchat.io/v3/stats/messages \
  --header 'apikey: <api-key>'
{
  "data": {
    "startTime": "1682676600000",
    "endTime": "1682680200000",
    "dataPoints": [
      {
        "messagesSent": 0,
        "readReceipts": 0,
        "deliveryReceipts": 0,
        "startTime": "1682676600000",
        "endTime": "1682676900000"
      },
      {
        "messagesSent": 0,
        "readReceipts": 0,
        "deliveryReceipts": 0,
        "startTime": "1682676900000",
        "endTime": "1682677200000"
      }
    ],
    "appId": "235391c94852dc7d"
  }
}

Authorizations

apikey
string
header
required

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

Response

200 - application/json

Gives the number of messages sent and receipts received in an interval of five minutes.

The response is of type object.