RapidAPI logo

46elks

FREE
By 46elks
Updated 4 months ago
Tools
-/10
Popularity Score
-
Latency
-
Success Rate

46elks API Documentation

Receive & send SMS messages, allocate phone numbers, control incoming phone calls, build IVRs, connect calls and create automated outgoing phone calls. Simply Voice, SMS & MMS in one easy API. Visit www.46elks.com for support and account creation.

View API Details
SMS
POSTSend a new SMS
GETSMS History
Calls
GETCall History
GETHandle Phonecalls
Account
POSTNumber Allocation
POSTNumber Modification and Deallocation
POSTAdding a Subaccount
POSTUpdating a Subbaccount
POSTSend a new SMS

To send a new SMS simply POST to the /SMS resource. The "from" number can either be one of your previously allocated mobile phone numbers or an arbitrary alphanumeric string of at most 11 characters.

Authorization:

SECURITY WARNING! To make sure the API username and password is safe we recommend that you use the base url given in the dashboard, usually https://api.46elks.com/a1/, instead of the mashape.com URL. Your API username and API password is found on the dashboard. To get access to the API register at www.46elks.com.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AuthorizationBASIC
REQUIREDSECURITY WARNING! To make sure the API username and password is safe we recommend that you use the base url given in the dashboard, usually https://api.46elks.com/a1/, instead of the mashape.com URL. Your API username and API password is found on the dashboard. To get access to the API register at www.46elks.com.
Required Parameters
fromSTRING
REQUIREDSender information for the receiver a 46elks account number +46766861001 or a text string for example "MyService".
messageSTRING
REQUIREDYour message text, texts longer than 160 cars will be sent and invoiced as multiple SMS.
toSTRING
REQUIREDThe phone number to send the message to in international standard example: +46704508449
Optional Parameters
whendeliveredSTRING
OPTIONALOptional delivery reports allow you to track invidual SMS messages you send, to find out if the have reached the destination. To activate delivery reports simply add your callback URL to the POST variable "whendelivered" when you send an SMS.
Code Snippet
unirest.post("https://46elks-46elks.p.rapidapi.com/a1/SMS")
.header("X-RapidAPI-Host", "46elks-46elks.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://46elks-46elks.p.rapidapi.com/a1/SMS
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://46elks-46elks.p.rapidapi.com/a1/SMS")
.header("X-RapidAPI-Host", "46elks-46elks.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