Check out our upcoming events and meetups! View events →
Fetch all Wdr records
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const reportListWdrsResponse of client.reports.listWdrs()) {
console.log(reportListWdrsResponse.id);
}{
"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
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Start date
"2021-05-01T00:00:00Z"
End date
"2021-06-01T00:00:00Z"
WDR uuid
"e093fbe0-5bde-11eb-ae93-0242ac130002"
Mobile country code
"204"
Mobile network code
"01"
International mobile subscriber identity
"123456"
Sim group name
"sim name"
Sim group unique identifier
"f05a189f-7c46-4531-ac56-1460dc465a42"
Sim card unique identifier
"877f80a6-e5b2-4687-9a04-88076265720f"
Phone number
"+12345678910"
Field used to order the data. If no field is specified, default value is 'created_at'
["created_at"]Consolidated page parameter (deepObject style). Originally: page[number], page[size]
Show child attributes
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const reportListWdrsResponse of client.reports.listWdrs()) {
console.log(reportListWdrsResponse.id);
}{
"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
}
}