from and to Unix timestamps; both are required. Narrow the result with the optional domain, service_type, vendor, reseller, and group_by filters. A domain of * is treated as no domain filter. Omitting from or to returns 400. The usage data is produced by the voice usage middleware, so an upstream outage is reported with the upstream status, or 502 when the middleware cannot be reached. To scope the same report to one domain, call GET /domains/{domain}/voice-usage. This is the domain-scoped form: the report is confined to {domain} through the access-control object, so an Office Manager or higher within that domain may call it.curl --location '/domains/acme.example.com/voice-usage?from=1756684800&to=1759363200&domain=acme.example.com&service_type=transcription&vendor=deepgram&reseller=example-reseller&group_by=service_type'{
"from": 1756684800,
"to": 1759363200,
"group_by": "service_type",
"results": [
{
"service_type": "transcription",
"vendor": "deepgram",
"units": 48213,
"cost": 192.85
},
{
"service_type": "text-to-speech",
"vendor": "google-wavenet",
"units": 10422,
"cost": 41.69
}
]
}