HTTP API - Get Started
The HTTP API allows you to send and receive SMS messages through your Ozeki SMS Gateway with the help of HTTP requests. Requests can be done using both the GET and POST HTTP methods and you can use http or https, depending on your configuration.
For each HTTP request, you must include a set of mandatory parameters. These are: action, username and password. The action defines the command you wish to execute and the username and password identify you. To How to create an HTTP API user guide gives you information about how to create a username and password.
Example HTTP request:
Example HTTP response:
StatusCode: 200, ReasonPhrase: 'OK'
You are advised to try this example with the HTTP API Tester which is a GUI interface for Ozeki SMS Gateway API testing. You can find the HTTP API Tester tutorial here.
Mandatory parameters in every HTTP API request
|action||The name of the action.||sendmessage, receivemessage,||action=sendmessage||M|
|username||Specifies the username. The username and password parameters are used to authenticate the user. When you send an message it will be sent in the name of the authenticated user. The value must be URL encoced.||string value||username=admin||M|
|password||Specifies the password. The username and password parameters are used to authenticate the user. When you send an message it will be sent in the name of the authenticated user. The value must be URL encoced.||
minimum length: 6 characters
* M = Mandatory parameter, O = Optional parameter
To sum it up
In the article above, we provided some information about the HTTP API. Using an HTTP API means that you can manage your SMS messages with HTTP requests. The Ozeki SMS Gateway is a crucial element of this system. Using HTTP requests to send and receive SMS messages means that you can build a system that can send and receive SMS messages using a web browser. This will make information flow much faster in your organization.
The first step of developing a solution that can send and receive messages using a web page, is to download the Ozeki SMS Gateway.