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:
- Go to the Dashboard.
- Access with your Gmail Account.
- Link your device.
- Install the Android App from the Play Store.
- Agree and start the linking process in the Dashboard.
- Go to your email.
- Copy the code from your email.
- Paste the code in the app.
- Connect your App: Your app have to be OPEN to send the sms’s.
- Open the App.
- Click in the “Link” button to start sending messages.
- Once all the previous steps are finished you can gatther the API Key from the Dashboard.
- Consume this API.
- 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 |