All URIs are relative to https://api.telnyx.com/v2
Method | HTTP request | Description |
---|---|---|
createNotificationChannels | POST /notification_channels | Create a notification channel |
createNotificationProfile | POST /notification_profiles | Create a notification profile |
createNotificationSetting | POST /notification_settings | Add a Notification Setting |
deleteNotificationChannel | DELETE /notification_channels/{id} | Delete a notification channel |
deleteNotificationProfile | DELETE /notification_profiles/{id} | Delete a notification profile |
deleteNotificationSetting | DELETE /notification_settings/{id} | Delete a notification setting |
findNotificationsEvents | GET /notification_events | List all Notifications Events |
findNotificationsEventsConditions | GET /notification_event_conditions | List all Notifications Events Conditions |
findNotificationsProfiles | GET /notification_profiles | List all Notifications Profiles |
getNotificationChannel | GET /notification_channels/{id} | Get a notification channel |
getNotificationProfile | GET /notification_profiles/{id} | Get a notification profile |
getNotificationSetting | GET /notification_settings/{id} | Get a notification setting |
listNotificationChannels | GET /notification_channels | List notification channels |
listNotificationSettings | GET /notification_settings | List notification settings |
updateNotificationChannel | PATCH /notification_channels/{id} | Update a notification channel |
updateNotificationProfile | PATCH /notification_profiles/{id} | Update a notification profile |
CreateNotificationChannels200Response createNotificationChannels(notificationChannel)
Create a notification channel
Create a notification channel.
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.NotificationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
NotificationsApi apiInstance = new NotificationsApi(defaultClient);
NotificationChannel notificationChannel = new NotificationChannel(); // NotificationChannel | Add a Notification Channel
try {
CreateNotificationChannels200Response result = apiInstance.createNotificationChannels(notificationChannel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationsApi#createNotificationChannels");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
notificationChannel | NotificationChannel | Add a Notification Channel | [optional] |
CreateNotificationChannels200Response
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | A Notification Channel response | - |
0 | Unexpected error | - |
CreateNotificationProfile200Response createNotificationProfile(notificationProfile)
Create a notification profile
Create a notification profile.
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.NotificationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
NotificationsApi apiInstance = new NotificationsApi(defaultClient);
NotificationProfile notificationProfile = new NotificationProfile(); // NotificationProfile | Add a Notification Profile
try {
CreateNotificationProfile200Response result = apiInstance.createNotificationProfile(notificationProfile);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationsApi#createNotificationProfile");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
notificationProfile | NotificationProfile | Add a Notification Profile | [optional] |
CreateNotificationProfile200Response
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | A Notification Profile response | - |
0 | Unexpected error | - |
CreateNotificationSetting200Response createNotificationSetting(notificationSetting)
Add a Notification Setting
Add a notification setting.
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.NotificationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
NotificationsApi apiInstance = new NotificationsApi(defaultClient);
NotificationSetting notificationSetting = new NotificationSetting(); // NotificationSetting |
try {
CreateNotificationSetting200Response result = apiInstance.createNotificationSetting(notificationSetting);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationsApi#createNotificationSetting");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
notificationSetting | NotificationSetting | [optional] |
CreateNotificationSetting200Response
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | A Notification Setting response | - |
201 | A Notification Setting response - async | - |
0 | Unexpected error | - |
CreateNotificationChannels200Response deleteNotificationChannel(id)
Delete a notification channel
Delete a notification channel.
import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.NotificationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
NotificationsApi apiInstance = new NotificationsApi(defaultClient);
UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource.
try {
CreateNotificationChannels200Response result = apiInstance.deleteNotificationChannel(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationsApi#deleteNotificationChannel");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Identifies the resource. |
CreateNotificationChannels200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | A Notification Channel response | - |
0 | Unexpected error | - |
CreateNotificationProfile200Response deleteNotificationProfile(id)
Delete a notification profile
Delete a notification profile.
import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.NotificationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
NotificationsApi apiInstance = new NotificationsApi(defaultClient);
UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource.
try {
CreateNotificationProfile200Response result = apiInstance.deleteNotificationProfile(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationsApi#deleteNotificationProfile");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Identifies the resource. |
CreateNotificationProfile200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | A Notification Profile response | - |
0 | Unexpected error | - |
CreateNotificationSetting200Response deleteNotificationSetting(id)
Delete a notification setting
Delete a notification setting.
import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.NotificationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
NotificationsApi apiInstance = new NotificationsApi(defaultClient);
UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource.
try {
CreateNotificationSetting200Response result = apiInstance.deleteNotificationSetting(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationsApi#deleteNotificationSetting");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Identifies the resource. |
CreateNotificationSetting200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | A Notification Setting response | - |
201 | A Notification Setting response - async | - |
0 | Unexpected error | - |
FindNotificationsEvents200Response findNotificationsEvents(pageNumber, pageSize)
List all Notifications Events
Returns a list of your notifications events.
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.NotificationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
NotificationsApi apiInstance = new NotificationsApi(defaultClient);
Integer pageNumber = 1; // Integer | The page number to load
Integer pageSize = 20; // Integer | The size of the page
try {
FindNotificationsEvents200Response result = apiInstance.findNotificationsEvents(pageNumber, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationsApi#findNotificationsEvents");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
pageNumber | Integer | The page number to load | [optional] [default to 1] |
pageSize | Integer | The size of the page | [optional] [default to 20] |
FindNotificationsEvents200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Returns a list of notification events available. | - |
0 | Unexpected error | - |
FindNotificationsEventsConditions200Response findNotificationsEventsConditions(pageNumber, pageSize, filterAssociatedRecordTypeEq)
List all Notifications Events Conditions
Returns a list of your notifications events conditions.
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.NotificationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
NotificationsApi apiInstance = new NotificationsApi(defaultClient);
Integer pageNumber = 1; // Integer | The page number to load
Integer pageSize = 20; // Integer | The size of the page
String filterAssociatedRecordTypeEq = "account"; // String | Filter by the associated record type
try {
FindNotificationsEventsConditions200Response result = apiInstance.findNotificationsEventsConditions(pageNumber, pageSize, filterAssociatedRecordTypeEq);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationsApi#findNotificationsEventsConditions");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
pageNumber | Integer | The page number to load | [optional] [default to 1] |
pageSize | Integer | The size of the page | [optional] [default to 20] |
filterAssociatedRecordTypeEq | String | Filter by the associated record type | [optional] [enum: account, phone_number] |
FindNotificationsEventsConditions200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Returns a list of notification event conditions available. | - |
0 | Unexpected error | - |
FindNotificationsProfiles200Response findNotificationsProfiles(pageNumber, pageSize)
List all Notifications Profiles
Returns a list of your notifications profiles.
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.NotificationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
NotificationsApi apiInstance = new NotificationsApi(defaultClient);
Integer pageNumber = 1; // Integer | The page number to load
Integer pageSize = 20; // Integer | The size of the page
try {
FindNotificationsProfiles200Response result = apiInstance.findNotificationsProfiles(pageNumber, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationsApi#findNotificationsProfiles");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
pageNumber | Integer | The page number to load | [optional] [default to 1] |
pageSize | Integer | The size of the page | [optional] [default to 20] |
FindNotificationsProfiles200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Returns a list of notification profiles. | - |
0 | Unexpected error | - |
CreateNotificationChannels200Response getNotificationChannel(id)
Get a notification channel
Get a notification channel.
import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.NotificationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
NotificationsApi apiInstance = new NotificationsApi(defaultClient);
UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource.
try {
CreateNotificationChannels200Response result = apiInstance.getNotificationChannel(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationsApi#getNotificationChannel");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Identifies the resource. |
CreateNotificationChannels200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | A Notification Channel response | - |
0 | Unexpected error | - |
CreateNotificationProfile200Response getNotificationProfile(id)
Get a notification profile
Get a notification profile.
import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.NotificationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
NotificationsApi apiInstance = new NotificationsApi(defaultClient);
UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource.
try {
CreateNotificationProfile200Response result = apiInstance.getNotificationProfile(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationsApi#getNotificationProfile");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Identifies the resource. |
CreateNotificationProfile200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | A Notification Profile response | - |
0 | Unexpected error | - |
CreateNotificationSetting200Response getNotificationSetting(id)
Get a notification setting
Get a notification setting.
import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.NotificationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
NotificationsApi apiInstance = new NotificationsApi(defaultClient);
UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource.
try {
CreateNotificationSetting200Response result = apiInstance.getNotificationSetting(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationsApi#getNotificationSetting");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Identifies the resource. |
CreateNotificationSetting200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | A Notification Setting response | - |
0 | Unexpected error | - |
ListNotificationChannels200Response listNotificationChannels(pageNumber, pageSize, filterChannelTypeIdEq)
List notification channels
List notification channels.
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.NotificationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
NotificationsApi apiInstance = new NotificationsApi(defaultClient);
Integer pageNumber = 1; // Integer | The page number to load
Integer pageSize = 20; // Integer | The size of the page
String filterChannelTypeIdEq = "webhook"; // String | Filter by the id of a channel type
try {
ListNotificationChannels200Response result = apiInstance.listNotificationChannels(pageNumber, pageSize, filterChannelTypeIdEq);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationsApi#listNotificationChannels");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
pageNumber | Integer | The page number to load | [optional] [default to 1] |
pageSize | Integer | The size of the page | [optional] [default to 20] |
filterChannelTypeIdEq | String | Filter by the id of a channel type | [optional] [enum: webhook, sms, email, voice] |
ListNotificationChannels200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Returns a list of notification channels. | - |
0 | Unexpected error | - |
ListNotificationSettings200Response listNotificationSettings(pageNumber, pageSize, filterNotificationProfileIdEq, filterNotificationChannelEq, filterNotificationEventConditionIdEq, filterAssociatedRecordTypeEq, status)
List notification settings
List notification settings.
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.NotificationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
NotificationsApi apiInstance = new NotificationsApi(defaultClient);
Integer pageNumber = 1; // Integer | The page number to load
Integer pageSize = 20; // Integer | The size of the page
String filterNotificationProfileIdEq = "12455643-3cf1-4683-ad23-1cd32f7d5e0a"; // String | Filter by the id of a notification profile
String filterNotificationChannelEq = "12455643-3cf1-4683-ad23-1cd32f7d5e0a"; // String | Filter by the id of a notification channel
String filterNotificationEventConditionIdEq = "12455643-3cf1-4683-ad23-1cd32f7d5e0a"; // String | Filter by the id of a notification channel
String filterAssociatedRecordTypeEq = "account"; // String | Filter by the associated record type
String status = "canceled"; // String | Filters calls by status.
try {
ListNotificationSettings200Response result = apiInstance.listNotificationSettings(pageNumber, pageSize, filterNotificationProfileIdEq, filterNotificationChannelEq, filterNotificationEventConditionIdEq, filterAssociatedRecordTypeEq, status);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationsApi#listNotificationSettings");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
pageNumber | Integer | The page number to load | [optional] [default to 1] |
pageSize | Integer | The size of the page | [optional] [default to 20] |
filterNotificationProfileIdEq | String | Filter by the id of a notification profile | [optional] |
filterNotificationChannelEq | String | Filter by the id of a notification channel | [optional] |
filterNotificationEventConditionIdEq | String | Filter by the id of a notification channel | [optional] |
filterAssociatedRecordTypeEq | String | Filter by the associated record type | [optional] [enum: account, phone_number] |
status | String | Filters calls by status. | [optional] [enum: canceled, completed, failed, busy, no-answer] |
ListNotificationSettings200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Returns a list of notification settings. | - |
0 | Unexpected error | - |
CreateNotificationChannels200Response updateNotificationChannel(id, notificationChannel)
Update a notification channel
Update a notification channel.
import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.NotificationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
NotificationsApi apiInstance = new NotificationsApi(defaultClient);
UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource.
NotificationChannel notificationChannel = new NotificationChannel(); // NotificationChannel | Update notification channel object
try {
CreateNotificationChannels200Response result = apiInstance.updateNotificationChannel(id, notificationChannel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationsApi#updateNotificationChannel");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Identifies the resource. | |
notificationChannel | NotificationChannel | Update notification channel object |
CreateNotificationChannels200Response
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | A Notification Channel response | - |
0 | Unexpected error | - |
CreateNotificationProfile200Response updateNotificationProfile(id, notificationProfile)
Update a notification profile
Update a notification profile.
import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.NotificationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.telnyx.com/v2");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
NotificationsApi apiInstance = new NotificationsApi(defaultClient);
UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource.
NotificationProfile notificationProfile = new NotificationProfile(); // NotificationProfile | Update notification profile object
try {
CreateNotificationProfile200Response result = apiInstance.updateNotificationProfile(id, notificationProfile);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotificationsApi#updateNotificationProfile");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | UUID | Identifies the resource. | |
notificationProfile | NotificationProfile | Update notification profile object |
CreateNotificationProfile200Response
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | A Notification Profile response | - |
0 | Unexpected error | - |