...
You can use GET method to check if a ListSecret is already configured (if not, you should use POST method). As soon as you get the value of ListSecret you can start sending text messages (refer to next paragraph) with no restrictions. If you want to disable transactional APIs, you can use DELETE method, which can also be used, when followed by a POST method, to change the ListSecret value
...
How to send an SMS
Once you have the value of ListSecret, you can start sending text messages and authentication is no more required. The example below sends an SMS to number +393350000001
...
Expand |
---|
title | Click here for details about error codes... |
---|
|
This table shows possible HTTP response statuses that can be returned by the API methods and the corresponding error code provided by the application (inside the response). HTTP response code | Application Code | Description |
---|
200 | 0 | Ok. | 400 | 100 | No request found | 400 | 101 | Missing or empty parameters | 400 | 102 | ListGUID is not valid for the current account or list | 400 | 103 | ListSecret is not valid for the current account or list | 400 | 104 | SMS sender name is empty for list nr. N | 400 | 105 | Number or Prefix missing in the recipient | 400 | 106 | Recipient is invalid | 400 | 107 | Content too long | 403 | 201 | listID is not valid for the current account or list | 403 | 202 | ListGUID is not in a correct format | 403 | 203 | ListSecret is not in a correct format | 403 | 204 | Cannot send SMS to USA recipient | 403 | 205 | Sending denied: NO CREDITS | 403 | 206 | SMS number [recipient] is in optout state for list nr.[idList]. | 403 | 207 | Provided SMS sender isn't certified and can't be used to send messages | 403 | 250 | Access denied | 500 | 300 | Operation failed: a generic error occur | 500 | 301 | The message was sent but the statistics are incorrect due to an error | 500 | 302 | Error delivering message to [recipient] |
|
...