Twilio is a cloud communications platform as a service. Integrate your Twilio account to send outgoing SMS communications from the portal or to send SMS verification codes for access. As and when SMS messages get sent, this usage is reflected in your Twilio account. Twilio is accessed at the Customer level.
Set up Twilio
-
Sign up for a Twilio account via https://www.twilio.com/.
-
Within your account, under Create a Project, click Products.
-
Select Programmable SMS and click Continue.
-
Name your project something appropriate such as “SMS connector”.
-
You do not need to add any teammates to the projects so you can click Skip This Step.
-
Scroll to the bottom of the page and on the right you’ll see the following message, click Yes.
-
The Third Party User Guide appears, click Get a number.
-
If you are happy with this number and it allows sending and receiving SMS click Choose this number.
-
If you want to use a different number click Search for a different number this provides you with more customization options such as which country your number is hosted. You must enable SMS capabilities, enter any other requirements and click Search. From the results, select a number with SMS enabled and click Choose this Number.
-
If required, enter your address details and ensure the number is in international format (+ country code) then click Save and continue.
-
Next, add a payment method (debit, credit card or PayPal).
-
Make a note of the Twilio phone number which you’ve just created, your Account SID and Auth token which are displayed on the top right hand of the page.
Set Up the Twilio Connector
-
Within Management > Connectors on the Twilio connector click Add.
-
Complete the fields as follows:
Connector name
Enter a name for the connector.
Account SID
These details appear on the top right hand of the Twilio number page.
Auth token
-
Click Verify, when the verification is successful a list of the SMS numbers appears that you have created in your Twilio account.
-
Choose an SMS number, and if required, select Enable separate verification number to choose SMS number for SMS verification.
Note: If validation is successful but there are no SMS numbers in the drop-down, the following error appears:
-
Click Save.
Data Sent to Twilio
The following data is sent to Twilio from the portal for marketing or authentication:
Data Type |
Data |
Description |
(string) |
mobile' |
The user's mobile telephone number |