Receiving Events - Webhooks
When new messages come into any of your channels or you want to be notified immediately we have any updates on your conversations, we trigger events that your application can listen to. We do this using webhooks.
A webhook is a URL on your server where we send payloads for such events.
You can specify your webhook URL on your Settings page or on individual channels where we would send POST
requests to whenever an event occurs.
Kindly ensure your webhook URL is publicly available (localhost URLs cannot receive events).
Verify Event Origin
Our event comes with ```x-oneroute-signature``` in the header and you can use this to verify the event is from us and wasn't tampered with. To verify the origin, you can use the below code
Receiving Events
To receive the event, you will have to create an unauthenticated POST
route on your application that returns a 200
status code as it's response.
Supported Events
WhatsApp Campaign Events
Last updated
Was this helpful?