How to validate phone numbers in real time with Twilio Lookup

Our integration with Twilio's Lookup v2 API can help you validate phone numbers in real-time.

With this feature, phone numbers are checked before they hit your database, so your users will be given an opportunity to provide a valid number before the form is submitted.

How does the integration behave in Growform?

When a user leaves their phone number in a Twilio Lookup enabled field, Growform will silently check the phone number in the background.

If the number is invalid, the user will be prompted to enter a valid number, and will be prevented from proceeding before they do so:

If the number appears to be valid, the user will notice nothing, and the will be able to complete the form as normal:


You will also see the status of validated numbers in your "View leads" page.

How does Twilio validate the numbers?

Twilio performs various checks on the dial code, country code and area codes to help ensure your number is valid. This works particularly well on combatting false numbers, and can help significantly reduce false information.

Twilio Lookup is much more advanced than simply checking the correct length/format of the phone number, and is more reliable and up-to-date than regex pattern matching.

It isn't a verification product, so it can't ensure with 100% accuracy that a phone number belongs to the person filling in the form, or is definitely an active number - but that it appears to be valid, based on Twilio's research.


How do I enable Twilio Lookup in Growform?

First, you'll need to set up a Twilio account. This was free at the time of writing, although you may need to add a small amount of credit to activate your account.

Once you've signed up, go to your Twilio console.

You'll find your Account SID and Auth token at the bottom of the screen:


Copy each of these and paste them into the relevant boxes on your Growform account settings, below:

Don't forget to hit "Update" before leaving the page!

Finally, add a "Phone" field to your form, and enable the "Validate with Twilio" toggle, before saving your form:

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.