---
title: "Generate and fetch MDR Usage Report"
method: GET
path: "/reports/mdr_usage_reports/sync"
tags: ["MDR Usage Reports"]
---

# Generate and fetch MDR Usage Report

`GET /reports/mdr_usage_reports/sync`

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.

## Query parameters

- `start_date` string, date-time
- `end_date` string, date-time
- `aggregation_type` 'NO_AGGREGATION' | 'PROFILE' | 'TAGS', required
- `profiles` string[]

## Response `200`

Successful

- MdrGetSyncUsageReportResponse
  - `data` MdrUsageReportResponse
    - `id` string, uuid — Identifies the resource
    - `start_date` string, date-time
    - `end_date` string, date-time
    - `connections` integer[]
    - `aggregation_type` 'NO_AGGREGATION' | 'PROFILE' | 'TAGS'
    - `status` 'PENDING' | 'COMPLETE' | 'FAILED' | 'EXPIRED'
    - `report_url` string
    - `result` MdrUsageRecord[]
      - `cost` string
      - `direction` string
      - `product` string
      - `connection` string
      - `received` string
      - `delivered` string
      - `currency` string
      - `parts` string
      - `sent` string
      - `profile_id` string
      - `tags` string
      - `message_type` string
      - `tn_type` string
      - `carrier_passthrough_fee` string
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `profiles` string
    - `record_type` string

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.net/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/versions/8f5f4e537994/schema)
