Skip to main content
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"
  }
}

Documentation Index

Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

For the complete error reference, see Error Guide.

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.

dataPoints
any[]