---
title: "Fetch all Mdr records"
method: GET
path: "/reports/mdrs"
tags: ["MDR Detail Reports"]
---

# Fetch all Mdr records

`GET /reports/mdrs`

Fetch all Mdr records

## Query parameters

- `start_date` string
- `end_date` string
- `id` string — Message uuid
- `direction` 'INBOUND' | 'OUTBOUND' — Direction (inbound or outbound)
- `profile` string — Name of the profile
- `cld` string — Destination number
- `cli` string — Origination number
- `status` 'GW_TIMEOUT' | 'DELIVERED' | 'DLR_UNCONFIRMED' | 'DLR_TIMEOUT' | 'RECEIVED' | 'GW_REJECT' | 'FAILED' — Message status
- `message_type` 'SMS' | 'MMS' — Type of message

## Response `200`

Successful

- ReportingMdrGetDetailResponse
  - `data` MdrDetailResponse[]
    - `created_at` string, date-time — Message sent time
    - `profile_name` string — Configured profile name. New profiles can be created and configured on Telnyx portal
    - `direction` string — Direction of message - inbound or outbound.
    - `parts` number — Number of parts this message has. Max number of character is 160. If message contains more characters then that it will be broken down in multiple parts
    - `status` 'GW_TIMEOUT' | 'DELIVERED' | 'DLR_UNCONFIRMED' | 'DLR_TIMEOUT' | 'RECEIVED' | 'GW_REJECT' | 'FAILED' — Message status
    - `cld` string — The destination number for a call, or the callee
    - `cli` string — The number associated with the person initiating the call, or the caller
    - `rate` string — Rate applied to the message
    - `cost` string — Final cost. Cost is calculated as rate * parts
    - `currency` 'AUD' | 'CAD' | 'EUR' | 'GBP' | 'USD' — Currency of the rate and cost
    - `id` string — Id of message detail record
    - `message_type` 'SMS' | 'MMS' — Type of message
    - `record_type` string
  - `meta` ReportingPaginationMeta77109e5d17
    - `total_pages` integer
    - `total_results` integer
    - `page_number` integer
    - `page_size` integer

## 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/revisions/8f5f4e537994/schema)
