• Home
  • >
  • One-Time Passcode Verification (OTP)

One-Time Passcode Verification (OTP)

By Twilio

  • SMS
  • Voice
  • Twilio
  • Host on Twilio
  • Applications

This app will show you an example of how to build a one-time passcode (OTP) experience via SMS or Voice.

How it works:

  1. User enters their phone number to login
  2. App generates an authentication token
  3. App sends the token via SMS or Voice to user’s phone number
  4. User enters the correct token
  5. App verifies the token and the user is allowed to complete the login action

Step 1:

Step 2: You need an API key to get started

Get a free API key

Step 3: Set up the code sample locally



Read setup instructions

Step 4:Questions about scaling, pricing, or infrastructure? Talk to an expert

Don't see what you want?

There was an issue loading the page.

Please try again in some time.