This webhook will be called by octopush on an ongoing basis, each time an acknowledgement of receipt is received.
Query fields
Name | Type | Description |
---|---|---|
channel | string | Channel of the delivery (‘sms’, ‘voice_sms’, ‘facebook’, ‘instagram’, ‘rcs’, ’email’, ‘whatsapp’, etc…) |
message_id | string | Ticket of the original message |
number | string | Mobile number |
status | string | Acknowledgement status |
delivery_date | string | Date of acknowledgment in format “Y-m-d H:i:s” |
meta_data | object | Will contain meta data for each channel. |
pressed_keys_code | string | If channel is voice. Will contain the list of the keys that the recipient typed. |
call_duration | integer | If channel is voice. Number of seconds of the call duration. |
charged_duration | integer | If channel is voice. Number of seconds that was charged. |
Possible values for the “status” field:
- ACK
- DELIVERED
- NOT_DELIVERED
- NOT_ALLOWED
- UNKNOWN_DELIVERY
- BAD_DESTINATION
- BLACKLISTED_NUMBER
- UNDEFINED
Simple example of a PHP recovery script
$content = json_decode($response); echo $content['message_id']; // sms_5fa275dbf21dc echo $content['number']; // +33600000000 echo $content['status']; // DELIVERED echo $content['delivery_date']; // 2020-11-04 11:11:45