Send an SMS verification code in 5 minutes

One-Time Passcodes (OTPs) are a simple and effective way to verify someone’s phone number at sign up for ongoing login verification, preventing bots, ensuring deliverability to the right person, and more.

Phone number verification can decrease fraud and increase deliverability and trust. Luckily the Twilio Verify API makes it easy to send and check OTPs. Let’s see how to get started with Verify in under 5 minutes.

Prerequisites for sending One-Time Passcodes

Before you can send an OTP you’ll need:

Copy your Service SID (starts with VA):

Verify service in the twilio console showing service name, service SID, and code length setting

Quick Deploy a Twilio Verify application

Make sure you’re logged in to Twilio and head over to Twilio’s Code Exchange for the One-Time Passcode verification project and paste in your Verify Service SID:

twilio quick deploy steps 1 through 3, including the field to input your verify service sid and the submit button to deploy my application

Next, click “Deploy my application“. After a few seconds you should see a button to launch the live application: click that to go to your new Verify application.

deployed application screenshot with a form to select a channel, enter a phone number, and submit button to verify

Enter your phone number and hit Verify to test it out. It’s really that easy!

text message from shortcode 22395 with the message Your Example Verify Service verification code is 376429

How to use the Verify OTP Quick Deploy application

You might have noticed that this application doesn’t actually protect anything, but if you’re like me, you love having code to copy and modify. This application gives you the following building blocks:

You could use this as a basis for issuing a blue checkmark, sending secret messages to your loved ones, or as the basis to send and check verifications in your own application. The email channel requires a smidge more setup but all of the instructions are outlined in the documentation.

For a look at how to install and run this code with the Twilio CLI, check out this blog post or find the code on GitHub.

Check out these Quick Deploy projects for more inspiration:

I can’t wait to see what you build!


This content originally appeared on Twilio Blog and was authored by Kelley Robinson

One-Time Passcodes (OTPs) are a simple and effective way to verify someone's phone number at sign up for ongoing login verification, preventing bots, ensuring deliverability to the right person, and more.

Phone number verification can decrease fraud and increase deliverability and trust. Luckily the Twilio Verify API makes it easy to send and check OTPs. Let's see how to get started with Verify in under 5 minutes.

Prerequisites for sending One-Time Passcodes

Before you can send an OTP you'll need:

Copy your Service SID (starts with VA):

Verify service in the twilio console showing service name, service SID, and code length setting

Quick Deploy a Twilio Verify application

Make sure you're logged in to Twilio and head over to Twilio's Code Exchange for the One-Time Passcode verification project and paste in your Verify Service SID:

twilio quick deploy steps 1 through 3, including the field to input your verify service sid and the submit button to deploy my application

Next, click "Deploy my application". After a few seconds you should see a button to launch the live application: click that to go to your new Verify application.

deployed application screenshot with a form to select a channel, enter a phone number, and submit button to verify

Enter your phone number and hit Verify to test it out. It's really that easy!

text message from shortcode 22395 with the message Your Example Verify Service verification code is 376429

How to use the Verify OTP Quick Deploy application

You might have noticed that this application doesn't actually protect anything, but if you're like me, you love having code to copy and modify. This application gives you the following building blocks:

You could use this as a basis for issuing a blue checkmark, sending secret messages to your loved ones, or as the basis to send and check verifications in your own application. The email channel requires a smidge more setup but all of the instructions are outlined in the documentation.

For a look at how to install and run this code with the Twilio CLI, check out this blog post or find the code on GitHub.

Check out these Quick Deploy projects for more inspiration:

I can't wait to see what you build!


This content originally appeared on Twilio Blog and was authored by Kelley Robinson


Print Share Comment Cite Upload Translate Updates
APA

Kelley Robinson | Sciencx (2021-06-01T19:08:17+00:00) Send an SMS verification code in 5 minutes. Retrieved from https://www.scien.cx/2021/06/01/send-an-sms-verification-code-in-5-minutes/

MLA
" » Send an SMS verification code in 5 minutes." Kelley Robinson | Sciencx - Tuesday June 1, 2021, https://www.scien.cx/2021/06/01/send-an-sms-verification-code-in-5-minutes/
HARVARD
Kelley Robinson | Sciencx Tuesday June 1, 2021 » Send an SMS verification code in 5 minutes., viewed ,<https://www.scien.cx/2021/06/01/send-an-sms-verification-code-in-5-minutes/>
VANCOUVER
Kelley Robinson | Sciencx - » Send an SMS verification code in 5 minutes. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/06/01/send-an-sms-verification-code-in-5-minutes/
CHICAGO
" » Send an SMS verification code in 5 minutes." Kelley Robinson | Sciencx - Accessed . https://www.scien.cx/2021/06/01/send-an-sms-verification-code-in-5-minutes/
IEEE
" » Send an SMS verification code in 5 minutes." Kelley Robinson | Sciencx [Online]. Available: https://www.scien.cx/2021/06/01/send-an-sms-verification-code-in-5-minutes/. [Accessed: ]
rf:citation
» Send an SMS verification code in 5 minutes | Kelley Robinson | Sciencx | https://www.scien.cx/2021/06/01/send-an-sms-verification-code-in-5-minutes/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.