Twilio Verify Phone Number

By twilioOfficial
Updated a month ago
Popularity Score
Success Rate

Twilio Verify Phone Number API Documentation

As part of Twilio's account security offerings, the Twilio Verify API makes it simple to add phone verification to your web application. It supports codes sent via voice and SMS.

View API Details
Verification Check
POSTCheck a Verification
Service Rate Limits
GETList all Rate Limits
POSTUpdate a Rate Limit
DELETEDelete a Rate Limit
POSTCreate a Rate Limit
GETFetch a Rate Limit
POSTStart a New Verification
POSTUpdate a Verifications Status
GETFetch a Verification
GETFetch a Service
POSTCreate a Verification Service
DELETEDelete a Service
GETList all Services
POSTUpdate a Service
Service Rate Limit Buckets
POSTUpdate a Bucket
GETFetch a Bucket
POSTCreate a Bucket
GETList all Buckets
DELETEDelete a Bucket
POSTStart a New Verification

To verify a user's phone number, you will start by requesting to send a verification code to their device.

Header Parameters
Required Parameters
REQUIREDThe phone number to verify.
REQUIREDThe verification method to use. Can be: sms or call.
REQUIREDThe SID of the verification Service to create the resource under.
Optional Parameters
OPTIONALThe locale to use for the verification SMS or call. Can be: af, ar, ca, cs, da, de, el, en, es, fi, fr, he, hi, hr, hu, id, it, ja, ko, ms, nb, nl, pl, pt, pr-BR, ro, ru, sv, th, tl, tr, vi, zh, zh-CN, or zh-HK.
OPTIONALThe amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled.
OPTIONALThe payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled.
OPTIONALA pre-generated code to use for verification. The code can be between 4 and 10 characters, inclusive.
OPTIONALThe digits to send after a phone call is answered, for example, to dial an extension. For more information, see the Programmable Voice documentation of sendDigits.
OPTIONALThe custom key-value pairs of Programmable Rate Limits. Keys should be the unique_name configured while creating you Rate Limit along with the associated values for each particular request. You may include multiple Rate Limit values in each request. Ex/ {"unique_name":"RKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"}
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication