Skip to content

SMS Delivery Report (DLR)

POST

The event ‘sms.delivery’ sends on dlr_code changes. This allows you to find out whether an SMS has been successfully delivered, rejected, or is still being delivered.

Each SMS has a delivery report code Webhook notifications

object
id

Unique entity UUID

string
/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
api_version

Version of the notification webhook data structure

string
Example
2022-05-25
name

Webhook’s event name

string
created_at

Timestamp when the entity was added to the system by the user

integer
attempt_total

Total number of notification webhook delivery attempts

integer
>= 1 <= 4
Example
4
attempt_number

Current webhook notification attempt number

integer
>= 1
Example
1
data

Event-specific data payload

object
notification_task_id

Notification task identifier (request identifier)

string format: uuid
Example
3378de83-de66-4de8-9d29-2b10d41bb641
name
Allowed values: sms.delivery
data

Data for sms.delivery and sms.delivery.dryrun events

object
id

Unique entity UUID

string
/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
key_id

API key identifier

integer
>= 1
dlr_code
integer
Allowed values: 0 1 2 4 8 16
Example
1
status_code

Status of the sms. For more info see SMS status codes

integer
Allowed values: 0 100 208 400 410 2000 3000 5000 6000
callback_data

String which will be send back to your endpoint. E.g. it can be usable to pass your system message id.

string | null
<= 36 characters
Examples

SMS Delivery Event

Event sent when SMS delivery status changes

{
"id": "a3cd6e19-8af2-498d-ad07-c7840f1b4ac8",
"api_version": "2022-05-25",
"name": "sms.delivery",
"created_at": 1653378603,
"attempt_total": 4,
"attempt_number": 1,
"data": {
"id": "d6c12ac4-cc7d-11ec-b6da-525400bbb7dc",
"key_id": 8207,
"dlr_code": 1,
"status_code": 100,
"callback_data": "some data from user's request here"
},
"notification_task_id": "3378de83-de66-4de8-9d29-2b10d41bb641"
}

Webhook received

Invalid webhook request’s body structure

Webhook request unauthorized

Webhook access forbidden

Webhook access forbidden

Server error