A webhook is a HTTP callback that allows a web app to POST a message to a URL when certain events take place. A webhook delivers data to other applications as it happens, instead of having to call a specific endpoint to interact with the information (as is required with APIs).
Webhooks in Heymarket
Heymarket supports webhooks to allow you to integrate your inbox with other web apps you have running in your organization.
Say for example you’d like to get a notification every time an SMS is received, you can easily set up a webhook that will receive all the information (sender, recipient, body, date and time, etc.) for you to use in your external web app.
The following events will be sent to your webhooks:
- Message Sent
- Message Received
- Chat Opened
- Chat Closed
- Chat Reassigned
Setting up a Webhook
To learn how webhooks work, we’ll set up a sandbox URL and view the messages coming in. Once you learn how to set up webhooks in Heymarket, you can easily replace the URL from the sandbox environment to any endpoint you’d like and start parsing the incoming calls.
1. Navigate to https://webhook.site/ and copy Your unique URL
2. Navigate to https://app.heymarket.com/admin/integrations/api and enter the URL into the Webhook URL field
3. Click Add
4. That’s it! You can now send a message to any chat from your Heymarket inbox and you’ll see the information on your https://webhook.site/