Skip to main content
GET
/
analytics
/
top-connections
Get top connections
curl --request GET \
  --url https://api-message.nativehub.live/api/v1/analytics/top-connections \
  --header 'Authorization: Bearer <token>'
[
  {
    "connection_id": "f6a7b8c9-d0e1-2345-fa67-890123456789",
    "name": "Grameenphone Gateway",
    "total": 52430,
    "delivered": 51280,
    "failed": 1150
  }
]

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 analytics

date_to
string<date>

End date for analytics

limit
integer
default:10

Number of top connections to return

Response

200 - application/json

Top connections retrieved successfully

connection_id
string<uuid>
name
string
total
integer
delivered
integer
failed
integer
Example:
[
{
"connection_id": "f6a7b8c9-d0e1-2345-fa67-890123456789",
"name": "Grameenphone Gateway",
"total": 52430,
"delivered": 51280,
"failed": 1150
}
]