action telnyx_get_usage_report_sync_1 { label: "getUsageReportSync_1" description: "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. " provider: telnyx method: GET path: "/reports/mdr_usage_reports/sync" encoding: json input: { type: "object" properties: { aggregation_type: { type: "string" enum: ["NO_AGGREGATION", "PROFILE", "TAGS"] } end_date: { type: "string" format: "date-time" } profiles: { type: "array" items: { type: "string" } } start_date: { type: "string" format: "date-time" } } required: ["aggregation_type"] additionalProperties: false } output: { type: "object" properties: { data: { type: "object" properties: { aggregation_type: { type: "string" enum: ["NO_AGGREGATION", "PROFILE", "TAGS"] } connections: { type: "array" items: { type: "integer" format: "int64" } } created_at: { type: "string" format: "date-time" } end_date: { type: "string" format: "date-time" } id: { type: "string" format: "uuid" description: "Identifies the resource" } profiles: { type: "string" } record_type: { type: "string" } report_url: { type: "string" } result: { type: "array" items: { type: "object" properties: { carrier_passthrough_fee: { type: "string" } connection: { type: "string" } cost: { type: "string" } currency: { type: "string" } delivered: { type: "string" } direction: { type: "string" } message_type: { type: "string" } parts: { type: "string" } product: { type: "string" } profile_id: { type: "string" } received: { type: "string" } sent: { type: "string" } tags: { type: "string" } tn_type: { type: "string" } } } } start_date: { type: "string" format: "date-time" } status: { type: "string" enum: ["PENDING", "COMPLETE", "FAILED", "EXPIRED"] } updated_at: { type: "string" format: "date-time" } } } } } }