{
"account_id": "acct_01japd271aeatb7txrzr2xj8sg",
"data": {
"attachments": [],
"blast_id": null,
"body": "Dude, I almost had you!",
"conversation": {
"contact": {
"first_name": "Dominic",
"id": "ctc_01ja88cboqffhswjx8zbak3ykk",
"last_name": "Toretto",
"phone_number": "+18015551234"
},
"id": "cnv_01jav8xy7fe4nsay3c9deqxge9",
"phone_number": {
"campaign_id": "cpn_01jjnn7s0zfx5tdcsxjfy93et2",
"id": "pn_01jsjwe4d9fx3tpymgtg958d9w",
"metadata": {
"location": "Downtown store"
},
"name": "(801) 555-6789",
"number": "+18015556789",
"type": "local"
}
},
"created_at": "2024-10-21T23:29:40Z",
"failed_at": "2024-10-21T23:29:42Z",
"failure_reason": "carrier_error",
"id": "msg_01jjnn7s0zfx5tdcsxjfy93et2",
"metadata": {
"order_id": "12345"
},
"status": "failed"
},
"timestamp": "2024-10-21T23:29:41Z",
"type": "message.failed"
}Events
message.failed
Fires when an outbound message could not be delivered. Includes a failure_reason code.
WEBHOOK
messageFailed
{
"account_id": "acct_01japd271aeatb7txrzr2xj8sg",
"data": {
"attachments": [],
"blast_id": null,
"body": "Dude, I almost had you!",
"conversation": {
"contact": {
"first_name": "Dominic",
"id": "ctc_01ja88cboqffhswjx8zbak3ykk",
"last_name": "Toretto",
"phone_number": "+18015551234"
},
"id": "cnv_01jav8xy7fe4nsay3c9deqxge9",
"phone_number": {
"campaign_id": "cpn_01jjnn7s0zfx5tdcsxjfy93et2",
"id": "pn_01jsjwe4d9fx3tpymgtg958d9w",
"metadata": {
"location": "Downtown store"
},
"name": "(801) 555-6789",
"number": "+18015556789",
"type": "local"
}
},
"created_at": "2024-10-21T23:29:40Z",
"failed_at": "2024-10-21T23:29:42Z",
"failure_reason": "carrier_error",
"id": "msg_01jjnn7s0zfx5tdcsxjfy93et2",
"metadata": {
"order_id": "12345"
},
"status": "failed"
},
"timestamp": "2024-10-21T23:29:41Z",
"type": "message.failed"
}Fires when an outbound message fails to deliver. The
failure_reason field tells you why. Some failures are permanent (opted-out recipient, invalid number); others are transient and you may retry them.
failure_reason codes
See Error Reference, Messaging-layer errors for the full list offailure_reason values and remediation guidance.
Common codes:
| Code | Meaning |
|---|---|
opted_out | The recipient has opted out; stop sending to this number |
invalid_mobile_number | The number is not a valid mobile number |
message_filtered | Carrier or Surge content policy blocked the message |
daily_message_cap_reached | Campaign volume cap exceeded for the day |
carrier_error | Transient carrier network error |
Authorizations
Body
application/json
Response
200
Return a 200 status to indicate that the data was received successfully