HTTP SMS API

The HTTP SMS API implemented by Ozeki 10 SMS Gateway provides a great, easy to use interface, that allows software developers to send and receive SMS messages. The following pages give you information on how to use this technology, with several free to use / free to customize examples.

Send SMS

To send an SMS message using the HTTP API you need to issue an HTTP request (Figure 1). You can use the HTTP GET or the HTTP POST method, when you send this request to Ozeki 10 SMS Gateway. After the request is sent, you will receive a response.

send an sms messages through the built in webserver
Figure 1 - Send an SMS messages through the built in webserver

To send an SMS messages you need to follow a few simple steps. First you need to create an HTTP API user, then you need to write an HTTP request, then you need to submit your request to the SMS Gateway.

Make sure Ozeki 10 SMS Gateway is installed
Create an HTTP API user
Write an HTTP request to send the SMS
Write an HTTP request to send many SMS messages

HTTP SMS API examples

How to send SMS from C#
How to send SMS from Java
How to send SMS from Python
How to send SMS from Ruby
How to send SMS from Perl
How to send SMS from PHP
How to send SMS from Chrome

Receive SMS

When an SMS message arrives to the Ozeki SMS gateway, it is stored in a message folder, called inbox. If you want to check incoming SMS messages one of your options is to download the contents of the inbox folder using HTTP. The following URL gives more information about how to download the contents of a message folder:

How to download incoming SMS messages

How to send a reply SMS

If you want to process incoming SMS messages as soon as they arrive to your system, you may want to setup an HTTP Client user in Ozeki SMS Gateway. This HTTP Client user can forward incoming messages to your web application(s) as HTTP GET or HTTP POST requests (Figure 2).

http post on incoming sms
Figure 2 - HTTP Post on incoming SMS

The following webpage gives information on how to configure your SMS gateway to forward your SMS messages to an external web application:

HTTP Client user

Note that you can write this external web application in any programming language. We have examples for PHP SMS processing, ASP SMS processing and Java SMS processing.

Your web application can also return a response SMS message in the HTTP response. This response SMS messages will be forwarded back to the recipient handset. The following URL has information about the proper response format your web application can use:

HTTP response format for returning SMS response(s)

Summary

This article provides information about the Ozeki HTTP SMS API. The API offers an interface for the software developers to manage SMS messages. The API makes implementing SMS communication to project easy. This means that any software your organization develops, can have access to the SMS traffic. This will result in versatile and useful softwares in the field of communication.

Make sure you don’t finish the work here. Visit the Ozeki website to learn more about SMS technology. It is a good idea to visit the article about our C# SMS API or our SQL SMS API. You will find key information about the API in these articles.

To use these API’s, you need to start using the Ozeki SMS Gateway. Download the gateway software and start developing now!