telnyx-account-reports-curl
Original:🇺🇸 English
Translated
Generate and retrieve usage reports for billing, analytics, and reconciliation. This skill provides REST API (curl) examples.
5installs
Sourceteam-telnyx/skills
Added on
NPX Install
npx skill4agent add team-telnyx/skills telnyx-account-reports-curlTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →<!-- Auto-generated from Telnyx OpenAPI specs. Do not edit. -->
— Required: ,
— Required: ,
Telnyx Account Reports - curl
Installation
text
# curl is pre-installed on macOS, Linux, and Windows 10+Setup
bash
export TELNYX_API_KEY="YOUR_API_KEY_HERE"All examples below use for authentication.
$TELNYX_API_KEYError Handling
All API calls can fail with network errors, rate limits (429), validation errors (422),
or authentication errors (401). Always handle errors in production code:
bash
# Check HTTP status code in response
response=$(curl -s -w "\n%{http_code}" \
-X POST "https://api.telnyx.com/v2/messages" \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"to": "+13125550001", "from": "+13125550002", "text": "Hello"}')
http_code=$(echo "$response" | tail -1)
body=$(echo "$response" | sed '$d')
case $http_code in
2*) echo "Success: $body" ;;
422) echo "Validation error — check required fields and formats" ;;
429) echo "Rate limited — retry after delay"; sleep 1 ;;
401) echo "Authentication failed — check TELNYX_API_KEY" ;;
*) echo "Error $http_code: $body" ;;
esacCommon error codes: invalid API key, insufficient permissions,
resource not found, validation error (check field formats),
rate limited (retry with exponential backoff).
401403404422429Important Notes
- Pagination: List endpoints return paginated results. Use and
page[number]query parameters to navigate pages. Checkpage[size]in the response.meta.total_pages
List call events
Filters call events by given filter parameters. Events are ordered by . If filter for or is not present, it only filters events from the last 24 hours.
occurred_atleg_idapplication_session_idGET /call_eventsbash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/call_events"Returns: (string), (string), (string), (object), (string), (enum: call_event), (enum: command, webhook)
call_leg_idcall_session_idevent_timestampmetadatanamerecord_typetypeCreate a ledger billing group report
POST /ledger_billing_group_reportsOptional: (integer), (integer)
monthyearbash
curl \
-X POST \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"year": 2019,
"month": 10
}' \
"https://api.telnyx.com/v2/ledger_billing_group_reports"Returns: (date-time), (uuid), (uuid), (enum: ledger_billing_group_report), (uri), (enum: pending, complete, failed, deleted), (date-time)
created_atidorganization_idrecord_typereport_urlstatusupdated_atGet a ledger billing group report
GET /ledger_billing_group_reports/{id}bash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/ledger_billing_group_reports/f5586561-8ff0-4291-a0ac-84fe544797bd"Returns: (date-time), (uuid), (uuid), (enum: ledger_billing_group_report), (uri), (enum: pending, complete, failed, deleted), (date-time)
created_atidorganization_idrecord_typereport_urlstatusupdated_atGet all MDR detailed report requests
Retrieves all MDR detailed report requests for the authenticated user
GET /legacy/reporting/batch_detail_records/messagingbash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/legacy/reporting/batch_detail_records/messaging"Returns: (array[integer]), (date-time), (array[string]), (date-time), (array[object]), (uuid), (array[string]), (string), (array[string]), (string), (string), (date-time), (enum: PENDING, COMPLETE, FAILED, EXPIRED), (date-time)
connectionscreated_atdirectionsend_datefiltersidprofilesrecord_typerecord_typesreport_namereport_urlstart_datestatusupdated_atCreate a new MDR detailed report request
Creates a new MDR detailed report request with the specified filters
POST /legacy/reporting/batch_detail_records/messagingstart_timeend_timeOptional: (array[integer]), (array[integer]), (array[object]), (boolean), (array[string]), (array[string]), (array[integer]), (string), (boolean), (string)
connectionsdirectionsfiltersinclude_message_bodymanaged_accountsprofilesrecord_typesreport_nameselect_all_managed_accountstimezonebash
curl \
-X POST \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"start_time": "2024-02-01T00:00:00Z",
"end_time": "2024-02-12T23:59:59Z"
}' \
"https://api.telnyx.com/v2/legacy/reporting/batch_detail_records/messaging"Returns: (array[integer]), (date-time), (array[string]), (date-time), (array[object]), (uuid), (array[string]), (string), (array[string]), (string), (string), (date-time), (enum: PENDING, COMPLETE, FAILED, EXPIRED), (date-time)
connectionscreated_atdirectionsend_datefiltersidprofilesrecord_typerecord_typesreport_namereport_urlstart_datestatusupdated_atGet a specific MDR detailed report request
Retrieves a specific MDR detailed report request by ID
GET /legacy/reporting/batch_detail_records/messaging/{id}bash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/legacy/reporting/batch_detail_records/messaging/550e8400-e29b-41d4-a716-446655440000"Returns: (array[integer]), (date-time), (array[string]), (date-time), (array[object]), (uuid), (array[string]), (string), (array[string]), (string), (string), (date-time), (enum: PENDING, COMPLETE, FAILED, EXPIRED), (date-time)
connectionscreated_atdirectionsend_datefiltersidprofilesrecord_typerecord_typesreport_namereport_urlstart_datestatusupdated_atDelete a MDR detailed report request
Deletes a specific MDR detailed report request by ID
DELETE /legacy/reporting/batch_detail_records/messaging/{id}bash
curl \
-X DELETE \
-H "Authorization: Bearer $TELNYX_API_KEY" \
"https://api.telnyx.com/v2/legacy/reporting/batch_detail_records/messaging/550e8400-e29b-41d4-a716-446655440000"Returns: (array[integer]), (date-time), (array[string]), (date-time), (array[object]), (uuid), (array[string]), (string), (array[string]), (string), (string), (date-time), (enum: PENDING, COMPLETE, FAILED, EXPIRED), (date-time)
connectionscreated_atdirectionsend_datefiltersidprofilesrecord_typerecord_typesreport_namereport_urlstart_datestatusupdated_atGet all CDR report requests
Retrieves all CDR report requests for the authenticated user
GET /legacy/reporting/batch_detail_records/voicebash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/legacy/reporting/batch_detail_records/voice"Returns: (array[integer]), (array[integer]), (string), (string), (array[object]), (string), (array[string]), (string), (array[integer]), (string), (string), (int32), (string), (string), (int32), (string), (string)
call_typesconnectionscreated_atend_timefiltersidmanaged_accountsrecord_typerecord_typesreport_namereport_urlretrysourcestart_timestatustimezoneupdated_atCreate a new CDR report request
Creates a new CDR report request with the specified filters
POST /legacy/reporting/batch_detail_records/voicestart_timeend_timeOptional: (array[integer]), (array[integer]), (array[string]), (array[object]), (boolean), (array[string]), (array[integer]), (string), (boolean), (string), (string)
call_typesconnectionsfieldsfiltersinclude_all_metadatamanaged_accountsrecord_typesreport_nameselect_all_managed_accountssourcetimezonebash
curl \
-X POST \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"start_time": "2024-02-01T00:00:00Z",
"end_time": "2024-02-12T23:59:59Z"
}' \
"https://api.telnyx.com/v2/legacy/reporting/batch_detail_records/voice"Returns: (array[integer]), (array[integer]), (string), (string), (array[object]), (string), (array[string]), (string), (array[integer]), (string), (string), (int32), (string), (string), (int32), (string), (string)
call_typesconnectionscreated_atend_timefiltersidmanaged_accountsrecord_typerecord_typesreport_namereport_urlretrysourcestart_timestatustimezoneupdated_atGet available CDR report fields
Retrieves all available fields that can be used in CDR reports
GET /legacy/reporting/batch_detail_records/voice/fieldsbash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/legacy/reporting/batch_detail_records/voice/fields"Returns: (array[string]), (array[string]), (array[string]), (array[string])
BillingInteraction DataNumber InformationTelephony DataGet a specific CDR report request
Retrieves a specific CDR report request by ID
GET /legacy/reporting/batch_detail_records/voice/{id}bash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/legacy/reporting/batch_detail_records/voice/550e8400-e29b-41d4-a716-446655440000"Returns: (array[integer]), (array[integer]), (string), (string), (array[object]), (string), (array[string]), (string), (array[integer]), (string), (string), (int32), (string), (string), (int32), (string), (string)
call_typesconnectionscreated_atend_timefiltersidmanaged_accountsrecord_typerecord_typesreport_namereport_urlretrysourcestart_timestatustimezoneupdated_atDelete a CDR report request
Deletes a specific CDR report request by ID
DELETE /legacy/reporting/batch_detail_records/voice/{id}bash
curl \
-X DELETE \
-H "Authorization: Bearer $TELNYX_API_KEY" \
"https://api.telnyx.com/v2/legacy/reporting/batch_detail_records/voice/550e8400-e29b-41d4-a716-446655440000"Returns: (array[integer]), (array[integer]), (string), (string), (array[object]), (string), (array[string]), (string), (array[integer]), (string), (string), (int32), (string), (string), (int32), (string), (string)
call_typesconnectionscreated_atend_timefiltersidmanaged_accountsrecord_typerecord_typesreport_namereport_urlretrysourcestart_timestatustimezoneupdated_atList MDR usage reports
Fetch all previous requests for MDR usage reports.
GET /legacy/reporting/usage_reports/messagingbash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/legacy/reporting/usage_reports/messaging"Returns: (int32), (array[string]), (date-time), (date-time), (uuid), (array[string]), (string), (string), (object), (date-time), (int32), (date-time)
aggregation_typeconnectionscreated_atend_timeidprofilesrecord_typereport_urlresultstart_timestatusupdated_atCreate a new legacy usage V2 MDR report request
Creates a new legacy usage V2 MDR report request with the specified filters
POST /legacy/reporting/usage_reports/messagingbash
curl \
-X POST \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
"https://api.telnyx.com/v2/legacy/reporting/usage_reports/messaging"Returns: (int32), (array[string]), (date-time), (date-time), (uuid), (array[string]), (string), (string), (object), (date-time), (int32), (date-time)
aggregation_typeconnectionscreated_atend_timeidprofilesrecord_typereport_urlresultstart_timestatusupdated_atGet an MDR usage report
Fetch single MDR usage report by id.
GET /legacy/reporting/usage_reports/messaging/{id}bash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/legacy/reporting/usage_reports/messaging/550e8400-e29b-41d4-a716-446655440000"Returns: (int32), (array[string]), (date-time), (date-time), (uuid), (array[string]), (string), (string), (object), (date-time), (int32), (date-time)
aggregation_typeconnectionscreated_atend_timeidprofilesrecord_typereport_urlresultstart_timestatusupdated_atDelete a V2 legacy usage MDR report request
Deletes a specific V2 legacy usage MDR report request by ID
DELETE /legacy/reporting/usage_reports/messaging/{id}bash
curl \
-X DELETE \
-H "Authorization: Bearer $TELNYX_API_KEY" \
"https://api.telnyx.com/v2/legacy/reporting/usage_reports/messaging/550e8400-e29b-41d4-a716-446655440000"Returns: (int32), (array[string]), (date-time), (date-time), (uuid), (array[string]), (string), (string), (object), (date-time), (int32), (date-time)
aggregation_typeconnectionscreated_atend_timeidprofilesrecord_typereport_urlresultstart_timestatusupdated_atList telco data usage reports
Retrieve a paginated list of telco data usage reports
GET /legacy/reporting/usage_reports/number_lookupbash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/legacy/reporting/usage_reports/number_lookup"Returns: (string), (date-time), (date), (uuid), (array[string]), (string), (string), (array[object]), (date), (string), (date-time)
aggregation_typecreated_atend_dateidmanaged_accountsrecord_typereport_urlresultstart_datestatusupdated_atSubmit telco data usage report
Submit a new telco data usage report
POST /legacy/reporting/usage_reports/number_lookupbash
curl \
-X POST \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
"https://api.telnyx.com/v2/legacy/reporting/usage_reports/number_lookup"Returns: (string), (date-time), (date), (uuid), (array[string]), (string), (string), (array[object]), (date), (string), (date-time)
aggregation_typecreated_atend_dateidmanaged_accountsrecord_typereport_urlresultstart_datestatusupdated_atGet telco data usage report by ID
Retrieve a specific telco data usage report by its ID
GET /legacy/reporting/usage_reports/number_lookup/{id}bash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/legacy/reporting/usage_reports/number_lookup/550e8400-e29b-41d4-a716-446655440000"Returns: (string), (date-time), (date), (uuid), (array[string]), (string), (string), (array[object]), (date), (string), (date-time)
aggregation_typecreated_atend_dateidmanaged_accountsrecord_typereport_urlresultstart_datestatusupdated_atDelete telco data usage report
Delete a specific telco data usage report by its ID
DELETE /legacy/reporting/usage_reports/number_lookup/{id}bash
curl \
-X DELETE \
-H "Authorization: Bearer $TELNYX_API_KEY" \
"https://api.telnyx.com/v2/legacy/reporting/usage_reports/number_lookup/550e8400-e29b-41d4-a716-446655440000"List CDR usage reports
Fetch all previous requests for cdr usage reports.
GET /legacy/reporting/usage_reports/voicebash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/legacy/reporting/usage_reports/voice"Returns: (int32), (array[string]), (date-time), (date-time), (uuid), (int32), (string), (string), (object), (date-time), (int32), (date-time)
aggregation_typeconnectionscreated_atend_timeidproduct_breakdownrecord_typereport_urlresultstart_timestatusupdated_atCreate a new legacy usage V2 CDR report request
Creates a new legacy usage V2 CDR report request with the specified filters
POST /legacy/reporting/usage_reports/voicebash
curl \
-X POST \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
"https://api.telnyx.com/v2/legacy/reporting/usage_reports/voice"Returns: (int32), (array[string]), (date-time), (date-time), (uuid), (int32), (string), (string), (object), (date-time), (int32), (date-time)
aggregation_typeconnectionscreated_atend_timeidproduct_breakdownrecord_typereport_urlresultstart_timestatusupdated_atGet a CDR usage report
Fetch single cdr usage report by id.
GET /legacy/reporting/usage_reports/voice/{id}bash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/legacy/reporting/usage_reports/voice/550e8400-e29b-41d4-a716-446655440000"Returns: (int32), (array[string]), (date-time), (date-time), (uuid), (int32), (string), (string), (object), (date-time), (int32), (date-time)
aggregation_typeconnectionscreated_atend_timeidproduct_breakdownrecord_typereport_urlresultstart_timestatusupdated_atDelete a V2 legacy usage CDR report request
Deletes a specific V2 legacy usage CDR report request by ID
DELETE /legacy/reporting/usage_reports/voice/{id}bash
curl \
-X DELETE \
-H "Authorization: Bearer $TELNYX_API_KEY" \
"https://api.telnyx.com/v2/legacy/reporting/usage_reports/voice/550e8400-e29b-41d4-a716-446655440000"Returns: (int32), (array[string]), (date-time), (date-time), (uuid), (int32), (string), (string), (object), (date-time), (int32), (date-time)
aggregation_typeconnectionscreated_atend_timeidproduct_breakdownrecord_typereport_urlresultstart_timestatusupdated_atList CSV downloads
GET /phone_numbers/csv_downloadsbash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/phone_numbers/csv_downloads"Returns: (string), (string), (enum: pending, complete, failed, expired), (string)
idrecord_typestatusurlCreate a CSV download
POST /phone_numbers/csv_downloadsbash
curl \
-X POST \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
"https://api.telnyx.com/v2/phone_numbers/csv_downloads"Returns: (string), (string), (enum: pending, complete, failed, expired), (string)
idrecord_typestatusurlRetrieve a CSV download
GET /phone_numbers/csv_downloads/{id}bash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/phone_numbers/csv_downloads/550e8400-e29b-41d4-a716-446655440000"Returns: (string), (string), (enum: pending, complete, failed, expired), (string)
idrecord_typestatusurlGenerates and fetches CDR Usage Reports
Generate and fetch voice usage report synchronously. This endpoint will both generate and fetch the voice report over a specified time period. No polling is necessary but the response may take up to a couple of minutes.
GET /reports/cdr_usage_reports/syncbash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/reports/cdr_usage_reports/sync?start_date=2020-07-01T00:00:00-06:00&end_date=2020-07-01T00:00:00-06:00&aggregation_type=NO_AGGREGATION&product_breakdown=NO_BREAKDOWN&connections=[1234567890123]"Returns: (enum: NO_AGGREGATION, CONNECTION, TAG, BILLING_GROUP), (array[integer]), (date-time), (date-time), (uuid), (enum: NO_BREAKDOWN, DID_VS_TOLL_FREE, COUNTRY, DID_VS_TOLL_FREE_PER_COUNTRY), (string), (string), (object), (date-time), (enum: PENDING, COMPLETE, FAILED, EXPIRED), (date-time)
aggregation_typeconnectionscreated_atend_timeidproduct_breakdownrecord_typereport_urlresultstart_timestatusupdated_atFetch all Messaging usage reports
Fetch all messaging usage reports. Usage reports are aggregated messaging data for specified time period and breakdown
GET /reports/mdr_usage_reportsbash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/reports/mdr_usage_reports"Returns: (enum: NO_AGGREGATION, PROFILE, TAGS), (array[integer]), (date-time), (date-time), (uuid), (string), (string), (string), (array[object]), (date-time), (enum: PENDING, COMPLETE, FAILED, EXPIRED), (date-time)
aggregation_typeconnectionscreated_atend_dateidprofilesrecord_typereport_urlresultstart_datestatusupdated_atCreate MDR Usage Report
Submit request for new new messaging usage report. This endpoint will pull and aggregate messaging data in specified time period.
POST /reports/mdr_usage_reportsbash
curl \
-X POST \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
"https://api.telnyx.com/v2/reports/mdr_usage_reports"Returns: (enum: NO_AGGREGATION, PROFILE, TAGS), (array[integer]), (date-time), (date-time), (uuid), (string), (string), (string), (array[object]), (date-time), (enum: PENDING, COMPLETE, FAILED, EXPIRED), (date-time)
aggregation_typeconnectionscreated_atend_dateidprofilesrecord_typereport_urlresultstart_datestatusupdated_atGenerate and fetch MDR Usage Report
Generate and fetch messaging usage report synchronously. This endpoint will both generate and fetch the messaging report over a specified time period. No polling is necessary but the response may take up to a couple of minutes.
GET /reports/mdr_usage_reports/syncbash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/reports/mdr_usage_reports/sync?start_date=2020-07-01T00:00:00-06:00&end_date=2020-07-01T00:00:00-06:00&aggregation_type=PROFILE&profiles=['My profile']"Returns: (enum: NO_AGGREGATION, PROFILE, TAGS), (array[integer]), (date-time), (date-time), (uuid), (string), (string), (string), (array[object]), (date-time), (enum: PENDING, COMPLETE, FAILED, EXPIRED), (date-time)
aggregation_typeconnectionscreated_atend_dateidprofilesrecord_typereport_urlresultstart_datestatusupdated_atRetrieve messaging report
Fetch a single messaging usage report by id
GET /reports/mdr_usage_reports/{id}bash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/reports/mdr_usage_reports/550e8400-e29b-41d4-a716-446655440000"Returns: (enum: NO_AGGREGATION, PROFILE, TAGS), (array[integer]), (date-time), (date-time), (uuid), (string), (string), (string), (array[object]), (date-time), (enum: PENDING, COMPLETE, FAILED, EXPIRED), (date-time)
aggregation_typeconnectionscreated_atend_dateidprofilesrecord_typereport_urlresultstart_datestatusupdated_atDelete MDR Usage Report
Delete messaging usage report by id
DELETE /reports/mdr_usage_reports/{id}bash
curl \
-X DELETE \
-H "Authorization: Bearer $TELNYX_API_KEY" \
"https://api.telnyx.com/v2/reports/mdr_usage_reports/550e8400-e29b-41d4-a716-446655440000"Returns: (enum: NO_AGGREGATION, PROFILE, TAGS), (array[integer]), (date-time), (date-time), (uuid), (string), (string), (string), (array[object]), (date-time), (enum: PENDING, COMPLETE, FAILED, EXPIRED), (date-time)
aggregation_typeconnectionscreated_atend_dateidprofilesrecord_typereport_urlresultstart_datestatusupdated_atFetch all Mdr records
GET /reports/mdrsbash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/reports/mdrs?id=e093fbe0-5bde-11eb-ae93-0242ac130002&direction=INBOUND&profile=My profile&cld=+15551237654&cli=+15551237654&status=DELIVERED&message_type=SMS"Returns: (string), (string), (string), (date-time), (enum: AUD, CAD, EUR, GBP, USD), (string), (string), (enum: SMS, MMS), (number), (string), (string), (string), (enum: GW_TIMEOUT, DELIVERED, DLR_UNCONFIRMED, DLR_TIMEOUT, RECEIVED, GW_REJECT, FAILED)
cldclicostcreated_atcurrencydirectionidmessage_typepartsprofile_nameraterecord_typestatusFetches all Wdr records
Fetch all Wdr records
GET /reports/wdrsbash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/reports/wdrs?start_date=2021-05-01T00:00:00Z&end_date=2021-06-01T00:00:00Z&id=e093fbe0-5bde-11eb-ae93-0242ac130002&mcc=204&mnc=01&imsi=123456&sim_group_name=sim name&sim_group_id=f05a189f-7c46-4531-ac56-1460dc465a42&sim_card_id=877f80a6-e5b2-4687-9a04-88076265720f&phone_number=+12345678910&sort=['created_at']"Returns: (object), (date-time), (object), (number), (string), (string), (string), (string), (string), (object), (string), (string), (string), (string), (object)
costcreated_atdownlink_dataduration_secondsidimsimccmncphone_numberraterecord_typesim_card_idsim_group_idsim_group_nameuplink_dataGet metadata overview
Returns all available record types and supported query parameters for session analysis.
GET /session_analysis/metadatabash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/session_analysis/metadata"Returns: (object), (object), (array[object])
metaquery_parametersrecord_typesGet record type metadata
Returns detailed metadata for a specific record type, including relationships and examples.
GET /session_analysis/metadata/{record_type}bash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/session_analysis/metadata/{record_type}"Returns: (array[string]), (array[object]), (string), (object), (object), (array[object]), (string), (string)
aliaseschild_relationshipseventexamplesmetaparent_relationshipsproductrecord_typeGet session analysis
Retrieves a full session analysis tree for a given event, including costs, child events, and product linkages.
GET /session_analysis/{record_type}/{event_id}bash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/session_analysis/{record_type}/{event_id}"Returns: (date-time), (object), (date-time), (object), (object), (string), (string)
completed_atcostcreated_atmetarootsession_idstatusGet Telnyx product usage data (BETA)
Get Telnyx usage data by product, broken out by the specified dimensions
GET /usage_reportsbash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/usage_reports"Returns: (array[object]), (object)
datametaGet Usage Reports query options (BETA)
Get the Usage Reports options for querying usage, including the products available and their respective metrics and dimensions
GET /usage_reports/optionsbash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/usage_reports/options"Returns: (string), (array[string]), (array[string]), (array[object])
productproduct_dimensionsproduct_metricsrecord_typesGet all Wireless Detail Records (WDRs) Reports
Returns the WDR Reports that match the given parameters.
GET /wireless/detail_records_reportsbash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/wireless/detail_records_reports"Returns: (string), (string), (uuid), (string), (string), (string), (enum: pending, complete, failed, deleted), (string)
created_atend_timeidrecord_typereport_urlstart_timestatusupdated_atCreate a Wireless Detail Records (WDRs) Report
Asynchronously create a report containing Wireless Detail Records (WDRs) for the SIM cards that consumed wireless data in the given time period.
POST /wireless/detail_records_reportsOptional: (string), (string)
end_timestart_timebash
curl \
-X POST \
-H "Authorization: Bearer $TELNYX_API_KEY" \
-H "Content-Type: application/json" \
"https://api.telnyx.com/v2/wireless/detail_records_reports"Returns: (string), (string), (uuid), (string), (string), (string), (enum: pending, complete, failed, deleted), (string)
created_atend_timeidrecord_typereport_urlstart_timestatusupdated_atGet a Wireless Detail Record (WDR) Report
Returns one specific WDR report
GET /wireless/detail_records_reports/{id}bash
curl -H "Authorization: Bearer $TELNYX_API_KEY" "https://api.telnyx.com/v2/wireless/detail_records_reports/6a09cdc3-8948-47f0-aa62-74ac943d6c58"Returns: (string), (string), (uuid), (string), (string), (string), (enum: pending, complete, failed, deleted), (string)
created_atend_timeidrecord_typereport_urlstart_timestatusupdated_atDelete a Wireless Detail Record (WDR) Report
Deletes one specific WDR report.
DELETE /wireless/detail_records_reports/{id}bash
curl \
-X DELETE \
-H "Authorization: Bearer $TELNYX_API_KEY" \
"https://api.telnyx.com/v2/wireless/detail_records_reports/6a09cdc3-8948-47f0-aa62-74ac943d6c58"Returns: (string), (string), (uuid), (string), (string), (string), (enum: pending, complete, failed, deleted), (string)
created_atend_timeidrecord_typereport_urlstart_timestatusupdated_at