Webhooks
All Webhooks are called with http POST method.
Opt In Opt Out webhook
Method : POST
Webhook : {Set it in your account}
Description : The webhook is called when users opt in or opt out from messaging.
JSON Payload
destination
Mobile number, landline number, email address
channel
One of the following strings : "voice", "email", "sms"
opt_out_type
One of ["start", "stop"]. START indicates user has opted in. STOP indicates user has opted out.
message
The message that was received
destination_data
JSON payload associated with this destination. Sent as-is.
Example
{'destination': ‘9998887777’, 'channel': 'sms', 'opt_out_type': 'stop', ‘message’:'Remove Me'}