Use this API to send SMS with numerous functions to one or more recipients at the same time.
Please direct your request to the following URL:
In addition to authentication, the following parameters are required:
|Recipient number – possible are numbers and address book entries (groups and contacts). Multiple recipients can be specified separated by commas||0049171999999999|
|Text message||Up to 1520 characters|
(If more than 160 characters are used, the text is distributed over several SMSs, each SMS is calculated individually)
1 = parameter is activated
0 = parameter inaktive
|SMS type according to the SMS types on sms77.io. Please use the type Direct for important SMS. For Economy SMS, there may be technical reasons for delayed or missing transmission.||economy|
|Sender number. It may contain a maximum of 11 alphanumeric or 16 numeric characters.||Sender|
|If activated no SMS will be sent or calculated.||1|
|Date/time for time-delayed SMS||Optional Unix-Timestamp or format yyyy-mm-dd hh:ii|
|Switch off reload lock. This lock prevents the sending of the same SMS (text, type and recipient alike) within 180 seconds. You can deactivate this lock permanently in your login under Settings > SMS.|
|Transmission as Unicode SMS (Cyrillic, Arabic etc characters). The SMS length is thereby reduced to 70 characters. Please note that our Gatway recognizes the coding automatically. This parameter is therefore not necessary. You can, however, force a certain transmission method hereby. Only Direct SMS support unicode messages.|
|Send SMS as Flash SMS. These are displayed directly in the receiver’s display (only available with Direct SMS).|
|Only for Direct SMS. Individual User Data Header (UDH) of the SMS. If specified and variable |
|Forces the detection as a UTF8 character set and overrides automatic recognition of the API.|
|Specifies the validity period of the SMS in milliseconds. Only available with Direct SMS.|
|Shows numerous details to the sent SMS. Handy for debugging.|
|If this parameter is set, the ID of the SMS is output in the second line after the status code.|
|You can optionally set a separate label for each SMS so that you can assign it to your statistics. Allowed characters: a-z, A-Z, 0-9, .-_@|
|The output is more detailed in JSON format.|
|Enable Performance Tracking for URLs found in the message text|
In response to your request, you will receive a numeric return value and the Msg ID of the message sent. You can later use the ID to assign e.g status reports.
If you specify the parameter
details you will receive a lot of additional information – amongst other things the credit balance and the booked credit.
The return is done as a simple text with each value separated by
\n in a line.
Following return codes are possible:
|100||SMS was sent successfully|
|101||Transmission to at least one recipient failed|
|201||Sender invalid. A maximum of 11 alphanumeric or 16 numeric characters are allowed.|
|202||Recipient number invalid|
|402||Reload Lock – this SMS has already been sent within the last 180 seconds|
|403||Max. limit per day reached for this number|
|500||Too little credit available|
|600||Carrier delivery failed|
|900||Authentication failed. Please check user and api key|
|902||http API disabled for this account|
|903||Server IP is wrong|
|11||SMS carrier temporarily not available|
SMS support a very own 7-bit character set (GSM 0338), which contains some UTF-8 characters such as e.g. German umlauts, but not e.g. ó or Chinese, Arabic, Cyrillic characters, etc. For this, a unicode SMS would have to be sent, which is coded with 8 bits and therefore requires only 70 characters space per SMS. A Unicode SMS with e.g. 120 characters would hence cost twice as a normal SMS.
Here you can learn more about the specifications of the SMS character set and see the complete list of allowed characters in normal (not unicode) SMS: https://en.wikipedia.org/wiki/GSM_03.38#GSM_7-bit_default_alphabet_and_extension_table_of_3GPP_TS_23.038_.2F_GSM_03.38.
1. Simple sending of SMS
The call of the following URL sends an SMS with the content my first message as a Direct SMS with the sender sms77.io to the phone number 49160999999999:
The SMS has been transmitted successfully – the Msg ID is 123456789.
2. Debug mode with detailed output
This call doesn’t send an SMS due to the set parameter
debug, but it shows a lot of details about the message.
text: Test SMS
SMS type: direct
Flash SMS: off