RapidAPI logo

Infobip SMS

FREE
By nmalisic
Updated 4 months ago
Business
0.9/10
Popularity Score
651ms
Latency
-
Success Rate

Infobip SMS API Documentation

Quickly integrate SMS messaging services into various solutions by using Infobip HTTP application programming interface (HTTP API). The HTTP API can be used for sending SMS messages, collecting delivery reports, making Number Context (number validation) requests and receiving inbound SMS messages sent from mobile phones.

View API Details
Send SMS
POSTSingle textual message
GETDelivery reports
GETSent messages logs
POSTMultiple textual message
Number context
POSTSynchronous request
POSTAsynchronous request
POSTSingle textual message

This method allows you to send a single textual message to one or more destination addresses. http://dev.infobip.com/docs/send-single-sms

Authorization:

We support basic authorization using a username and password with Base64 encoding.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AuthorizationBASIC
REQUIREDWe support basic authorization using a username and password with Base64 encoding.
Required Parameters
Single SMSJSON_STRING
REQUIREDSingle textual message: http://dev.infobip.com/docs/send-single-sms
Code Snippet
unirest.post("https://infobip.p.rapidapi.com/sms/1/text/single")
.header("X-RapidAPI-Host", "infobip.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"from":"InfoSMS","to":"41793026727","text":"Test SMS."})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://infobip.p.rapidapi.com/sms/1/text/single
Request Method: POST
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.post("https://infobip.p.rapidapi.com/sms/1/text/single")
.header("X-RapidAPI-Host", "infobip.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"from":"InfoSMS","to":"41793026727","text":"Test SMS."})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication