Skip to main content

I’m trying to create webhook zap from Rest Hook site, this should be a simple app, the first thing I want to achieve is catching hook when a contact is created.

Here is my gist for the trigger: Gist Trigger.

  1. performSubscribe is working and registered to hooks subscription on resthooks site
  2. performUnsubscribe also working, currently it will delete all subscribed hooks
  3. perform not catching any hooks after a contact is created
  4. performList is calling get contact list

There are couple of things I want to ask but for now I think I need help with this first (get perform to work).

Here is my private zap based on the issue above: Zap Invite.

For testing purpose, I created another step after my zap which chain to webhook by zapier to make POST request to requestbin and it contains the data I want to see, sadly the trigger isn’t firing.

But for unknown reason, when I make request via postman to zapier hook (bundle.targetUrl), it just works (shown in requestbin). below is the curl:

curl --location --request POST 'https://hooks.zapier.com/hooks/standard/3479457/1082218db19d4dde97bc3e2ef6dea5e8/' \
--header 'Content-Type: application/json' \
--header 'User-Agent: PostmanRuntime/7.23.0' \
--header 'Host: hooks.zapier.com' \
--data-raw '{
"data": {
"model": "crm.contact",
"fields": {
"updated": "2020-03-25T08:18:07.102Z",
"user": 23,
"full_name": "SoeHoe",
"created": "2020-03-25T08:18:07.102Z",
"email": "soehoe@example.com"
},
"pk": 28
},
"hook": {
"event": "contact.created",
"target": "https://hooks.zapier.com/hooks/standard/3479457/1082218db19d4dde97bc3e2ef6dea5e8/",
"id": 22
}
}'

I appreciate for any helps, thank you

Hi @rizarma I think that this one is going to be a little tricky for us to solve in the community so I’ve escalated this to the Support Team. Someone will be in touch via email as soon as possible!


I wanted to circle back on this with an explanation in case someone has a similar issue. 

 

The Support Team was able to get to the bottom of this, with the following reply:

 You're trying to use the demo REST Hooks site to power this — but that was just a demo site used as a proof of concept. To get this working in production, you'll need to set up a server that can receive and store the hook details outlined at https://platform.zapier.com/cli_tutorials/resthooks. This tutorial was written for the CLI platform, but the same principles apply to apps made with the Visual Builder.