Skip to main content
GET
/
analytics
/
status-breakdown
Get status breakdown
curl --request GET \
  --url https://api-message.nativehub.live/api/v1/analytics/status-breakdown \
  --header 'Authorization: Bearer <token>'
[
  {
    "status": "delivered",
    "count": 121250,
    "percentage": 96.67
  },
  {
    "status": "failed",
    "count": 4180,
    "percentage": 3.33
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

date_from
string<date>

Start date for status breakdown

date_to
string<date>

End date for status breakdown

Response

200 - application/json

Status breakdown retrieved successfully

status
string
count
integer
percentage
number
Example:
[
{
"status": "delivered",
"count": 121250,
"percentage": 96.67
},
{
"status": "failed",
"count": 4180,
"percentage": 3.33
}
]