Configuring Twilio account with LoginRadius
Twilio is a cloud-based communication platform with APIs for integrating voice, SMS, and other messaging services into applications. It enables businesses to programmatically send and receive SMS messages, make and receive phone calls, and implement multi-channel communication workflows over HTTP. Twilio operates on a usage-based billing model, making it scalable for various business needs.
LoginRadius leverages Twilio's SMS capabilities for phone authentication, OTP (One-Time Password) delivery, and other communication-related functionalities.
This document outlines the steps required to configure a Twilio account with LoginRadius, ensuring seamless integration for secure and reliable SMS-based communication.
Twilio Configuration
You can follow the below-mentioned steps to create and configure a Twilio Account:
Step 1: Sign up for a trial account on Twilio.
Step 2: Verify your email and phone number as per the sign-up process for Twilio and fill in the relevant details to get your account set up.
Step 3: On the next screen, you will have a dashboard. Click on the Get Trial Number button.
Step 4:.A number will be shown to you as your trial number. Click on the Choose this Number button.
Note: To choose a number other than the one provided, you must upgrade your account by adding a card.
Step 5: Once you receive a trial number from Twilio, you should note the Account SID and Auth Token, which will be used in the configuration of the LoginRadius Admin Console.
To see the credentials, go to the dashboard, and inside the dashboard, visit the project info section. From there, copy the account SID and click on the show button to see the auth token and copy that.
LoginRadius Admin Console Configuration
Follow the steps below to configure Twilio in the LoginRadius Admin Console.
Step 1: Navigate to the Email/SMS Provider Section in the Admin Console
Step 2: Scroll to the SMS Provider section and click Twilio.
Step 3: Fill in the relevant details required to configure Twilio. The following information needs to be filled in:
- Twilio Account SID: This is the SID you obtained from the Twilio account.
- Twilio Auth Token: This is the Auth Token you received from Twilio.
- Twilio Number: This is the number you selected for the Twilio account.
Step 4: Click on the Save button to save the Twilio configurations.
Now you have Twilio configured as an SMS Provider for your account.
Note: In the trial account, the verification SMS and the calls will only be received on the verified number (which we verified at the start).
Best Practices
You can follow the following best practices for a better user experience:
- Secure your Twilio Credentials
- Monitor SMS Delivery and Logs
- Implement fallback mechanisms
- Have a separate Twilio number for the dev and production environments