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.
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.
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.
Turns out that the scope playlist-modify
is needed to create playlists, even if the user has granted playlist-modify-private
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With