Verify API

Phone number verification built for developers
Java logo
JavaScript logo
PHP logo
Python logo
Ruby logo
C# logo

Request phone verification

Reduce fraudulent activity by validating that a user account is associated with a real person who has access to a valid phone number.

View Docs

 

 

// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
// DANGER! This is insecure. See http://twil.io/secure
const accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
const authToken = "your_auth_token";
const client = require("twilio")(accountSid, authToken);

client.verify
  .services("VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
  .verifications.create({ to: "+15017122661", channel: "sms" })
  .then((verification) => console.log(verification.status));

Verify the phone verification code

Reduce fraudulent activity by validating that a user account is associated with a real person who has access to a valid phone number.

View Docs

 

 

 

 

// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
// DANGER! This is insecure. See http://twil.io/secure
const accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
const authToken = "your_auth_token";
const client = require("twilio")(accountSid, authToken);

client.verify
  .services("VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
  .verificationChecks.create({ to: "+15017122661", code: "123456" })
  .then((verification_check) => console.log(verification_check.status));

THE TWILIO ADVANTAGE

Communicate reliably

Experience a 99.95% uptime SLA made possible with automated failover and zero maintenance windows.

Operate at scale

Extend the same app you write once to new markets with configurable features for localization and compliance.

Many channels

Use the same platform you know for voice, SMS, video, chat, two-factor authentication, and more.

No shenanigans

Get to market faster with pay‑as‑you‑go pricing, free support, and the freedom to scale up or down without contracts.