import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const simCardDataUsageNotifications = await client.simCardDataUsageNotifications.list();
console.log(simCardDataUsageNotifications.data);{
"data": [
{
"id": "79228acc-3f08-4e70-ac68-cb5aae8b537a",
"sim_card_id": "b34c1683-cd85-4493-b9a5-315eb4bc5e19",
"threshold": {
"amount": "2048.0",
"unit": "MB"
},
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}Lists a paginated collection of SIM card data usage notifications. It enables exploring the collection using specific filters.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const simCardDataUsageNotifications = await client.simCardDataUsageNotifications.list();
console.log(simCardDataUsageNotifications.data);{
"data": [
{
"id": "79228acc-3f08-4e70-ac68-cb5aae8b537a",
"sim_card_id": "b34c1683-cd85-4493-b9a5-315eb4bc5e19",
"threshold": {
"amount": "2048.0",
"unit": "MB"
},
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The page number to load.
x >= 1The size of the page.
1 <= x <= 250A valid SIM card ID.
"47a1c2b0-cc7b-4ab1-bb98-b33fb0fc61b9"
Successful Response
Show child attributes
Identifies the resource.
"79228acc-3f08-4e70-ac68-cb5aae8b537a"
The identification UUID of the related SIM card resource.
"b34c1683-cd85-4493-b9a5-315eb4bc5e19"
"sim_card_data_usage_notification"
ISO 8601 formatted date-time indicating when the resource was created.
"2018-02-02T22:25:27.521Z"
ISO 8601 formatted date-time indicating when the resource was updated.
"2018-02-02T22:25:27.521Z"
Was this page helpful?