Send SMS through MSG91

PAID
By akeshMSG91
Updated 2 months ago
Communication
-/10
Popularity Score
-
Latency
-
Success Rate

Send SMS through MSG91 API Documentation

This command can be used to send text messages to either individual numbers or entire contact groups.

View API Details
POSTQuery parameters
POSTQuery parameters

Required to fill these endpoints in order to send SMS

Authorization:

In MSG91 panel in API section you will get authkey

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
senderSTRING
REQUIREDReceiver will see this as sender's ID.
mobilesSTRING
REQUIREDEnter mobile number with country code, Don't include '+'
countrySTRING
REQUIRED0 for international,1 for USA, 91 for India.
messageSTRING
REQUIREDMessage content to send
routeNUMBER
REQUIRED If your operator supports multiple routes then give one route name. Eg: route=1 for promotional, route=4 for transactional SMS.
authkeyQUERY
REQUIREDYour Authentication key
Optional Parameters
afterminutesSTRING
OPTIONALTime in minutes after which you want to send sms.
schtimeSTRING
OPTIONALWhen you want to schedule the SMS to be sent. Time format could be of your choice you can use Y-m-d h:i:s (2020-01-01 10:10:00) Or Y/m/d h:i:s (2020/01/01 10:10:00) Or you can send unix timestamp (1577873400)
campaignSTRING
OPTIONALCampaign name you wish to create.
responseSTRING
OPTIONAL By default you will get response in string format but you want to receive in other format (json,xml) then set this parameter. for example: &response=json or &response=xml
flashBOOLEAN
OPTIONALFor sending flash message pass 1 else 0
unicodeBOOLEAN
OPTIONALFor message other than english pass 1
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication