Skip to main content

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.

-

-

-

-

 

 

 

 

 

Hi @Sigurdur130 

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

 


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 =)


Reply