Skip to main content
Best answer

HTTP status code 401

  • September 30, 2024
  • 2 replies
  • 51 views

Sigurdur130
Forum|alt.badge.img+1

I’m trying to use a webhook to pull new invoices sent from Payday so I can add the info to my Airtable. This is my first time trying to use webhooks, so I’m 100% certain my questions are at least a little silly. Thanks in advance!

The Payday API documentation specifies that their bearer token is valid for only 24 hours. Every call must have a bearer token in a header. They have a POST call to make a bearer token, requiring clientId and clientSecret. I’m assuming you have to start every automation sequence with that POST, get a token, and then use that token to authenticate in the following steps.

My webhook is already failing at that bearer POST step. Awkward.

I get 401 error, saying to make sure I have a valid ClientID and ClientSecret. I’ve triple checked both.

Here are screenshots of my set up.

-

-

-

-

 

 

 

 

 

Best answer by Troy TessaloneBest answer by Troy Tessalone

Hi @Sigurdur130 

Check that you are using the correct URL for the provided client id/secret.

 

View original
Did this topic help you find an answer to your question?
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

Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 30744 replies
  • Answer
  • September 30, 2024

Hi @Sigurdur130 

Check that you are using the correct URL for the provided client id/secret.

 


Sigurdur130
Forum|alt.badge.img+1
  • Author
  • Beginner
  • 28 replies
  • October 1, 2024

Hot damn, that did it, @Troy Tessalone! Thanks.

I had copied the URL straight from the API documentation, assuming that would be right. I’ll keep an eye out for the .test in my URLs from now on =)