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 notificationEventListResponse of client.notificationEvents.list()) {
console.log(notificationEventListResponse.id);
}{
"data": [
{
"id": "d5c395cd-9864-4609-b5e2-3f9fd4ce201a",
"name": "Emergency Number Dialed",
"notification_category": "Calls",
"enabled": true,
"created_at": "2019-10-15T10:07:15.527Z",
"updated_at": "2019-10-15T10:07:15.527Z"
}
],
"meta": {
"total_pages": 3,
"page_number": 2,
"total_results": 55,
"page_size": 25
}
}Returns a list of your notifications events.
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 notificationEventListResponse of client.notificationEvents.list()) {
console.log(notificationEventListResponse.id);
}{
"data": [
{
"id": "d5c395cd-9864-4609-b5e2-3f9fd4ce201a",
"name": "Emergency Number Dialed",
"notification_category": "Calls",
"enabled": true,
"created_at": "2019-10-15T10:07:15.527Z",
"updated_at": "2019-10-15T10:07:15.527Z"
}
],
"meta": {
"total_pages": 3,
"page_number": 2,
"total_results": 55,
"page_size": 25
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Returns a list of notification events available.
Show child attributes
A UUID.
"d5c395cd-9864-4609-b5e2-3f9fd4ce201a"
A human readable name.
"Emergency Number Dialed"
"Calls"
true
ISO 8601 formatted date indicating when the resource was created.
"2019-10-15T10:07:15.527Z"
ISO 8601 formatted date indicating when the resource was updated.
"2019-10-15T10:07:15.527Z"
Was this page helpful?