Best answer

Is there a way to "catch all" web hook without defining what's expected?

  • 11 December 2020
  • 4 replies
  • 85 views

Userlevel 2
Badge +1

Hi everyone,

I want to catch a web hook but NOT define the fields that I am expecting ahead of time. Basically a catch all - whatever the payload comes in - I want to see that json sent to me as an e-mail for example.

How do I do that? The catch webhook expects that I define what I am expecting to catch and that’s the one thing I can’t do - I don’t know how it will show up and that is why I want to simply catch whatever json shows up at the door and send it to me unmodified?

Is it possible? If yes please share your suggestions with me

Thank you

icon

Best answer by ForYourIT 11 December 2020, 18:39

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

Userlevel 7
Badge +7

Hi @bubba198 ,

You can just use a trigger with a Webhook Catch and don't need to fill in anything.

This you can later then re-use in your automation. 

 

If the fields you are getting with this webhook are always dynamic, different etc. you can use some Code by Zapier step to make sure it comes into the right format.

Let me know if this helps.

~Bjorn

Userlevel 2
Badge +1

@ForYourIT Thank you for the quick reply Bjorn, I did just that but I had to specify an action as well - I opted for simple e-mail. Then when I POST to my webhook end point for a test it fails here because the body of the e-mail could not be populated since I didn’t specify what to fill it with since I didn’t have anything to select (because I want catch all not specific fields)

 

 

Userlevel 7
Badge +7

Then use the Catch Raw Hook as event. This will give you the possibility to use the raw body in later workflow actions;

 

Userlevel 2
Badge +1

@ForYourIT That was it. Thank you! You’re awesome sir!