TelgeaDevelopers

Analytics

Voice, SMS and data consumption aggregated per interval, with the highest, lowest and average across the window. For reporting and dashboards.

The analytics report object

Aggregated voice, SMS, and data consumption for reporting and dashboards.

FieldTypeDescription
usagerequiredobjectOne series per usage type, bucketed by the requested interval.
Show 3 child fields of usage
FieldTypeDescription
datarequiredarray of RegionalIntervalUsageData usage per interval, in bytes.
Show 2 child fields of data
FieldTypeDescription
intervalrequiredstringThe bucket this usage falls in, as YYYY-MM-DD for a day or YYYY-MM for a month.
2026-09-11
usagerequiredRegionalUsageData usage for one interval: `total`, plus one property per region the usage was served in, keyed by region name.
Show 0 child fields of usage
FieldTypeDescription
voicerequiredarray of LocationIntervalUsageVoice usage per interval, in seconds.
Show 2 child fields of voice
FieldTypeDescription
intervalrequiredstringThe bucket this usage falls in, as YYYY-MM-DD for a day or YYYY-MM for a month.
2026-09-11
usagerequiredLocationUsageVoice or SMS usage for one interval, split by whether it stayed in the home market.
Show 3 child fields of usage
FieldTypeDescription
localrequirednumberUsage inside the home market.
1240
internationalrequirednumberUsage to or from another country.
310
totalrequirednumberLocal and international added together.
1550
smsrequiredarray of LocationIntervalUsageSMS usage per interval, as a count.
Show 2 child fields of sms
FieldTypeDescription
intervalrequiredstringThe bucket this usage falls in, as YYYY-MM-DD for a day or YYYY-MM for a month.
2026-09-11
usagerequiredLocationUsageVoice or SMS usage for one interval, split by whether it stayed in the home market.
Show 3 child fields of usage
FieldTypeDescription
localrequirednumberUsage inside the home market.
1240
internationalrequirednumberUsage to or from another country.
310
totalrequirednumberLocal and international added together.
1550
metadatarequiredobjectHighest, lowest and average interval for each series, so you need not compute them.
Show 3 child fields of metadata
FieldTypeDescription
datarequiredRegionalUsageMetadataSummary of the data series over the whole window.
Show 3 child fields of data
FieldTypeDescription
highestrequiredobjectThe interval with the most usage in the window.
Show 2 child fields of highest
FieldTypeDescription
intervalrequiredstringThe bucket this usage falls in, as YYYY-MM-DD for a day or YYYY-MM for a month.
2026-09-11
usagerequiredRegionalUsageData usage for one interval: `total`, plus one property per region the usage was served in, keyed by region name.
Show 0 child fields of usage
FieldTypeDescription
lowestrequiredobjectThe interval with the least usage in the window.
Show 2 child fields of lowest
FieldTypeDescription
intervalrequiredstringThe bucket this usage falls in, as YYYY-MM-DD for a day or YYYY-MM for a month.
2026-09-11
usagerequiredRegionalUsageData usage for one interval: `total`, plus one property per region the usage was served in, keyed by region name.
Show 0 child fields of usage
FieldTypeDescription
averagerequiredobjectData usage for one interval: `total`, plus one property per region the usage was served in, keyed by region name.
Show 1 child fields of average
FieldTypeDescription
totalrequirednumberUsage across every region, in bytes.
10485760
voicerequiredLocationUsageMetadataSummary of the voice or SMS series over the whole window.
Show 3 child fields of voice
FieldTypeDescription
highestrequiredobjectThe interval with the most usage in the window.
Show 2 child fields of highest
FieldTypeDescription
intervalrequiredstringThe bucket this usage falls in, as YYYY-MM-DD for a day or YYYY-MM for a month.
2026-09-11
usagerequiredLocationUsageVoice or SMS usage for one interval, split by whether it stayed in the home market.
Show 3 child fields of usage
FieldTypeDescription
localrequirednumberUsage inside the home market.
1240
internationalrequirednumberUsage to or from another country.
310
totalrequirednumberLocal and international added together.
1550
lowestrequiredobjectThe interval with the least usage in the window.
Show 2 child fields of lowest
FieldTypeDescription
intervalrequiredstringThe bucket this usage falls in, as YYYY-MM-DD for a day or YYYY-MM for a month.
2026-09-11
usagerequiredLocationUsageVoice or SMS usage for one interval, split by whether it stayed in the home market.
Show 3 child fields of usage
FieldTypeDescription
localrequirednumberUsage inside the home market.
1240
internationalrequirednumberUsage to or from another country.
310
totalrequirednumberLocal and international added together.
1550
averagerequiredobjectVoice or SMS usage for one interval, split by whether it stayed in the home market.
Show 3 child fields of average
FieldTypeDescription
localrequirednumberUsage inside the home market.
1240
internationalrequirednumberUsage to or from another country.
310
totalrequirednumberLocal and international added together.
1550
smsrequiredLocationUsageMetadataSummary of the voice or SMS series over the whole window.
Show 3 child fields of sms
FieldTypeDescription
highestrequiredobjectThe interval with the most usage in the window.
Show 2 child fields of highest
FieldTypeDescription
intervalrequiredstringThe bucket this usage falls in, as YYYY-MM-DD for a day or YYYY-MM for a month.
2026-09-11
usagerequiredLocationUsageVoice or SMS usage for one interval, split by whether it stayed in the home market.
Show 3 child fields of usage
FieldTypeDescription
localrequirednumberUsage inside the home market.
1240
internationalrequirednumberUsage to or from another country.
310
totalrequirednumberLocal and international added together.
1550
lowestrequiredobjectThe interval with the least usage in the window.
Show 2 child fields of lowest
FieldTypeDescription
intervalrequiredstringThe bucket this usage falls in, as YYYY-MM-DD for a day or YYYY-MM for a month.
2026-09-11
usagerequiredLocationUsageVoice or SMS usage for one interval, split by whether it stayed in the home market.
Show 3 child fields of usage
FieldTypeDescription
localrequirednumberUsage inside the home market.
1240
internationalrequirednumberUsage to or from another country.
310
totalrequirednumberLocal and international added together.
1550
averagerequiredobjectVoice or SMS usage for one interval, split by whether it stayed in the home market.
Show 3 child fields of average
FieldTypeDescription
localrequirednumberUsage inside the home market.
1240
internationalrequirednumberUsage to or from another country.
310
totalrequirednumberLocal and international added together.
1550

Operations

Get aggregated usage analytics

GET/v1/analytics
Enterprise APIPartner API

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.

Requires the permission analytics:read on the key.

Try it in the playground → Calls run against your live organization; there is no sandbox.

Parameters

ParameterInTypeDescription
startDaterequiredquerystring (date)Inclusive start of the reporting window (YYYY-MM-DD).
2026-09-01
endDaterequiredquerystring (date)Inclusive end of the reporting window (YYYY-MM-DD).
2026-09-30
intervalrequiredqueryenumAggregation bucket size
day
userIdquerystring (uuid)Restrict to one end-user your organization owns.
9c1f2a6e-3b7d-4e0a-8f21-5d6c7b8a9e01
msisdnquerystringRestrict to a single number.
+4520123456
countryIsoCodequerystringRestrict to usage served in one country.
DK
orderByqueryenumOrder the returned intervals ascending or descending by time
asc

Responses

StatusMeaningBody
200Aggregated usage grouped by interval, with per-channel metadata.AnalyticsResponse
400Request failed schema validationnone
401Missing or invalid API key in the X-API-Key headerUnauthorizedError
403The API key lacks the analytics:read scopeForbiddenError
429The API key has used its request quota for the current window. `Retry-After` says how many seconds until it resets.TooManyRequestsError
500Internal server error. Contact support if this persists.InternalError

Problems this endpoint can return

This endpoint returns no domain-specific problems.

Response fields

200 AnalyticsResponse

FieldTypeDescription
usagerequiredobjectOne series per usage type, bucketed by the requested interval.
Show 3 child fields of usage
FieldTypeDescription
datarequiredarray of RegionalIntervalUsageData usage per interval, in bytes.
Show 2 child fields of data
FieldTypeDescription
intervalrequiredstringThe bucket this usage falls in, as YYYY-MM-DD for a day or YYYY-MM for a month.
2026-09-11
usagerequiredRegionalUsageData usage for one interval: `total`, plus one property per region the usage was served in, keyed by region name.
Show 0 child fields of usage
FieldTypeDescription
voicerequiredarray of LocationIntervalUsageVoice usage per interval, in seconds.
Show 2 child fields of voice
FieldTypeDescription
intervalrequiredstringThe bucket this usage falls in, as YYYY-MM-DD for a day or YYYY-MM for a month.
2026-09-11
usagerequiredLocationUsageVoice or SMS usage for one interval, split by whether it stayed in the home market.
Show 3 child fields of usage
FieldTypeDescription
localrequirednumberUsage inside the home market.
1240
internationalrequirednumberUsage to or from another country.
310
totalrequirednumberLocal and international added together.
1550
smsrequiredarray of LocationIntervalUsageSMS usage per interval, as a count.
Show 2 child fields of sms
FieldTypeDescription
intervalrequiredstringThe bucket this usage falls in, as YYYY-MM-DD for a day or YYYY-MM for a month.
2026-09-11
usagerequiredLocationUsageVoice or SMS usage for one interval, split by whether it stayed in the home market.
Show 3 child fields of usage
FieldTypeDescription
localrequirednumberUsage inside the home market.
1240
internationalrequirednumberUsage to or from another country.
310
totalrequirednumberLocal and international added together.
1550
metadatarequiredobjectHighest, lowest and average interval for each series, so you need not compute them.
Show 3 child fields of metadata
FieldTypeDescription
datarequiredRegionalUsageMetadataSummary of the data series over the whole window.
Show 3 child fields of data
FieldTypeDescription
highestrequiredobjectThe interval with the most usage in the window.
Show 2 child fields of highest
FieldTypeDescription
intervalrequiredstringThe bucket this usage falls in, as YYYY-MM-DD for a day or YYYY-MM for a month.
2026-09-11
usagerequiredRegionalUsageData usage for one interval: `total`, plus one property per region the usage was served in, keyed by region name.
Show 0 child fields of usage
FieldTypeDescription
lowestrequiredobjectThe interval with the least usage in the window.
Show 2 child fields of lowest
FieldTypeDescription
intervalrequiredstringThe bucket this usage falls in, as YYYY-MM-DD for a day or YYYY-MM for a month.
2026-09-11
usagerequiredRegionalUsageData usage for one interval: `total`, plus one property per region the usage was served in, keyed by region name.
Show 0 child fields of usage
FieldTypeDescription
averagerequiredobjectData usage for one interval: `total`, plus one property per region the usage was served in, keyed by region name.
Show 1 child fields of average
FieldTypeDescription
totalrequirednumberUsage across every region, in bytes.
10485760
voicerequiredLocationUsageMetadataSummary of the voice or SMS series over the whole window.
Show 3 child fields of voice
FieldTypeDescription
highestrequiredobjectThe interval with the most usage in the window.
Show 2 child fields of highest
FieldTypeDescription
intervalrequiredstringThe bucket this usage falls in, as YYYY-MM-DD for a day or YYYY-MM for a month.
2026-09-11
usagerequiredLocationUsageVoice or SMS usage for one interval, split by whether it stayed in the home market.
Show 3 child fields of usage
FieldTypeDescription
localrequirednumberUsage inside the home market.
1240
internationalrequirednumberUsage to or from another country.
310
totalrequirednumberLocal and international added together.
1550
lowestrequiredobjectThe interval with the least usage in the window.
Show 2 child fields of lowest
FieldTypeDescription
intervalrequiredstringThe bucket this usage falls in, as YYYY-MM-DD for a day or YYYY-MM for a month.
2026-09-11
usagerequiredLocationUsageVoice or SMS usage for one interval, split by whether it stayed in the home market.
Show 3 child fields of usage
FieldTypeDescription
localrequirednumberUsage inside the home market.
1240
internationalrequirednumberUsage to or from another country.
310
totalrequirednumberLocal and international added together.
1550
averagerequiredobjectVoice or SMS usage for one interval, split by whether it stayed in the home market.
Show 3 child fields of average
FieldTypeDescription
localrequirednumberUsage inside the home market.
1240
internationalrequirednumberUsage to or from another country.
310
totalrequirednumberLocal and international added together.
1550
smsrequiredLocationUsageMetadataSummary of the voice or SMS series over the whole window.
Show 3 child fields of sms
FieldTypeDescription
highestrequiredobjectThe interval with the most usage in the window.
Show 2 child fields of highest
FieldTypeDescription
intervalrequiredstringThe bucket this usage falls in, as YYYY-MM-DD for a day or YYYY-MM for a month.
2026-09-11
usagerequiredLocationUsageVoice or SMS usage for one interval, split by whether it stayed in the home market.
Show 3 child fields of usage
FieldTypeDescription
localrequirednumberUsage inside the home market.
1240
internationalrequirednumberUsage to or from another country.
310
totalrequirednumberLocal and international added together.
1550
lowestrequiredobjectThe interval with the least usage in the window.
Show 2 child fields of lowest
FieldTypeDescription
intervalrequiredstringThe bucket this usage falls in, as YYYY-MM-DD for a day or YYYY-MM for a month.
2026-09-11
usagerequiredLocationUsageVoice or SMS usage for one interval, split by whether it stayed in the home market.
Show 3 child fields of usage
FieldTypeDescription
localrequirednumberUsage inside the home market.
1240
internationalrequirednumberUsage to or from another country.
310
totalrequirednumberLocal and international added together.
1550
averagerequiredobjectVoice or SMS usage for one interval, split by whether it stayed in the home market.
Show 3 child fields of average
FieldTypeDescription
localrequirednumberUsage inside the home market.
1240
internationalrequirednumberUsage to or from another country.
310
totalrequirednumberLocal and international added together.
1550
GET/v1/analytics

Request

curl -X GET "https://api.telgea.com/v1/analytics" \
  -H "x-api-key: $TELGEA_API_KEY"

Response

{
  "usage": {
    "data": [
      {
        "interval": "2026-09-11",
        "usage": {
          "total": 10485760,
          "Europe": 9437184,
          "North America": 1048576
        }
      },
      {
        "interval": "2026-09-12",
        "usage": {
          "total": 524288,
          "Europe": 524288
        }
      }
    ],
    "voice": [
      {
        "interval": "2026-09-11",
        "usage": {
          "local": 1240,
          "international": 310,
          "total": 1550
        }
      },
      {
        "interval": "2026-09-12",
        "usage": {
          "local": 90,
          "international": 0,
          "total": 90
        }
      }
    ],
    "sms": [
      {
        "interval": "2026-09-11",
        "usage": {
          "local": 12,
          "international": 3,
          "total": 15
        }
      },
      {
        "interval": "2026-09-12",
        "usage": {
          "local": 1,
          "international": 0,
          "total": 1
        }
      }
    ]
  },
  "metadata": {
    "data": {
      "highest": {
        "interval": "2026-09-11",
        "usage": {
          "total": 10485760,
          "Europe": 9437184,
          "North America": 1048576
        }
      },
      "lowest": {
        "interval": "2026-09-12",
        "usage": {
          "total": 524288,
          "Europe": 524288
        }
      },
      "average": {
        "total": 5505024
      }
    },
    "voice": {
      "highest": {
        "interval": "2026-09-11",
        "usage": {
          "local": 1240,
          "international": 310,
          "total": 1550
        }
      },
      "lowest": {
        "interval": "2026-09-12",
        "usage": {
          "local": 90,
          "international": 0,
          "total": 90
        }
      },
      "average": {
        "local": 665,
        "international": 155,
        "total": 820
      }
    },
    "sms": {
      "highest": {
        "interval": "2026-09-11",
        "usage": {
          "local": 12,
          "international": 3,
          "total": 15
        }
      },
      "lowest": {
        "interval": "2026-09-12",
        "usage": {
          "local": 1,
          "international": 0,
          "total": 1
        }
      },
      "average": {
        "local": 6.5,
        "international": 1.5,
        "total": 8
      }
    }
  }
}
Need the raw schema? OpenAPI JSON