Best answer

Zapier get request receive back body

  • 24 January 2021
  • 2 replies
  • 993 views

I want to receive something back in the body when i make a get request on a website or in postman.

For example: I do i get request.

Zapier trigger: webhooks by zapier → catch a webhook

Action find something in airtable

2nd action? return what u find to the app that called the trigger (postman or website)

 

Is this possible?

icon

Best answer by Chris from OnMAtion 24 January 2021, 21:22

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.

2 replies

Userlevel 7
Badge +14

Hi @MauriceHolland 

I think what you’ve mentioned is front-end scripting.

Zapier is mostly suited for back-end scripting between apps.

 

The answer to your question will depend on what app you are using for the trigger.

Some apps have available triggers/actions/searches via their Zap app integrations.

Example for Airtable: https://zapier.com/apps/airtable/integrations#triggers-and-actions

 

You can see the apps that integrate with Zapier here: https://zapier.com/apps

Hi Maurice,

 

Yes, you can receive HTTP requests (via Zapier Webhook) and even use the content of the body. Assuming you’re receiving a JSON. The fields from the JSON can be mapped e.g. to subsequent tasks e.g. Airtable. So you do a lookup in Airtable for a specifc record that matches your criteria.

Now here is the tricky part. Each tasks basically works own its own. The connection to the incoming HTTP request is gone as soon as the first task (webhook) is done. So as far as I know there is no way to return a response within the same call. You could of course send another (independent) HTTP post to any REST service as a subsequent task on its own.

 

Hope this makes sense to you.