Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spotify Web API client scope not working

Tags:

spotify

I'm using the new web API and authorizes the user with scope=playlist-modify-private.

The user logs in and authorizes my app.

When I later create a playlist for the user I get the response { "error": { "status": 403, "message": "Insufficient client scope" } };

The error is probably due to the fact that when the user first authorized my app, the client scope was lower. It seems that the new client scope is not updated when the user authorizes the change. Also, there is no option to revoke client scope at the Spotify website.

like image 714
Marcus Hansson Avatar asked Jun 18 '14 15:06

Marcus Hansson


People also ask

What is Spotify's scope?

In order to use the Spotify Platform, you need to familiarise yourself with scopes. Scopes provide Spotify users using third-party apps the confidence that only the information they choose to share will be shared, and nothing more.

Is Spotify API a REST API?

Based on simple REST principles, the Spotify Web API endpoints return JSON metadata about music artists, albums, and tracks, directly from the Spotify Data Catalogue. Web API also provides access to user related data, like playlists and music that the user saves in the Your Music library.


1 Answers

Turns out that the scope playlist-modify is needed to create playlists, even if the user has granted playlist-modify-private.

like image 127
Marcus Hansson Avatar answered Sep 29 '22 17:09

Marcus Hansson