{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-usage-request-legacy-schema.json", "title": "UsageRequestLegacy", "description": "Request object for CDR usage report", "x-generated": "2026-10-08", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/telnyx-cdr-usage-reports-api-openapi.yml#/components/schemas/UsageRequestLegacy", "properties": { "aggregation_type": { "description": "Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3", "format": "int32", "type": "integer" }, "connections": { "description": "List of connections to filter by", "items": { "description": "List of connections to filter by", "format": "int64", "type": "integer" }, "type": "array" }, "end_time": { "description": "End time in ISO format", "format": "date-time", "type": "string" }, "managed_accounts": { "description": "List of managed accounts to include", "items": { "format": "uuid", "type": "string" }, "type": "array" }, "product_breakdown": { "description": "Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID vs Toll-free per Country = 3", "format": "int32", "type": "integer" }, "select_all_managed_accounts": { "description": "Whether to select all managed accounts", "type": "boolean" }, "start_time": { "description": "Start time in ISO format", "format": "date-time", "type": "string" } }, "required": [ "end_time", "start_time" ], "type": "object" }