RapidAPI logo

Telesign SMS Verify

FREEMIUM
By telesignOfficial
Updated 5 months ago
SMS
8.4/10
Popularity Score
1202ms
Latency
74%
Success Rate

Telesign SMS Verify API Documentation

Delivers patented phone-based verification and two-factor authentication using a time-based, one-time passcode sent over SMS

View API Details
POSTSend Verification Code
POSTSend Verification Code
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
phoneNumberSTRING
REQUIREDYour test phone number with no special characters or spaces.
verifyCodeNUMBER
REQUIRED
Optional Parameters
appNameSTRING
OPTIONAL
Code Snippet
unirest.post("https://telesign-telesign-send-sms-verification-code-v1.p.rapidapi.com/sms-verification-code")
.header("X-RapidAPI-Host", "telesign-telesign-send-sms-verification-code-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://telesign-telesign-send-sms-verification-code-v1.p.rapidapi.com/sms-verification-code
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://telesign-telesign-send-sms-verification-code-v1.p.rapidapi.com/sms-verification-code")
.header("X-RapidAPI-Host", "telesign-telesign-send-sms-verification-code-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication