An easy and convenient way to integrate our service in your application. You can use the API also for a two-factor authentication (2FA) or a one-time password (OTP).
An API can be used in many ways. Below we will give you a small selection of examples: may they inspire you.
Please note that these are just a few examples. There are many more options to integrate our API in your system/software/calendar etc. Please contact our team for further information.
Our API offers an opportunity to configure automated SMS notifications directly from any software, CRM or application.
For the API server communication, a HTTP protocol is used, including secure SSL support. Requests are sent using GET and POST methods, and the server responds in either XML or JSON format, depending on your preference.
In order to be able to execute API requests, you need to enable and configure this function in the Mobizon Control Panel:
After enabling the access, you will see your API Key. Use this key in your application in order to execute API requests.
Please note: Your private key should not be written down or passed on to other persons unless necessary as anyone with knowledge of your key can perform any operations with your account via API.In order to ensure the security of your account, it is recommended to specify a list of IP addresses assigned to your servers allowed to access the API. List your servers’ IP addresses in the List of IP addresses for access to the API field, separated by comma, e.g.: 192.12.34.56,23.45.67.89,123.123.123.123.
Please note: If this field is left empty, API access is allowed from any IP address, which could be a security threat.You can change the API key by clicking the Update API key button next to the key. All applications using the old key would not be able to access the API anymore. You will need to replace the old key with the new one in the configuration of your applications.
All API requests are performed via the address: https://api.mobizon.gmbh/service/
Please note: You can choose to use HTTP or HTTPS protocol for your requests. We recommend sending all requests via secure HTTPS protocol, however if your software does not support creation of secure HTTP requests, you can use the non-encrypted HTTP protocol. In this case, the requests should be directed to http://api.mobizon.gmbh/service/.Each API request must contain at least the module name, method, and API key:
https://api.mobizon.gmbh/service/user/getownbalance?apiKey=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
where:and additional parameters are listed after the question mark; in this case there is only one additional parameter, apiKey.
Please note that there is no slash (/) before the question mark, as such a request would be invalid:
https://api.mobizon.gmbh/service/user/getownbalance/?apiKey=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
https://api.mobizon.gmbh/service/user/getownbalance?output=json&api=v1&apiKey=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
https://api.mobizon.gmbh/service/user/getownbalance?output=json&api=v1&apiKey=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
The server response is a string in the chosen data format (XML or JSON) containing an object that comprises three elements: code, data and message. Here are some response examples in JSON format:
{
"code":0,
"data":{
"balance":"4043.0656",
"currency":"EUR"
},
"message":""
}
A response in XML format looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<code>0</code>
<data>
<balance>123.4567</balance>
<currency>EUR</currency>
</data>
<message></message>
</root>
where:
The result returned by an API call always contains a code field with a numeric value indicating the request processing result:
You can use the official MobizonApi PHP client. Usage examples.
Another option is connecting this module via Composer.
If you have your own working examples, please send them to us, and we will be glad to post them on the website. Just send your link or code example to support@mobizon.gmbh
If your application does not support POST requests, use GET requests in the following format:
https://api.mobizon.gmbh/service/message/sendsmsmessage?recipient=NNNNNNNNNNN&from=PPPPPPP&text=Message+text+here%21&apiKey=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
where:
Prices are listed in EUR for the current time and depend on your plan. All prices exclude 19% VAT.
Destination country: Germany, All mobile carriers.
€0.068 per SMS
You are starting
€0.067 per SMS
You are a smaller company or a start up with a clear mission
€0.066 per SMS
You already have a big customer base
€0.064 per SMS
You are an established brand
Test all of our products
30 days for free