It's really important to test and validate that the information you are sending to a webhook endpoint. Depending on the service you are integrating with, it may be expecting specific HTTP headers to be sent or a payload in a particular structure.
When setting up an integration or using webhooks for the first time it's helpful to use a tool like webhook.site to validate the data you are sending in your webhook request.
This article will outline the process for testing a simple webhook.
Validate your response with webhook.site
With webhook.site you are given a unique, random URL that you can use to test and debug webhooks and HTTP requests.
- Open up a new tab and head over to webhook.site
- Copy Your unique URL to the clipboard.
- Create or open an existing webhook.
- Paste the URL in your clipboard into the Webhook URL field.
- Save changes to your webhook.
- You can now monitor any requests triggered by your webhook at webhook.site. The site should automatically update as the webhooks are received. If you can't see anything coming through then you'll also be able to monitor any activity from Contensis by viewing the webhook activity logs.
Once you are happy that the correct information is being sent, you can update the webhook URL with the endpoint of the service you are using.