Announcements

Help Wizard

Step 1

NEXT STEP

"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?

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.

Yes I do, thank you for helping me

Suggested posts