We have a new feature for you. When you send your SMS using our new SMS API, you can provide your own Message ID. Later, we will send you the same ID back with delivery reports. This way you no longer need to store our Message ID in your system to associate the delivery reports with your messages. And you can also use this feature with mass SMS.
If you have a Send individual SMS messages, Then you can use the optional parameter „callback_data“ to pass your ID:
{
"text": "string",
"sender_id": "string",
"phone": "string",
"delivery_at": 0,
"source": 0,
"is_unicode": null,
"callback_data": "string",
"service_code": "string"
}
Later we will send this value in Return of the delivery report To you. So you are not required to use our message ID uuid.
And you can also use the callback_data ID for mass SMS messages. If you have your Create a group for mass SMS sending and then the Importing phone numbers, Simply add the corresponding value to each number that you want to use as the callback_data ID:
curl -X POST https://api.lox24.eu/groups/7116/phones/batch' \
-H 'Content-Type: application/json' \
-H 'X-LOX24-AUTH-TOKEN: e3f3a759b6677959b6ebfcxxxxxxxxxx'
-H 'X-LOX24-CLIENT-ID: 1234567' \
-H 'Accept: application/json' \
-d [{
'phone': "+4912345678",
"callback_data": "123456"
},
{
"phone": "+4112345678",
"callback_data": "987654"
}]"
If you now send your mass SMS via API or the web interface, we will then send you the delivery reports for each individual recipient, including the ID you assigned. This applies both when we send the delivery reports via GET to a script on your system, and for the delivery reports via email.
