Create an MDR usage report
POST/reporting/mdr_usage_reports
Check the status and retrieve a MDR Usage Report with a call to
GET /reporting/mdr_usage_reports/{id}
. MDR Usage Reports are available for 30 days.
Request
- application/json
Body
required
Mdr Usage Report to add
start_time stringrequired
UTC (2024-12-16T00:00:00+00:00)
end_time string
UTC (2024-12-16T18:48:46+00:00). Must be less than 24 hours from now
aggregation_type integer
Default value: 0
Aggregate: All = 0, By Profile = 1
profiles string[]
Array of profile IDs
Responses
200: MdrUsageReport response
- application/json
400: Bad request
401: Unauthorized
Request samples
curl -L 'https://api.telnyx.com/reporting/mdr_usage_reports' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"start_time": "string",
"end_time": "string",
"aggregation_type": 0,
"profiles": [
"string"
]
}'
Response samples
{
"id": "string",
"start_time": "string",
"end_time": "string",
"aggregation_type": 0,
"status": 1,
"report_url": "string",
"result": {},
"created_at": "string",
"updated_at": "string",
"profiles": [
"string"
]
}