Announcements
From 28th September 2026, Community private messages will no longer be available. If you have any private messages you'd like to keep, please save or copy them using these steps before this date. Thank you.

Help Wizard

Step 1

NEXT STEP

Spotify Web API returns 403 Forbidden on library save despite user-library-modify scope

Spotify Web API returns 403 Forbidden on library save despite user-library-modify scope

Hi team,

I’m building a local browser app using Spotify Authorization Code with PKCE.

Auth works, playback works, search works, and reading the user profile works. The access token includes both `user-library-read` and `user-library-modify`.

Confirmed granted scopes from token response/local storage:

playlist-read-private playlist-read-collaborative streaming user-modify-playback-state user-library-read user-library-modify playlist-modify-private user-read-playback-state user-read-currently-playing user-read-email user-read-private


Working:

 

Failing:

Response body:

{ "error": { "status": 403, "message": "Forbidden" } }

 

I’ve also tried removing app access, clearing local storage, forcing `show_dialog=true`, reconnecting, and confirming the token still includes `user-library-modify`.

I know there have been some changes to the API recently, but from what I can tell, this shouldn't be affected?

 

Reply
1 Reply

Hi @Scott_Mac 

You should give the February 2026 Web API Dev Mode Changes - Migration Guide a look.

I hope this helps.

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.

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 5 years ago  in Social & Random