Skip to contentSkip to navigationSkip to topbar

Verify

Fight fraud and protect user accounts. Quickly verify users via SMS, Passkeys, Silent Network Auth, Voice, WhatsApp, TOTP, Push, Silent Device Approval, and Email.

Create your first verification

Take the next steps with Verify

Get Started
1
Twilio servers
2
Your app

curl -X POST \
https://verify.twilio.com/v2/Services/VAxxxxxxxxxxxxxxxxx/Verifications \
--data-urlencode "To=+19876543210" \
--data-urlencode "Channel=sms"

View complete examples
3
Your verification code is: 915316
RECIPIENT'S DEVICE

Take the next steps with Verify


Get Started

With just a few lines of code, you'll send your first verification token to a user's device with the Verify API. Add a few more and you can check the verification token. Create and manage Verification Services in the Console or with the API. Choose the channel and your programming language to get started.

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_21
// Download the helper library from https://www.twilio.com/docs/node/install
_21
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_21
_21
// Find your Account SID and Auth Token at twilio.com/console
_21
// and set the environment variables. See http://twil.io/secure
_21
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_21
const authToken = process.env.TWILIO_AUTH_TOKEN;
_21
const client = twilio(accountSid, authToken);
_21
_21
async function createVerification() {
_21
const verification = await client.verify.v2
_21
.services("VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_21
.verifications.create({
_21
channel: "sms",
_21
to: "+15017122661",
_21
});
_21
_21
console.log(verification.sid);
_21
}
_21
_21
createVerification();

Ahoy, World

Create your first verification. Jump to a Quickstart for the channel of your choice:


API Reference

You have customers to protect. Let's get verification to production.

These short tutorials, sample apps, and API reference docs will get you up and running with a variety of channels.

Verify API Reference

Best Practices & More

Verify solves complex development challenges so you can focus on the code that counts. From carrier regulations to device-specific capabilities, Verify spots and solves for mission critical communication variables, ensuring your message is always delivered.


Secure your users' accounts with our suite of User Authentication & Identity products.

Lookup

Reduce undeliverable messages, identify local-friendly number formats, do CNAM lookups, and protect yourself from fraud with Twilio Lookup.

Product documentation

Rate this page: