Twilio
The ReferralHero/Twilio integration is very powerful and can work together in a few ways:
  • Collecting phone numbers as your unique identifier and verifying them with an SMS message
  • Collecting phone numbers as a secondary verification method or additional security layer and verifying them with an SMS message
  • Collecting verified phone numbers so that you can use them for SMS marketing activities

How to Connect Twilio to ReferralHero

We use Twilio to send SMS messages, therefore you will need to create a Twilio account and provide us with your Twilio API keys. Follow the instructions below to get your Twilio API keys.
  1. 1.
    Go to Twilio and login or create an account
  2. 2.
    Create a new project and go to Messages > Services > Create Messaging Service. Add a Name and select "Verify Users" as your use case.
3. Select a phone number to use as a Sender. If you do not have a phone number you will be prompted to purchase one.
Make sure you select/purchase a phone number with global SMS capability (especially if you are a global business). If you don't, some of your users will not receive the SMS.
4. Continue through the additional steps "Set Up Integration" and "Compliance Info". Most of these fields you can leave as default or come back later and update if you need to.
5. After you have successfully set up a Messaging Service with your Phone Number. Go to Messages > Get Set Up and copy your Account SID and Auth Token keys.
6. Now go back to ReferralHero and go to Edit Campagin > Integrations > Twilio. Enter your Twilio Account SID, Twilio Auth Token and Twilio number and Invalid phone number error.
7. Save your changes. Now an SMS message will be sent to verify Phone Numbers when people sign up for your ReferralHero campaign!
8. You can edit the SMS message people will be sent in the SMS Automations section. The SMS message is the message your subscribers will get when they sign up. It MUST contain the special tag %confirmation_link% (which will be replaced with the subscriber's confirmation link).

Resend verification SMS

If your users don't receive the confirmation SMS, they can resend themselves a confirmation SMS by entering their unique identifier in the widget and clicking "Resend verification SMS".

Important things to know

A few things to know when using SMS verifications:
  • Make sure you select a phone number with global SMS capability. If you don't, some of your users will not receive the SMS.
  • If your campaign is in Test mode, SMS won't be sent.
  • The phone number we send the SMS to is taken from the "phone number" field. Your users should enter their phone number including the country code (eg: +16572206234).
  • If your Twilio account runs out of funds the SMS will fail to send and your users will not be able to sign up. Make sure your Twilio account has always enough funds.
  • If 1-click sign-up is enabled, your users who opt-in through 1-click sign-up will not be sent a confirmation SMS or a confirmation email.
  • When using the API, if "double_optin" is disabled, your users will not be sent a confirmation SMS or a confirmation email.
Last modified 1mo ago
Copy link
On this page
How to Connect Twilio to ReferralHero
Resend verification SMS
Important things to know