Question

Is GET a valid option for inbound catch webhook

  • 17 August 2023
  • 5 replies
  • 37 views

When an email arrives in our email program I’m wanting to send the email address to Zapier to check if it is on an existing list and return a true/false result to the email program.

From the email system I can either send a GET https://hooks.zapier.com/hooks/catch/xxxx/xxxxx/{{email}} or POST https://hooks.zapier.com/hooks/catch/xxxx/xxxxx with JSON {“email”:”{{email}}”}

The first example doesn’t seem to hit the correct URL, assumedly because the email is appended to it.

The second example shows up in Zapier and everything is good for the lookup of true/false but because the call as a POST the sending system isn’t waiting for the response and I don’t know how to get the true/false back into the email program. 

Bear with me, this is new to me - I’m celebrating just getting the trigger from the email system to Zapier and then the lookup result from the list! But stuck at this point…

   


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

5 replies

Userlevel 7
Badge +14

@Lorne 

A webhook sent as a GET is different from an GET API request.

Please review the available help articles for using Zap webhooks: https://zapier.com/apps/webhook/help

 

In my limited experience when sending a GET call there is usually a return of a JSON that contains the requested information. 

If the Zapier catch response is only the default, does this not defeat the purpose of using a GET call?  

Apologies if I misunderstand 

Userlevel 7
Badge +14

@Lorne 

You can’t control the response for a Zap webhook.

Webhook help links: https://zapier.com/apps/webhook/help

Although it's not possible to customize this response, you can remove it completely by using Silent Mode.

Amazingly fast reply Troy, thanks. 
GET now sends the email parameter (yay)

the response is just a generic 200 server response 
so the next step is to have this response either be dependent on success of finding the email in the spreadsheet or send the actual true/false 

I know this is probably a remedial question so feel free to point me at examples or alternate resources rather than taking all your time

Userlevel 7
Badge +14

Hi @Lorne 

Good question.

Change the GET to this:

https://hooks.zapier.com/hooks/catch/xxxx/xxxxx/?email={{email}}