Skip to main content
Best answer

The app returned "An invalid api_key was supplied. Error


Hi, I’m trying to connect Price labs with webhooks but I keep getting an error message:

Failed to create a request in Webhooks by Zapier

The app returned "An invalid api_key was supplied.

when I’m using the url:

 

Params:

pms=vrm
listing_id=SUNSETPROPS_OLSE___239
 
I’m using basic auth: Username|API Key
Headers: X-API-Key = API_KEY_FROM_DASHBOARD
 
And when using it with url: pricelabs.co/pricing it’s successfully connected and pulling data but incorrect.

Best answer by Troy TessaloneBest answer by Troy Tessalone

@Vincii 

Remove the trailing ?

 

For API Authorization generally you use one or the other, Basic Auth OR Headers, but not both.

 

The API docs show this.

You need to remove the Basic Auth.

You need to add the API Key to the Header in place of “API_KEY_FROM_DASHBOARD”.

 

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.

4 replies

Troy Tessalone
Forum|alt.badge.img+14

Hi @Vincii 

Good question.

Please post screenshots with how your Zap step is configured.

Please also link to the app API docs that you are referencing.


  • Author
  • Beginner
  • 3 replies
  • January 6, 2023
Troy Tessalone wrote:

Hi @Vincii 

Good question.

Please post screenshots with how your Zap step is configured.

Please also link to the app API docs that you are referencing.

Yes, sure.

API Docs link: https://documenter.getpostman.com/view/507656/SVSEurQC

Get neighborhood data

 

Thank you!


Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 31067 replies
  • Answer
  • January 7, 2023

@Vincii 

Remove the trailing ?

 

For API Authorization generally you use one or the other, Basic Auth OR Headers, but not both.

 

The API docs show this.

You need to remove the Basic Auth.

You need to add the API Key to the Header in place of “API_KEY_FROM_DASHBOARD”.

 


  • Author
  • Beginner
  • 3 replies
  • January 7, 2023
Vincii wrote:

Hi, I’m trying to connect Price labs with webhooks but I keep getting an error message:

Failed to create a request in Webhooks by Zapier

The app returned "An invalid api_key was supplied.

when I’m using the url:

 

Params:

pms=vrm
listing_id=SUNSETPROPS_OLSE___239
 
I’m using basic auth: Username|API Key
Headers: X-API-Key = API_KEY_FROM_DASHBOARD
 
And when using it with url: pricelabs.co/pricing it’s successfully connected and pulling data but incorrect.

Already tried it X-API-Key = (API Key) but it didn’t work because I’ve put an API key as well in basic auth.

Thanks for the help, it’s working now.