Webhooks V1 (GET)

All the types of events and parameters that SMSPortal currently send using Webhooks V1.

When using Webhooks V1, your endpoint must process the received data as a GET request. Your endpoint can be created in any programming language and must be capable of reading data out of a URL, also known as the query string.

Delivery Statuses (DLRs)

The API will push a URL, similar to the following example, to your configured endpoint, containing information about the delivery status for a previously sent SMS.

https://*yourdomain*.com/sentitems.html?ID=322004213&EventID=32433326&Phonenumber=27830123456&DataType=SMS&Data=This+is+sample+text&SentDataTime=1%2FJan%2F2021+14%3A04%3A22&Status=DE-LIVRD&CustomerID=whatever

FieldDescription
IDThis is a unique value (integer) for this specific line item
EventIDThe eventID (long) is the same ID that was provided by the API for the original outgoing SMS batch
PhonenumberThe number the message was sent to
DataType‘SMS’ only
DataThe message sent
SentDataTimeThe status date and time in the format ‘dd/MMM/yyyy HH:mm:ss’
StatusThe status that the handset responded with. Please refer to the list of possible delivery statuses here.
CustomerIDThis is a value that was passed in when you sent your data via the API

Replies (MOs)

The API will push a URL, similar to the following example, to your configured endpoint, containing information about the reply received for a previously sent SMS.

https://*yourdomains*.com/replyitems.html?IncomingID=123456&Phonenumber=27821234567&IncomingData=Example+reply+message&IncomingDataTime=01%2fJan%2f2021+00%3a00%3a00&SentID=654321&EventID=987654&SentData=Original+outbound+message&SentDataTime=01%2fJan%2f2000+00%3a00%3a00&CustomerID=customerid&Campaign=&SentMessageGRPName=&SentMessageGRPDesc=&NumberValue1=&NumberValue2=&NumberValue3=&NumberValue4=&NumberValue5=&NumberValue6=

FieldDescription
IncomingIDThis is a unique value (integer) for this specific line item
PhonenumberThe number the message was sent to
IncomingDataData received in the reply
IncomingDataTimeWhen the message was received by the server in the format ‘dd/MMM/yyyy HH:mm:ss’
SentIDThis is a unique value (long) for this specific outgoing line item
EventIDThe eventID (long) is the same ID that was provided by the API for the original outgoing SMS batch
SentDataThe message content sent
SentDataTimeThe status date and time in the format ‘dd/MMM/yyyy HH:mm:ss’
CustomerIDThis optional variable can be an external user supplied reference
SentMessageGRPNameThe name of the group the data was stored in. This will only be populated if the message was generated from the website
SentMessageGRPDescThe description of the group the data was stored in. This will only be populated if the message was generated from the website
NumberValue1The Value1 data of the number. This will only be populated if the message was generated from the website.
NumberValue2The Value2 data of the number. This will only be populated if the message was generated from the website.
NumberValue3The Value3 data of the number. This will only be populated if the message was generated from the website.
NumberValue4The Value4 data of the number. This will only be populated if the message was generated from the website.
NumberValue5The Value5 data of the number. This will only be populated if the message was generated from the website.
NumberValue6The Value6 data of the number. This will only be populated if the message was generated from the website.

Short Code Replies

The API will push a URL, similar to the following example, to your configured endpoint, containing information about the shortcode messages that have been received.

https://*yourdomain*.com/shortcodeitems.html?ID=322004213&Message=Example+SC+Message&SC=12345&keyword=MatchedKeyword&mobile=27830123456

FieldDescription
IDThe short code message ID
MessageThe message sent
SCThe short code
KeywordThe matched keyword
MobileThe mobile number that sent the message

URL Tracking

The API will push a URL, similar to the following example, to your configured endpoint, containing tracking statistics for each shortened URL in a previously sent SMS.

https://*yourdomain*.com/urlclicks?SentID=3323212332&MsgNumTo=27710000000&CustomerRef=urls0001&Type=REDIRECT

FieldDescription
SentIDThis is a unique value (integer) for this specific outgoing line item
MsgNumToThe number the message was sent to
CustomerRefThis is the "CustomerID" value that was passed in when you sent your data via the API.
TypeThis will either be "REDIRECT" or "PREVIEW", depending on whether the URL was clicked or previewed.