Best answer

Invalid Token

  • 24 August 2020
  • 7 replies
  • 1268 views

Userlevel 1

Hello,

I’m creating a custom webhook zap with Spotify and I believe I put in a valid token, but I am receiving this error -  “Only valid bearer authentication supported".

 

icon

Best answer by Troy Tessalone 24 August 2020, 05:23

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.

7 replies

Userlevel 7
Badge +14

Share screenshots of your Zap step that’s resulting in an error.

Userlevel 1

@Troy Tessalone 

 

Userlevel 7
Badge +14

There are 2 required header fields: Authorization & Content-Type.

Add “Authorization” as a field below Content-Type in your Zap step.

Then make sure the value has “Bearer ” before the API Key.

You can test the Spotify API here: https://developer.spotify.com/console/delete-playlist-tracks/

 

 

 

Userlevel 1

@Troy Tessalone I’m getting the same error with this update. 

 

 

Userlevel 7
Badge +14

The API Key needs to be placed after Bearer, not in the Basic Auth field.

Userlevel 1

Thanks that almost worked, but I’m getting a “The app returned "JSON body doesn't conform to specification" error now. 

 

 

Userlevel 7
Badge +14

I suggest referencing the DEVELOPER link included previously.

Looks like there is an extra space before and maybe after the dynamic URL in the JSON.