Receiving Events - Webhooks
Last updated
Was this helpful?
Last updated
Was this helpful?
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 or on individual channels where we would send POST
requests to whenever an event occurs.
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
With this method, you only allow certain IP addresses to access your webhook URL while blocking out others. OneRoute will only send webhooks from the following IP addresses:
174.138.104.128
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.