The Custom Telephony Provider API provides operations to manage your custom telephony providers and their credentials. Creating a custom telephony provider enables you to use the Phone authenticator. See Use your own telephony provider to learn more about using your own telephony provider.
To create a custom telephony provider, you must first create an account with a supported telephony provider. After you have an account, you can use this API to add and then manage your provider credentials. Twilio and Telesign are the only supported telephony providers at this time.
Lists all custom telephony providers that are configured in your org
OK
Forbidden
Not Found
[- {
- "id": "oct3v00k4iOFlEJmQ806",
- "isPrimaryProvider": true,
- "enabled": true,
- "providerCapability": "ALL",
- "providerName": "TWILIO",
- "providerSid": "ACb49fb19a09b2f5d2f121fe1c207689dt",
- "providerSettings": {
- "sms": {
- "twilioPhoneNumber": "+1234567890"
}, - "call": {
- "twilioVerifySid": "example-verify-sid"
}
}
}, - {
- "id": "oct3v00k4iOFlEG3dR45",
- "isPrimaryProvider": false,
- "enabled": true,
- "providerCapability": "ALL",
- "providerName": "TELESIGN",
- "providerSid": "AC42tfy19a09b2f5d2f121fe1c207fg456r",
- "providerSettings": {
- "sms": {
- "telesignService": "telesignMessagingService"
}, - "call": {
- "telesignService": "telesignVerifyService"
}
}
}
]Creates a custom telephony provider with the provided credentials
| providerAuthToken | string The authentication token that's used to authenticate requests to the telephony provider. Your telephony provider gives you this token. | ||||||||||||
| providerCapability | string The types of telephony operations (SMS or Voice) that you use with your telephony provider.
| ||||||||||||
| providerName | string The name of the telephony provider | ||||||||||||
object (CustomTelephonyProviderSettings) Settings for custom telephony provider. These settings vary based on the telephony provider and the type of telephony operation (SMS or Voice). For
| |||||||||||||
| |||||||||||||
| providerSid | string The account string identifier (SID) for your telephony provider account. Your telephony provider gives you this SID. | ||||||||||||
Created
Forbidden
{- "providerAuthToken": "11a9b6c435967abe806f4f0d6ec0f382",
- "providerCapability": "ALL",
- "providerName": "TWILIO",
- "providerSid": "ACb49fb19a09b2f5d2f121fe1c207689dt",
- "providerSettings": {
- "sms": {
- "twilioPhoneNumber": "+1234567890"
}, - "call": {
- "twilioVerifySid": "example-verify-sid"
}
}
}{- "id": "oct3v00k4iOFlEJmQ806",
- "isPrimaryProvider": true,
- "enabled": true,
- "providerCapability": "ALL",
- "providerName": "TWILIO",
- "providerSid": "ACb49fb19a09b2f5d2f121fe1c207689dt",
- "providerSettings": {
- "sms": {
- "twilioPhoneNumber": "+1234567890"
}, - "call": {
- "twilioVerifySid": "example-verify-sid"
}
}
}Retrieves the details of a custom telephony provider by its ID
OK
Forbidden
Not Found
{- "id": "oct3v00k4iOFlEJmQ806",
- "isPrimaryProvider": true,
- "enabled": true,
- "providerCapability": "ALL",
- "providerName": "TWILIO",
- "providerSid": "ACb49fb19a09b2f5d2f121fe1c207689dt",
- "providerSettings": {
- "sms": {
- "twilioPhoneNumber": "+1234567890"
}, - "call": {
- "twilioVerifySid": "example-verify-sid"
}
}
}Updates the credentials of an existing custom telephony provider
| id | string ID of the custom telephony provider | ||||||||||||
| providerAuthToken | string The authentication token that's used to authenticate requests to the telephony provider. Your telephony provider gives you this token. | ||||||||||||
object (CustomTelephonyProviderSettings) Settings for custom telephony provider. These settings vary based on the telephony provider and the type of telephony operation (SMS or Voice). For
| |||||||||||||
| |||||||||||||
| providerSid | string The account string identifier (SID) for your telephony provider account. Your telephony provider gives you this SID. | ||||||||||||
OK
Forbidden
Not Found
{- "id": "oct3v00k4iOFlEJmQ806",
- "providerAuthToken": "11a9b6c435967abe806f4f0d6ec0f382",
- "providerSid": "ACb49fb19a09b2f5d2f121fe1c207689dt",
- "providerSettings": {
- "sms": {
- "twilioPhoneNumber": "+1234567890"
}, - "call": {
- "twilioVerifySid": "updated-verify-sid"
}
}
}{- "id": "oct3v00k4iOFlEJmQ806",
- "isPrimaryProvider": true,
- "enabled": true,
- "providerCapability": "ALL",
- "providerName": "TWILIO",
- "providerSid": "11a9b6c435967abe806f4f0d6ec0f382",
- "providerSettings": {
- "sms": {
- "twilioPhoneNumber": "+1234567890"
}, - "call": {
- "twilioVerifySid": "updated-verify-sid"
}
}
}Deletes a custom telephony provider by its ID.
Before you delete a provider, ensure that it is deactivated. Consider setting up another telephony provider if you still plan to use telephony in your org. See Set up an external telephony provider.
No Content
Forbidden
Not Found
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}Activates a custom telephony provider by its ID. You must activate a provider before it can be used.
OK
Forbidden
Not Found
{- "id": "oct3v00k4iOFlEJmQ806",
- "isPrimaryProvider": true,
- "enabled": true,
- "providerCapability": "ALL",
- "providerName": "TWILIO",
- "providerSid": "ACb49fb19a09b2f5d2f121fe1c207689dt",
- "providerSettings": {
- "sms": {
- "twilioPhoneNumber": "+1234567890"
}, - "call": {
- "twilioVerifySid": "example-verify-sid"
}
}
}Deactivates a custom telephony provider by its ID. Keep the following points in mind when you deactivate a provider:
OK
Forbidden
Not Found
{- "id": "oct3v00k4iOFlEJmQ806",
- "isPrimaryProvider": false,
- "enabled": false,
- "providerCapability": "ALL",
- "providerName": "TWILIO",
- "providerSid": "ACb49fb19a09b2f5d2f121fe1c207689dt",
- "providerSettings": {
- "sms": {
- "twilioPhoneNumber": "+1234567890"
}, - "call": {
- "twilioVerifySid": "example-verify-sid"
}
}
}Sets a custom telephony provider as the primary telephony provider for the org. You can only set one provider as a primary provider at a time.
OK
Forbidden
Not Found
{- "id": "oct3v00k4iOFlEJmQ806",
- "isPrimaryProvider": true,
- "enabled": true,
- "providerCapability": "ALL",
- "providerName": "TWILIO",
- "providerSid": "ACb49fb19a09b2f5d2f121fe1c207689dt",
- "providerSettings": {
- "sms": {
- "twilioPhoneNumber": "+1234567890"
}, - "call": {
- "twilioVerifySid": "example-verify-sid"
}
}
}Sends a test message (SMS or call) using the specified custom telephony provider to verify that the provider is configured correctly.
You must provide a valid phone number and country code to send the test message. Send it to a phone number that you have access to so you can confirm that the message was received.
| countryCodeIso2 | string The country code for the phone number. Use the Alpha-2 code from ISO 3166-1 for country codes. |
| factor | string The type of test message to send |
| phoneNumber | string The phone number to which the test message or call is sent |
No Content
Bad Request
Forbidden
{- "factor": "SMS",
- "phoneNumber": "+1234567890",
- "countryCodeIso2": "US"
}{- "errorCode": "E0000001",
- "errorSummary": "Api validation failed: {0}",
- "errorLink": "E0000001",
- "errorId": "sampleiCF-8D5rLW6myqiPItW",
- "errorCauses": [ ]
}