Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

GetPaginatedMdrs

GET 
/reports/mdrs

Fetch all Mdr records

Request

Query Parameters

    start_date string

    Pagination start date

    end_date string

    Pagination end date

    id string
    direction string

    Possible values: [INBOUND, OUTBOUND]

    profile string
    cld string
    cli string
    status string

    Possible values: [GW_TIMEOUT, DELIVERED, DLR_UNCONFIRMED, DLR_TIMEOUT, RECEIVED, GW_REJECT, FAILED]

    message_type string

    Possible values: [SMS, MMS]

Responses

200: Successful

Request samples


curl -L 'https://apidev.telnyx.com/v2/reports/mdrs' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": [
{
"created_at": "2020-07-01T00:00:00-06:00",
"profile_name": "configured-profile-name",
"direction": "outbound",
"parts": 2,
"status": "DELIVERED",
"cld": "+1555123456",
"cli": "+1555123456",
"rate": "0.05",
"cost": "0.1",
"currency": "USD",
"id": "99b637f3-07fd-45ac-b9ca-b87208c24650",
"message_type": "SMS",
"record_type": "mdr_report"
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}