Get aggregated usage analytics
Returns voice, SMS, and data consumption for your organization, aggregated into per-interval totals with highest / lowest / average metadata across the window.
Use this for reporting and dashboards. When you need individual events — to bill on or to act on one customer's usage — use GET /v1/usage instead. Totals lag the network by the same delay as the usage feed.
Request
- Base URLhttps://api.telgea.com
- AuthAPI key in header x-api-key
Query parameters
Inclusive start of the reporting window (YYYY-MM-DD).
Inclusive end of the reporting window (YYYY-MM-DD).
Aggregation bucket size
Restrict to one end-user your organization owns.
Restrict to a single number.
Restrict to usage served in one country.
Order the returned intervals ascending or descending by time
Response
Aggregated usage grouped by interval, with per-channel metadata.
Example response
{
"usage": {
"data": [
{
"interval": "2026-09-11",
"usage": {
"total": 10485760
}
}
],
"voice": [
{
"interval": "2026-09-11",
"usage": {
"local": 1240,
"international": 310,
"total": 1550
}
}
],
"sms": [
{
"interval": "2026-09-11",
"usage": {
"local": 1240,
"international": 310,
"total": 1550
}
}
]
},
"metadata": {
"data": {
"highest": {
"interval": "2026-09-11",
"usage": {
"total": 10485760
}
},
"lowest": {
"interval": "2026-09-11",
"usage": {
"total": 10485760
}
},
"average": {
"total": 10485760
}
},
"voice": {
"highest": {
"interval": "2026-09-11",
"usage": {
"local": 1240,
"international": 310,
"total": 1550
}
},
"lowest": {
"interval": "2026-09-11",
"usage": {
"local": 1240,
"international": 310,
"total": 1550
}
},
"average": {
"local": 1240,
"international": 310,
"total": 1550
}
},
"sms": {
"highest": {
"interval": "2026-09-11",
"usage": {
"local": 1240,
"international": 310,
"total": 1550
}
},
"lowest": {
"interval": "2026-09-11",
"usage": {
"local": 1240,
"international": 310,
"total": 1550
}
},
"average": {
"local": 1240,
"international": 310,
"total": 1550
}
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.