RapidAPI logo

SMSly - SMS to INDIA

FREEMIUM
By dreamsoft
Updated a month ago
Communication
6.6/10
Popularity Score
1064ms
Latency
97%
Success Rate

SMSly - SMS to INDIA API Documentation

Get 30 Free SMS/OTP every Month! India's #1 SMS Marketing and Alerts Platform now available @Mashape.

One click OTP verification | No setup costs | No license costs | You just pay a small fee per SMS | Instant Delivery of SMS | Secured SMS Routes | Priority SMS Gateway Routes | Live Delivery Report | All India & All Operator SMS Delivery | Easy integration with Organization Systems | Transactional SMS Services

For all of its features, SMSLy also offers extremely competitive pricing. We will be adding custom Sender ID support and other features to Mashape soon

View API Details
OTP
GETSend OTP
GETVerify OTP
SMS
GETSend SMS (Transactional)
GETDelivery Report
GETSend SMS Flash (Transactional)
GETSend OTP

Generate, Send and Get OTP. The best and easiest way of delivering OTPs is through the SMS channel. SMSly offers One-Time Passwords (OTPs) SMS delivery services which can be further used to authenticate a user or for account verification. You will be billed only if message is sent to the user

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
durationNUMBER
REQUIREDThe Period of valid OTP (in Seconds). (TTL)
digitsNUMBER
REQUIREDNumber of DIgits in OTP
phonenumberSTRING
REQUIRED
messagetemplateSTRING
REQUIREDWrite your own template containing OTP_VALUE. this OTP_VALUE will be replaced by the generated OTP. Example: OTP_VALUE is your App verification code.
durationNUMBER
REQUIREDThe Period of valid OTP (in Seconds). (TTL)
digitsNUMBER
REQUIREDNumber of Digits in OTP
messageSTRING
REQUIREDWrite your own template containing OTP_VALUE. this OTP_VALUE will be replaced by the generated OTP. Example: OTP_VALUE is your App verification code.
Optional Parameters
getOTPSTRING
OPTIONALGet generated OTP in response of the API
Code Snippet
unirest.get("https://gurubrahma-smsly-sms-to-india-v1.p.rapidapi.com/otp/generate/99020XXXXX?getOTP=true&duration=100&digits=4&message=Your+verification+code+is+OTP_VALUE")
.header("X-RapidAPI-Host", "gurubrahma-smsly-sms-to-india-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://gurubrahma-smsly-sms-to-india-v1.p.rapidapi.com/otp/generate/{phonenumber}
Request Method: GET
Response Headers
Response Body
Log inSign up

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.get("https://gurubrahma-smsly-sms-to-india-v1.p.rapidapi.com/otp/generate/99020XXXXX?getOTP=true&duration=100&digits=4&message=Your+verification+code+is+OTP_VALUE")
.header("X-RapidAPI-Host", "gurubrahma-smsly-sms-to-india-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication