Skip to main content

Create a Telco Data usage report

POST 
/reporting/telco_data_usage_reports

Check the status and retrieve a Telco Data Usage Report with a call to: GET /reporting/telco_data_usage_reports/{id}

  • Telco Data Usage Reports are available for 30 days

Request

Body

required

Parameters required to request a Telco Data usage report

    start_date daterequired

    Start date in UTC, must be at most 31 days ago

    end_date daterequired

    End date in UTC

    aggregation_type stringrequired

    ALL

Responses

200: Successful response

400: Bad request

401: Unauthorized

404: Resource not found

422: Invalid parameters supplied in request

Request samples


curl -L 'https://api.telnyx.com/reporting/telco_data_usage_reports' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"start_date": "2024-07-20",
"end_date": "2024-07-22",
"aggregation_type": "ALL"
}'

Response samples


{
"data": {
"id": "string",
"start_date": "string",
"end_date": "string",
"aggregation_type": "string",
"status": "string",
"report_url": "string",
"result": [
{
"user_id": "string",
"aggregations": [
{
"type": "string",
"total_dips": 0,
"total_cost": 0,
"currency": "string"
}
]
}
],
"created_at": "string",
"updated_at": "string"
}
}