Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

"Only valid bearer authentication supported" error message

"Only valid bearer authentication supported" error message

I've been trying to use Spotify's API for my app but every time I try to get something I get this error message "Only valid bearer authentication supported". I have registered my app and used valid client secret but error is still present.

 

Here's the command I used: curl -X "GET" "https://api.spotify.com/v1/albums/" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer <my_secret_key>"

 

and the response: 

{
     "error": {
          "status": 400,
          "message": "Only valid bearer authentication supported"
     }
}

Reply
3 Replies

Do I understand it correctly you are filling in your client secret in the place of my_secret_key?

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

If yes: a bearer token isn't the same as a client secret.

To get a token, you'll need to implement one if these two flows:

You can also choose to use one of the Web API Wrappers, that will make using the Spotify Web API a lot easier.

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Yes I do, thank you for helping me

Suggested posts