Skip to content
Home » Octopush Gateway SMS API » Callback Stop SMS (Opt-Out)

Callback Stop SMS (Opt-Out)

This web hook will be called as we receive unsubscribe requests from your recipients.

Query fields

message_id stringOriginal message ticket
number stringMobile number
text stringText of the response
stop_date stringReception Date in “Y-m-d H:i:s” format

Simple example of a PHP recovery script

$content = json_decode($response); 

echo $content['message_id']; // sms_5fa275dbf21dc 
echo $content['number']; // +33600000000 
echo $content['text']; // stop
echo $content['stop_date']; // 2020-11-04 11:11:45