Skip to main content
Solved

Zapier POST request returns unauthorized when Postman does not


Hi all - 

I am trying to use Code and Webhooks in Zapier to apply mod tags to a batch of questions once per day, depending on certain criteria. I used the method outlined by @mstone in this post to generate an API key. The key works great for GET requests, but when I try to POST, I see this:

 

 

The thing is, if I take the exact same token used for this request and use it in Postman, the POST request works fine. It seems to me that it isn’t a problem with the token, but maybe a problem with how I’ve set up the webhook. Does anyone have experience with this?

For reference, here is my request. I plan to incorporate it into a code block down the line once I ensure I have the correct inputs. I’ve tried Yes and No for “Wrap Request in Array”:

 

 

Also: I’m not a web developer! So if this is totally incorrect...that’s why ^^;

Any insight would be greatly appreciated! Thanks!

Best answer by alexandra.culler

Ok I actually got it to work with Custom Request with these inputs:

 

 

So now I’m almost positive the problem in my original request was the structure of the data I was trying to send. What is the payload we send for a Zapier POST webhook?

View original

Ok I actually got it to work with Custom Request with these inputs:

 

 

So now I’m almost positive the problem in my original request was the structure of the data I was trying to send. What is the payload we send for a Zapier POST webhook?


daniel.boon
Forum|alt.badge.img
  • Helper ⭐️⭐️⭐️
  • May 17, 2021

@alexandra.culler thanks for sharing your steps and solution. What caught my eye is that in your first example “CS_Review” is a string, where is your second example [“CS_Review_Test_Zapier”] is a string within an array.

However ‘Unauthorized’ is a strange error to receive for that.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings