How to configure a Twilio SMS Gateway in ADSelfService Plus
Objective
This article provides detail instructions on how to configure a Twilio SMS Gateway in ADSelfService Plus. This allows you to send SMS notifications and multi-factor authentication (MFA) messages via custom HTTP integration.
Prerequisites
Before configuring ADSelfService Plus, you must gather the following three pieces of information from your Twilio account console:
Account SID: Your unique account identifier. Example: AC822c6980a322c745ac883f86617a6704
Auth token: Your secret API authentication token. Example: 754811b836e773ecba554ffcbf11cd72
Twilio phone number: A verified sender phone number that Twilio uses to dispatch SMS messages. This number must be purchased and configured within your Twilio account.
Note: If you are using a Twilio trial account, you can only send SMS messages to phone numbers that you have verified within your Twilio account. Licensed accounts can send messages to any valid mobile number globally, subject to Twilio's pricing and regulations. 
Important note for authentication:
To securely authenticate with Twilio, you need to combine your ACCOUNT SID and AUTH TOKEN into a single string and then encode it using Base64.
Format: ACCOUNT_SID:AUTH_TOKEN
Example input: AC822c6980a322c745ac883f86617a6704:754811b836e773ecba554ffcbf11cd72
You can use any standard Base64 encoding tool or command-line utility to perform this conversion. The resulting encoded string will be used in the Authorization HTTP header during the configuration process.
Log in to the ADSelfService Plus admin console.
Navigate to Admin > Product Settings > Mail/SMS Settings > SMS Settings.
Fill in the following configuration details:
SMS Provider: Select Custom.
Send SMS Via: Select HTTP.
HTTP Method: Select POST.
Success Response: <sid> (Twilio returns a unique SID (message SID) upon successful message submission.)
Failure Response: <Code> (Twilio typically includes an error code in its response if a message fails.)
Click Save Settings to apply the configuration.
Use the Send Test SMS link within ADSelfService Plus to confirm successful SMS delivery.
How to reach support
If the issue persists, contact our support team here.
New to ADSelfService Plus?