Skip to content

DLR Webhook

DLR

Similar to incoming SMS messages, if a DLR has been requested, it will also be delivered by webhook.

DLR Webhook Schema

DLR:

NameTypeDescription
delivery_statusEnum:StringThe delivery status of the SMS.
fromStringThe originating number for the SMS delivery report.
idStringThe assigned ID for the delivery report.
smssmsSMS details associated with the delivery report, if available.
timestampString(format:date-time)ISO 8601 timestamp indicating when the delivery report was first received by the SMS system.
toStringThe destination number for the SMS delivery report.
typeEnum:StringThe type of webhook event. Always sms_dlr for this schema.

SMS object within the DLR:

NameTypeDescription
idStringThe unique identifier of the SMS associated with the delivery report.

DLR Webhook Example

{
"delivery_status": "delivered",
"from": "12003004000",
"id": "01JDQ0R6MMNKQ4XNEV3QH49H8H",
"sms": {
"id": "01JDQ0T6SXSD6B2A4JP8XZ8GTS"
},
"timestamp": "2024-06-14T00:00:00.000000Z",
"to": "12003004001",
"type": "sms_dlr"
}

MMS DLR

Similar to SMS delivery reports, MMS delivery reports are also delivered by webhook if requested.

MMS DLR Webhook Schema

MMS DLR:

NameTypeDescription
dataMMS PartContains the content of the MMS message.
delivery_statusStringThe delivery status of the MMS.
fromStringThe originating number for the MMS delivery report.
idStringThe unique identifier for the delivery report.
mmsmmsMMS details associated with the delivery report.
timestampString(format:date-time)ISO 8601 timestamp indicating when the delivery report was generated.
toStringThe destination number for the MMS delivery report.
typeEnum:StringThe type of webhook event. Always mms_dlr for this schema.

MMS object within the DLR:

NameTypeDescription
idStringThe unique identifier of the MMS associated with the delivery report.

MMS DLR Webhook Example

{
"data": {
"body": "Hello, World",
"encoding": "identity",
"headers": {
"*": "string"
},
"is_multipart": true,
"parts": [
{}
]
},
"delivery_status": "delivered",
"from": "string",
"id": "string",
"mms": {
"id": "string"
},
"timestamp": "2024-06-14T00:00:00.000000Z",
"to": "string",
"type": "mms_dlr"
}