Skip to main content
GET
/
reports
/
wdrs
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const response = await client.reports.listWdrs();

console.log(response.data);
{
  "data": [
    {
      "id": "3ca7bd3d-7d82-4e07-9df4-009123068320",
      "created_at": "2020-07-01T00:00:00-06:00",
      "cost": {
        "amount": "0.1",
        "currency": "USD"
      },
      "mcc": "204",
      "mnc": "01",
      "downlink_data": {
        "amount": 1,
        "unit": "MB"
      },
      "duration_seconds": 1,
      "imsi": "123",
      "rate": {
        "amount": "0.1",
        "currency": "USD"
      },
      "sim_group_name": "sim name",
      "sim_group_id": "f05a189f-7c46-4531-ac56-1460dc465a42",
      "sim_card_id": "877f80a6-e5b2-4687-9a04-88076265720f",
      "phone_number": "+12345678910",
      "uplink_data": {
        "amount": 1,
        "unit": "MB"
      },
      "record_type": "wdr"
    }
  ],
  "meta": {
    "total_pages": 3,
    "total_results": 55,
    "page_number": 2,
    "page_size": 25
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

start_date
string

Start date

Example:

"2021-05-01T00:00:00Z"

end_date
string

End date

Example:

"2021-06-01T00:00:00Z"

id
string

WDR uuid

Example:

"e093fbe0-5bde-11eb-ae93-0242ac130002"

mcc
string

Mobile country code

Example:

"204"

mnc
string

Mobile network code

Example:

"01"

imsi
string

International mobile subscriber identity

Example:

"123456"

sim_group_name
string

Sim group name

Example:

"sim name"

sim_group_id
string

Sim group unique identifier

Example:

"f05a189f-7c46-4531-ac56-1460dc465a42"

sim_card_id
string

Sim card unique identifier

Example:

"877f80a6-e5b2-4687-9a04-88076265720f"

phone_number
string

Phone number

Example:

"+12345678910"

sort
string[]

Field used to order the data. If no field is specified, default value is 'created_at'

Example:
["created_at"]
page
object

Consolidated page parameter (deepObject style). Originally: page[number], page[size]

Response

Successful

data
object[]
meta
object