NAV
Shell

SMS Gateway API

Welcome to the SMS Gateway API! You can use our API to send SMS’s from the device you have registered in your account.

For now we have examples in Shell but we will have more information soon. You can view code examples in the dark area to the right, and you will be able to switch the programming language of the examples with the tabs in the top right.

Prerequisites

To access this API you need a API Key that you can get from the Dashboard.

The process is the following:

  1. Go to the Dashboard.
  2. Access with your Gmail Account.
  3. Link your device.
    1. Install the Android App from the Play Store.
    2. Agree and start the linking process in the Dashboard.
    3. Go to your email.
    4. Copy the code from your email.
    5. Paste the code in the app.
  4. Connect your App: Your app have to be OPEN to send the sms’s.
    1. Open the App.
    2. Click in the “Link” button to start sending messages.
  5. Once all the previous steps are finished you can gatther the API Key from the Dashboard.
  6. Consume this API.
  7. Send all your SMS’s!!!.º

Send

Send an SMS’s

curl \
    -X POST "http://sms-automatic-sending.appspot.com/api/send?apikey=APIKEY" \
    -H "Content-Type: application/json" \
    -d '
    {
    	"Number":"5555555555",
    	"Text":"Your message"
    }
    '

The above command returns the following:

Published a message; msg ID: 154147390491302

This end poing enqueue a message.

HTTP Request

POST http://sms-automatic-sending.appspot.com/api/send

Query Parameters

Parameter Description
apikey Your API Key from the Dashboard

Errors

The API errors are the folloing:

Error Code Meaning
001 Missing parameters – There is not enought parameters sendend to the Web Service
002 Problem accessing the ApiKey
003 API key doesn’t exist
004 Problem accessing the user
005 Problem Gathering previous messages
006 Ever Quota – You have exceeded your maximum amount of SMS’s allowed for this user
007 Problem with the attached json body of the request
008 Conecting to the Channel
009 Problem with the attached json body of the request
010 Conecting to the Channel