Content Insights Tip #51 | How to easily tests web hooks with XM Cloud?

Content Insights Logo

I recently discovered a fantastic website called webhook.site, and it's a game-changer! This clever platform grants you instant access to a webhook endpoint without requiring any registration. Simply visit the page and grab your unique endpoint URL, as shown below:

Webhook Site example

Webhook Site Example

Next, set up a product to utilize this endpoint. In my case, I configured a workflow step in Sitecore XM Cloud to call the endpoint. Just copy and paste the endpoint into the configuration item.

Sitecore XM Cloud Workflow configuration

Now, take the necessary actions to trigger the endpoint. This is where the magic of the Webhook.site shines. You'll instantly see the message sent to your webhook displayed in the browser. You can effortlessly view the payload and even copy and paste it for the developer tasked with handling the webhook request. No need to decipher the payload beforehand; you can simply check it. Using the JSON model, the developer can then generate the appropriate schema to parse the payload.

Webhook Payload

I hope this helps streamline your development cycle!

Note: For those unfamiliar with webhooks, they are a way for one system to send real-time data to another system as soon as an event occurs. In this context, the Webhook.site acts as a platform that facilitates the easy testing and visualization of these Webhook interactions, providing a hassle-free experience for developers.