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
- application/json
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
- application/json
400: Bad request
- application/json
401: Unauthorized
- application/json
404: Resource not found
- application/json
422: Invalid parameters supplied in request
- application/json
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-10-30",
"end_date": "2024-11-01",
"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"
}
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string"
}
]
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string"
}
]
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string"
}
]
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string"
}
]
}