cURL
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" } }
Gives the number of messages sent and receipts received in an interval of five minutes.
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Was this page helpful?
Contact support