Apifonica

FREE
By apifonica
Updated 4 months ago
1.2/10
Popularity Score
112ms
Latency
-
Success Rate

Apifonica API Documentation

A single API for SMS, social messaging, and voice communication, with free inbound calls and messages. View outbound rates: https://www.apifonica.com/pricing/sms Sign up for a free account: https://account.apifonica.com/register/

View API Details
Messaging (SMS, Facebook, Telegram)
POSTSend message
GETGet message info
Voice
POSTMake a call
GETGet call info
POSTCall conferencing
Phone numbers
POSTAcquire a number
GETList of phone numbers by country
PUTConfigure phone number properties
POSTSend message

Send a message via SMS, Facebook messenger, or Telegram

Authorization:

Enter your Apifonica Account SID as a username, and your Authtoken as a password. Create a free Apifonica account at https://account.apifonica.com/register to get the login credentials.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AuthorizationBASIC
REQUIREDEnter your Apifonica Account SID as a username, and your Authtoken as a password. Create a free Apifonica account at https://account.apifonica.com/register to get the login credentials.
Content-TypeSTRING
OPTIONAL
Required Parameters
accountsidSTRING
REQUIREDYour Apifonica account SID. Create a free account at https://account.apifonica.com/register/ to get the login credentials.
Send message - RequestJSON_STRING
REQUIRED
Code Snippet
unirest.post("https://apifonica-apifonica-v1.p.rapidapi.com/accounts/{accountsid}/messages")
.header("X-RapidAPI-Host", "apifonica-apifonica-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"from":"35315313424","to":"447860041755","text":"This message is sent via Apifonica API","channel":"telegram","type":"gif","url":"https://media.giphy.com/media/ya4eevXU490Iw/giphy.gif","tag":"trial-expires"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://apifonica-apifonica-v1.p.rapidapi.com/accounts/{accountsid}/messages
Request Method: POST
Response Headers
Response Body

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://apifonica-apifonica-v1.p.rapidapi.com/accounts/{accountsid}/messages")
.header("X-RapidAPI-Host", "apifonica-apifonica-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"from":"35315313424","to":"447860041755","text":"This message is sent via Apifonica API","channel":"telegram","type":"gif","url":"https://media.giphy.com/media/ya4eevXU490Iw/giphy.gif","tag":"trial-expires"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication