How to send data to static webhook URL?

  • 29 March 2022
  • 1 reply

I have created a trigger whenever a user status changes, I used REST HOOK instead of polling, and it's working fine whenever the user status changes trigger runs and get the data but when I test it in zap editor every time it's giving a new Webhook URL. Can you please help me how I can use zaiper Static webhook URL?

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

1 reply

Userlevel 7
Badge +9

With a REST Hook your API needs to implement a subscribe endpoint that receives and persists a callback hook URL (unique to that Zap runtime instance). Use that URL for hook callbacks. You’ll also need to implement an unsubscribe endpoint that removes that subscription.  

This is important as a user may use your trigger in several different Zaps to effect different workflows.  This also means your system needs to support multiple hook subscriptions for the same event. 

For users building Zapier integrations that they don’t intend to publish, there are static hooks, where the user has to cut and paste the callback URL from the Zap Editor into the app’s webhook configuration UI. However this is still going to be different URL for every Zap a user builds. To build a static hook, leave the subscribe and unsubscribe endpoint undefined.

Again, if you are planning on requesting that your integration be published in the Zapier App Directory, don’t use static hooks. The app review team will have to reject your submission. We’ve found they result in poor Zap activation rates and lots of tickets to support. REST Hooks are the way to go - better for everyone involved.