List notification channels.
Returns a list of notification channels.
Array of objects (NotificationChannel) | |
object (PaginationMeta) |
{- "data": [
- {
- "channel_destination": "+13125550000",
- "channel_type_id": "sms",
- "created_at": "2019-10-15T10:07:15.527Z",
- "id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "notification_profile_id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Create a notification channel.
Add a Notification Channel
A Notification Channel response
{- "channel_destination": "+13125550000",
- "channel_type_id": "sms",
- "notification_profile_id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a"
}
{- "data": {
- "channel_destination": "+13125550000",
- "channel_type_id": "sms",
- "created_at": "2019-10-15T10:07:15.527Z",
- "id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "notification_profile_id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
}
Delete a notification channel.
A Notification Channel response
object (NotificationChannel) A Notification Channel | |||||||||||||
|
{- "data": {
- "channel_destination": "+13125550000",
- "channel_type_id": "sms",
- "created_at": "2019-10-15T10:07:15.527Z",
- "id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "notification_profile_id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
}
Retrieve a notification channel.
A Notification Channel response
object (NotificationChannel) A Notification Channel | |||||||||||||
|
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.NotificationChannel.retrieve("id")
{- "data": {
- "channel_destination": "+13125550000",
- "channel_type_id": "sms",
- "created_at": "2019-10-15T10:07:15.527Z",
- "id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "notification_profile_id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
}
Update a notification channel.
Update notification channel object
A Notification Channel response
object (NotificationChannel) A Notification Channel | |||||||||||||
|
{- "channel_destination": "+13125550000",
- "channel_type_id": "sms",
- "notification_profile_id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a"
}
{- "data": {
- "channel_destination": "+13125550000",
- "channel_type_id": "sms",
- "created_at": "2019-10-15T10:07:15.527Z",
- "id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "notification_profile_id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
}
Returns a list of your notifications events conditions.
Returns a list of notification event conditions available.
Array of objects (NotificationEventCondition) | |
object (PaginationMeta) |
{- "data": [
- {
- "allow_multiple_channels": false,
- "associated_record_type": "phone_number",
- "asynchronous": true,
- "created_at": "2019-10-15T10:07:15.527Z",
- "description": "When emergency number dialed from phone number X",
- "enabled": true,
- "id": "70c7c5cb-dce2-4124-accb-870d39dbe852",
- "name": "from phone number",
- "notification_event_id": "d5c395cd-9864-4609-b5e2-3f9fd4ce201a",
- "parameters": [
- {
- "data_type": "string",
- "name": "phone_number",
- "optional": false
}
], - "supported_channels": [
- "webhook",
- "sms",
- "email",
- "voice"
], - "updated_at": "2019-10-15T10:07:15.527Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Returns a list of your notifications events.
Returns a list of notification events available.
Array of objects (NotificationEvent) | |
object (PaginationMeta) |
{- "data": [
- {
- "created_at": "2019-10-15T10:07:15.527Z",
- "enabled": true,
- "id": "d5c395cd-9864-4609-b5e2-3f9fd4ce201a",
- "name": "Emergency Number Dialed",
- "notification_category": "Calls",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Returns a list of your notifications profiles.
Returns a list of notification profiles.
Array of objects (NotificationProfile) | |
object (PaginationMeta) |
{- "data": [
- {
- "created_at": "2019-10-15T10:07:15.527Z",
- "id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "name": "string",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Create a notification profile.
A Notification Profile response
object (NotificationProfile) A Collection of Notification Channels | |
{- "name": "string"
}
{- "data": {
- "created_at": "2019-10-15T10:07:15.527Z",
- "id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "name": "string",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
}
Delete a notification profile.
A Notification Profile response
object (NotificationProfile) A Collection of Notification Channels | |
{- "data": {
- "created_at": "2019-10-15T10:07:15.527Z",
- "id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "name": "string",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
}
Retrieve a notification profile.
A Notification Profile response
object (NotificationProfile) A Collection of Notification Channels | |
{- "data": {
- "created_at": "2019-10-15T10:07:15.527Z",
- "id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "name": "string",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
}
Update a notification profile.
A Notification Profile response
object (NotificationProfile) A Collection of Notification Channels | |
{- "name": "string"
}
{- "data": {
- "created_at": "2019-10-15T10:07:15.527Z",
- "id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "name": "string",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
}
List notification settings.
page[number] | integer >= 1 Default: 1 The page number to load |
page[size] | integer [ 1 .. 250 ] Default: 20 The size of the page |
filter[notification_profile_id][eq] | string Filter by the id of a notification profile Example: filter[notification_profile_id][eq]=12455643-3cf1-4683-ad23-1cd32f7d5e0a |
filter[notification_channel][eq] | string Filter by the id of a notification channel Example: filter[notification_channel][eq]=12455643-3cf1-4683-ad23-1cd32f7d5e0a |
filter[notification_event_condition_id][eq] | string Filter by the id of a notification channel Example: filter[notification_event_condition_id][eq]=12455643-3cf1-4683-ad23-1cd32f7d5e0a |
filter[associated_record_type][eq] | string Filter by the associated record type Example: filter[associated_record_type][eq]=phone_number |
filter[status][eq] | string The status of a notification setting Example: filter[status][eq]=enable-received |
Returns a list of notification settings.
Array of objects (NotificationSetting) | |
object (PaginationMeta) |
{- "data": [
- {
- "associated_record_type": "phone_number",
- "associated_record_type_value": "+13125550000",
- "created_at": "2019-10-15T10:07:15.527Z",
- "id": "8eb5b5f9-5893-423c-9f15-b487713d44d4",
- "notification_channel_id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "notification_event_condition_id": "70c7c5cb-dce2-4124-accb-870d39dbe852",
- "notification_profile_id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "parameters": [
- {
- "name": "phone_number",
- "value": "+13125550000"
}
], - "status": "enable-received",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Add a notification setting.
A Notification Setting response
object (NotificationSetting) | |||||||||||||||||||||
|
A Notification Setting response - async
object (NotificationSetting) | |||||||||||||||||||||
|
{- "notification_channel_id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "notification_event_condition_id": "70c7c5cb-dce2-4124-accb-870d39dbe852",
- "notification_profile_id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "parameters": [
- {
- "name": "phone_number",
- "value": "+13125550000"
}
]
}
{- "data": {
- "associated_record_type": "phone_number",
- "associated_record_type_value": "+13125550000",
- "created_at": "2019-10-15T10:07:15.527Z",
- "id": "8eb5b5f9-5893-423c-9f15-b487713d44d4",
- "notification_channel_id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "notification_event_condition_id": "70c7c5cb-dce2-4124-accb-870d39dbe852",
- "notification_profile_id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "parameters": [
- {
- "name": "phone_number",
- "value": "+13125550000"
}
], - "status": "enable-received",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
}
Delete a notification setting.
A Notification Setting response
object (NotificationSetting) | |||||||||||||||||||||
|
A Notification Setting response - async
object (NotificationSetting) | |||||||||||||||||||||
|
{- "data": {
- "associated_record_type": "phone_number",
- "associated_record_type_value": "+13125550000",
- "created_at": "2019-10-15T10:07:15.527Z",
- "id": "8eb5b5f9-5893-423c-9f15-b487713d44d4",
- "notification_channel_id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "notification_event_condition_id": "70c7c5cb-dce2-4124-accb-870d39dbe852",
- "notification_profile_id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "parameters": [
- {
- "name": "phone_number",
- "value": "+13125550000"
}
], - "status": "enable-received",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
}
Retrieve a notification setting.
A Notification Setting response
object (NotificationSetting) | |||||||||||||||||||||
|
{- "data": {
- "associated_record_type": "phone_number",
- "associated_record_type_value": "+13125550000",
- "created_at": "2019-10-15T10:07:15.527Z",
- "id": "8eb5b5f9-5893-423c-9f15-b487713d44d4",
- "notification_channel_id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "notification_event_condition_id": "70c7c5cb-dce2-4124-accb-870d39dbe852",
- "notification_profile_id": "12455643-3cf1-4683-ad23-1cd32f7d5e0a",
- "parameters": [
- {
- "name": "phone_number",
- "value": "+13125550000"
}
], - "status": "enable-received",
- "updated_at": "2019-10-15T10:07:15.527Z"
}
}