How to test webhooks
To test the Unit21 webhooks, we recommend two actions.
First, use a tool like RequestBin or Webhook.site to test that webhooks are being generated by Unit21 correctly.
Second, use the Test feature in the Unit21 dashboard to send a dummy message to the URL of your choice.
Let's begin by creating a webhook in the Dashboard.
- Open up the site: https://webhook.site/:
![Screen Shot 2022-12-07 at 12.17.47 PM.png 3120](https://files.readme.io/695e6fc-Screen_Shot_2022-12-07_at_12.17.47_PM.png)
- Copy-paste (save) the generated URL.
In our example: https://webhook.site/544e1f3c-d90e-469a-a6c9-786e300c7062
.
- Head over to Workflows > Webhooks:
![Screen Shot 2022-12-07 at 12.16.23 PM.png 3120](https://files.readme.io/9f3b308-Screen_Shot_2022-12-07_at_12.16.23_PM.png)
- Create the webhook of your choice with the generated URL and add all the events desired:
![Screen Shot 2022-12-07 at 12.20.31 PM.png 3120](https://files.readme.io/1b9b378-Screen_Shot_2022-12-07_at_12.20.31_PM.png)
- Once the webhook is created, use the Send Test button:
![Screen Shot 2022-12-07 at 12.20.41 PM.png 3120](https://files.readme.io/8a58b18-Screen_Shot_2022-12-07_at_12.20.41_PM.png)
- Check in the webhook.site that the test was received correctly:
![Screen Shot 2022-12-07 at 12.22.46 PM.png 3120](https://files.readme.io/b6a7f78-Screen_Shot_2022-12-07_at_12.22.46_PM.png)
![Screen Shot 2022-12-07 at 12.22.53 PM.png 3120](https://files.readme.io/b1bb840-Screen_Shot_2022-12-07_at_12.22.53_PM.png)
Now you can replace the URL with the site of your choice.
You can also trigger case actions to view real webhook messages. In this case, a case has been closed:
![Screen Shot 2022-12-07 at 12.25.41 PM.png 3120](https://files.readme.io/be4146e-Screen_Shot_2022-12-07_at_12.25.41_PM.png)
![Screen Shot 2022-12-07 at 12.25.28 PM.png 3120](https://files.readme.io/c655791-Screen_Shot_2022-12-07_at_12.25.28_PM.png)
Updated 8 months ago