This event occurs only for some platforms and notifies you about a message that could not be. This may happen when given phone number is wrong or message expires, etc.
Only for Some Platforms
This webhook is used only by some platforms, i.e. by Viber, Mobile, etc.
{
"event": "message_failed",
"timestamp" : "2017-12-29T17:26:17.331Z",
"data" : {
"channel": {
"id": "6456078759331238786",
"type": "{{CHANNEL_TYPE}}"
},
"contact": {
"id": "6456078781510718339",
"phone_number": "15558576309",
},
"message": {
"id": "6456078996108088196"
},
"error": {
"code": 1,
"message": "Error while processing the request."
}
}
}
Parameter | Type | Description |
---|---|---|
data.channel | object | Channel where the data.contact resides in. |
data.contact | object | Contact to whom the message was sent but not delivered. |
data.message | object | Messages which was sent, will contain only message.id . |
data.error.code | number | Error code, see errors below. |
data.error.message | string | Detail message of an error, see errors below. |
Errors
Error Code | Reason |
---|---|
1 | Error while processing the request. |
2 | Sending messages to this user is blocked. |
3 | Cannot find user for given phone number. |
4 | Message failed to be delivered within 24 hours. |