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.
- performSubscribe is working and registered to hooks subscription on resthooks site
- performUnsubscribe also working, currently it will delete all subscribed hooks
- perform not catching any hooks after a contact is created
- 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