v53

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-041,1941,9384.1 MB
Usage Reports (BETA)

Get Telnyx product usage data (BETA)

Get Telnyx usage data by product, broken out by the specified dimensions

get/usage_reports

Query parameters

productstring required

Telnyx product

dimensionsstring[] required

Breakout by specified product dimensions

metricsstring[] required

Specified product usage values

start_datestring

The start date for the time range you are interested in. The maximum time range is 31 days. Format: YYYY-MM-DDTHH:mm:ssZ

end_datestring

The end date for the time range you are interested in. The maximum time range is 31 days. Format: YYYY-MM-DDTHH:mm:ssZ

date_rangestring

A more user-friendly way to specify the timespan you want to filter by. More options can be found in the Telnyx API Reference docs.

filterstring

Filter records on dimensions

managed_accountsboolean

Return the aggregations for all Managed Accounts under the user making the request.

sortstring[]

Specifies the sort order for results

format'csv' | 'json'

Specify the response format (csv or json). JSON is returned by default, even if not specified.

numberinteger
sizeinteger

Consolidated page parameter (deepObject style). Originally: page[number], page[size]

Headers

authorization_bearerstring

Authenticates the request with your Telnyx API V2 KEY

Bearer token used to authenticate the request.

Response

Successful

dataobject[]

Example response

{
  "data": [
    {
      "cost": 0.012,
      "count": 8,
      "country_iso": "LC",
      "customer_carrier_fee": 0,
      "direction": "outbound",
      "parts": 12,
      "product": "messaging",
      "product_name": "long_code"
    },
    {
      "cost": 0.021,
      "count": 12,
      "country_iso": "MP",
      "customer_carrier_fee": 0,
      "direction": "outbound",
      "parts": 21,
      "product": "messaging",
      "product_name": "long_code"
    }
  ],
  "meta": {
    "page_number": 1,
    "page_size": 20,
    "total_pages": 5,
    "total_results": 100
  }
}