RapidAPI logo

TCS Cloud Messaging

PAID
By cmc_messaging
Updated 4 months ago
Devices
-/10
Popularity Score
-
Latency
-
Success Rate

TCS Cloud Messaging API Documentation

TCS’ Cloud Messaging Center REST API allows developers to easily integrate SMS/Text messaging into their applications and web services. We offer two-way text messaging coverage for all US wireless carriers. The Cloud Messaging Center (CMC) REST API provides a set of methods that are called using https or http, to perform messaging (SMS) features such as… • Sending a message • Getting delivery receipts • Replying to a message • Creating contacts and groups • Scheduling messages

View API Details
Messaging
POSTSend Message
GETDelivery Receipts
GETReplies
GETProgram Replies with Keyword
GETDelivery Notification
Contacts
GETRetrieve contact(s)
DELETEDelete contact(s)
POSTAdd contact
POSTAdd multiple contacts
PUTUpdate contact
PUTUpdate multiple contacts
Groups
POSTAdd group
GETRetrieve group
DELETEDelete group
DELETEDelete all groups
POSTAdd group members
DELETEDelete group members
Scheduling
POSTSchedule an event
DELETEDelete Scheduled event
DELETEDelete all scheduled events
POSTSend Message

Allows authorized users to send messages to handsets and mobile devices using SMS.

Authorization:

Sign up at https://www.cloudmessagingcenter.com/restsignup/ to get REST authentication credentials via email

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AuthorizationBASIC
REQUIREDSign up at https://www.cloudmessagingcenter.com/restsignup/ to get REST authentication credentials via email
Content-TypeSTRING
REQUIREDThe Content-Type entity-header field indicates the media type of the entity-body.
AcceptSTRING
REQUIREDThe Accept request-header field can be used to specify certain media types which are acceptable for the response.
X-Requested-BySTRING
REQUIREDCustom header for CSRF protection
Required Parameters
send messageJSON_STRING
REQUIREDsend message model
Code Snippet
unirest.post("https://sms.p.rapidapi.com/rest/v1/messages")
.header("X-RapidAPI-Host", "sms.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.header("Accept", "application/json")
.header("X-Requested-By", "12345")
.send({"sendmessage":{"to":["16502073583"],"from":"scsrest","message":"Test message from mashape.","subject":"Test message."}})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://sms.p.rapidapi.com/rest/v1/messages
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://sms.p.rapidapi.com/rest/v1/messages")
.header("X-RapidAPI-Host", "sms.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.header("Accept", "application/json")
.header("X-Requested-By", "12345")
.send({"sendmessage":{"to":["16502073583"],"from":"scsrest","message":"Test message from mashape.","subject":"Test message."}})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication