GET
/
analytics
/
aggregate-counts
curl --request GET \
  --url https://api.wapikit.com/api/analytics/aggregate-counts
{
  "aggregateAnalytics": {
    "messageStats": {
      "totalMessages": 123,
      "messagesSent": 123,
      "messagesFailed": 123,
      "messagesDelivered": 123,
      "messagesUndelivered": 123,
      "messagesRead": 123,
      "messagesUnread": 123
    },
    "conversationStats": {
      "totalConversations": 123,
      "conversationsActive": 123,
      "conversationsClosed": 123,
      "conversationsPending": 123
    },
    "campaignStats": {
      "totalCampaigns": 123,
      "campaignsDraft": 123,
      "campaignsScheduled": 123,
      "campaignsRunning": 123,
      "campaignsPaused": 123,
      "campaignsCancelled": 123,
      "campaignsFinished": 123
    },
    "contactStats": {
      "totalContacts": 123,
      "contactsActive": 123,
      "contactsBlocked": 123
    }
  }
}

Query Parameters

from
string
required

starting range of time span to get analytics for

to
string
required

ending range of time span to get analytics for

Response

200
application/json

messaging analytics graph data points

The response is of type object.