Incoming SMS messages will be sent to a configured callback URL via HTTP POST method with the following parameters:
PARAMETER | FORMAT | DESCRIPTION |
messageId | string | An unique ID associated with this SMS message. |
recipient | integer | The recipient of this SMS message |
originator | integer | The sender for this message |
udh | string | User data header. Will be only present if message is concatenated |
message | string | Body of the SMS message |
messageTimestamp | string | The creation data and time of the message in RFC33339 format (Y-m-d\TH:i:sP) |
For the purpose of illustration, here’s a sample callback request using HTTP GET method:
https://your_domain.com/your_script
?messageId=43BC206B4610B25F41E7C3E050035473
&recipient=88888
&originator=6591234567
&message=hello
&messageTimestamp=2017-01-03T14:31:28+08:00
#Note: You platform should respond with HTTP Status Code 200 (OK). Otherwise the same message will be delivered again.