Call us: +45 89 93 66 27

With the HTTP(s) API it is possible to get the status of a message sent. It is possible to get new status messages in a time-interval.

Call https://api.suresms.com/script/v2/GetStatus.aspx with the following parameters:

Login, password and messageid or startutcdatetime and endutcdatetime

Login Your SureSMS account login Mandatory
Password  Your SureSMS account password Mandatory
Messageid The message id of the message, you want to get status on. This must be the same unique message id, as you submittet as the message was being sent. Optional
StartUtcDateTime If you want to know if there are any new status messages, use this parameter to set a startdatetime (in UTC) Optional
EndUtcDateTime If you use StartUtcDateTime then this value is mandatory. Optional

Note: The parameters are NOT case senstive.

Example :

If your SureSMS account is "XXX” and your code is 8r7e3.

If you want to know the status of a message with id 435345, you must write this in your browser:

https://api.suresms.com/script/v2/GetStatus.aspx?login=XXX&password=8r7e3&messageid=435345

If you want to know all new status messages from say 24th of december 2000@13:00 UTC to 25th of december 2000@13:00 you should write this query:

https://api.suresms.com/script/v2/GetStatus.aspx?login=XXX&password=8r7e3&startutcdatetime=2000-12-24T13:00:00&endutcdatetime=2000-12-24T13:00:00

Result

No matter if you use the first or last option, the result will be returned in this format: MessageStatus