🧙‍♂️Webhook Wizard
BlogDocsPricingCommandScopeContact
Feedback

Transforming webhook messages with no code

Jan 21, 2023

Sometimes when working with webhooks, they dont come in the right format, Or you need to change it a little bit before sending it somewhere else. When your in this situation it can be a real problem if you are not being able to change the code thats sending the webhook, or the code thats receiving the webhook.

With webhook wizard you can transform the messages in flight and connect the two systems.

Using a handlebars templates you can completely change the message structure / format & fields.

Example

For example if you want to change a message from

{
    "category": "reference",
    "author": "Nigel Rees",
    "title": "Sayings of the Century",
    "price": 8.95
}

To

{
  "type": "reference",
  "from": "Nigel Rees",
  "name": "Sayings of the Century",
  "class": "Book"
}

You would use the template

{
  "type": "{{category}}",
  "from": "{{author}}",
  "name": "{{title}}",
  "class": "Book"
}

The values in the brackets get substituted with the json value from the input.

Steps

  1. Login to webhook wizard and create an advanced Webhook
  2. Define the template in handlebars
  • Use the example message and check the output to see if you are getting the right result.
  1. Start sending webhooks :)

Thats it, no need to host, deploy, monitor and manage. And for free you get all the usual monitoring that Webhook Wizard has.

Transform webhook with handlebars