---
title: "Create a new legacy usage V2 MDR report request"
method: POST
path: "/legacy_reporting/usage_reports/messaging"
tags: ["MDR Usage Reports"]
---

# Create a new legacy usage V2 MDR report request

`POST /legacy_reporting/usage_reports/messaging`

## Request

- Base URL: `https://api.telnyx.com/v2`
- URL: `https://api.telnyx.com/v2/legacy_reporting/usage_reports/messaging`
- Auth: HTTP bearer

Creates a new legacy usage V2 MDR report request with the specified filters

## Request body `*/*`

- MdrUsageRequestLegacy: MDR usage request parameters
  - `start_time` string, date-time
  - `end_time` string, date-time
  - `aggregation_type` integer, required: Aggregation type: No aggregation = 0, By Messaging Profile = 1, By Tags = 2
  - `profiles` string[]: List of messaging profile IDs to filter by
  - `select_all_managed_accounts` boolean
  - `managed_accounts` string[]: List of managed accounts to include

## Response `200`

V2 legacy MDR usage report request created successfully

- MdrPostUsageReportResponse
  - `data` MdrUsageReportResponseLegacy: Legacy V2 MDR usage report response
    - `id` string, uuid: Identifies the resource
    - `start_time` string, date-time
    - `end_time` string, date-time
    - `connections` string[]
    - `aggregation_type` integer: Aggregation type: No aggregation = 0, By Messaging Profile = 1, By Tags = 2
    - `status` integer: Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
    - `report_url` string
    - `result` object
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `profiles` string[]: List of messaging profile IDs
    - `record_type` string

## Other responses

- `400`: Invalid request parameters
- `401`: Unauthorized
- `403`: Forbidden
- `500`: Internal server error

## Changes

- **2026-10-15** `a72569d69430`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/team-telnyx/apis/telnyx-api/changes/legacy_reporting/usage_reports/messaging/post.md)

---

[API](https://skmtc.dev/team-telnyx/apis/telnyx-api.md) - [All operations](https://skmtc.dev/team-telnyx/apis/telnyx-api/llms.txt) - [OpenAPI document](https://skmtc.dev/team-telnyx/apis/telnyx-api/revisions/0f17b8167873?raw)
