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"
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(link takes you to an external page) or with the API. Choose the channel and your programming language to get started.

1
// Download the helper library from https://www.twilio.com/docs/node/install
2
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
3
4
// Find your Account SID and Auth Token at twilio.com/console
5
// and set the environment variables. See http://twil.io/secure
6
const accountSid = process.env.TWILIO_ACCOUNT_SID;
7
const authToken = process.env.TWILIO_AUTH_TOKEN;
8
const client = twilio(accountSid, authToken);
9
10
async function createVerification() {
11
const verification = await client.verify.v2
12
.services("VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
13
.verifications.create({
14
channel: "sms",
15
to: "+15017122661",
16
});
17
18
console.log(verification.sid);
19
}
20
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.


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
Lookup

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

Product documentation

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.