<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic 403 Forbidden on PUT /v1/me/tracks and /v1/me/albums despite user-library-modify scope in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/403-Forbidden-on-PUT-v1-me-tracks-and-v1-me-albums-despite-user/m-p/7381748#M21002</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;BR /&gt;Premium&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;BR /&gt;Argentina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;BR /&gt;PC&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;BR /&gt;Windows 10&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm using the Authorization Code with PKCE flow on an ASP.NET Core backend.&lt;/P&gt;&lt;P&gt;I'm trying to save tracks and albums to my own library using:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PUT /v1/me/tracks&lt;/LI&gt;&lt;LI&gt;PUT /v1/me/albums&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Both endpoints consistently return:&lt;BR /&gt;403 {"error": {"status": 403, "message": "Forbidden"}}&lt;/P&gt;&lt;P&gt;What I've verified:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The access token is valid (GET /v1/me returns 200 with my correct user data)&lt;/LI&gt;&lt;LI&gt;I have a Premium account&lt;/LI&gt;&lt;LI&gt;During the OAuth consent screen, Spotify explicitly shows permission to &lt;STRONG&gt;modify my library (albums/tracks)&lt;/STRONG&gt; and I accepted it (user-library-modify)&lt;/LI&gt;&lt;LI&gt;The error is &lt;STRONG&gt;"Forbidden"&lt;/STRONG&gt;, not &lt;STRONG&gt;"Insufficient client scope"&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Calling the endpoints directly (e.g., via PowerShell with the same token) gives the same 403&lt;/LI&gt;&lt;LI&gt;PKCE flow is correctly implemented (no client_secret used)&lt;/LI&gt;&lt;LI&gt;The app is in Development mode and my account is in the allowlist&lt;/LI&gt;&lt;LI&gt;One initial PUT request succeeded right after setup, but all subsequent write requests fail&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Given that the scope seems correct but the operation is still blocked,&lt;BR /&gt;is this a limitation of Development mode apps?&lt;/P&gt;&lt;P&gt;Do I need to request Extended Quota Mode to perform write operations (like saving tracks/albums), even for my own account?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2026 22:38:38 GMT</pubDate>
    <dc:creator>Necro-y2k</dc:creator>
    <dc:date>2026-03-20T22:38:38Z</dc:date>
    <item>
      <title>403 Forbidden on PUT /v1/me/tracks and /v1/me/albums despite user-library-modify scope</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/403-Forbidden-on-PUT-v1-me-tracks-and-v1-me-albums-despite-user/m-p/7381748#M21002</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;BR /&gt;Premium&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;BR /&gt;Argentina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;BR /&gt;PC&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;BR /&gt;Windows 10&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm using the Authorization Code with PKCE flow on an ASP.NET Core backend.&lt;/P&gt;&lt;P&gt;I'm trying to save tracks and albums to my own library using:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PUT /v1/me/tracks&lt;/LI&gt;&lt;LI&gt;PUT /v1/me/albums&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Both endpoints consistently return:&lt;BR /&gt;403 {"error": {"status": 403, "message": "Forbidden"}}&lt;/P&gt;&lt;P&gt;What I've verified:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The access token is valid (GET /v1/me returns 200 with my correct user data)&lt;/LI&gt;&lt;LI&gt;I have a Premium account&lt;/LI&gt;&lt;LI&gt;During the OAuth consent screen, Spotify explicitly shows permission to &lt;STRONG&gt;modify my library (albums/tracks)&lt;/STRONG&gt; and I accepted it (user-library-modify)&lt;/LI&gt;&lt;LI&gt;The error is &lt;STRONG&gt;"Forbidden"&lt;/STRONG&gt;, not &lt;STRONG&gt;"Insufficient client scope"&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Calling the endpoints directly (e.g., via PowerShell with the same token) gives the same 403&lt;/LI&gt;&lt;LI&gt;PKCE flow is correctly implemented (no client_secret used)&lt;/LI&gt;&lt;LI&gt;The app is in Development mode and my account is in the allowlist&lt;/LI&gt;&lt;LI&gt;One initial PUT request succeeded right after setup, but all subsequent write requests fail&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Given that the scope seems correct but the operation is still blocked,&lt;BR /&gt;is this a limitation of Development mode apps?&lt;/P&gt;&lt;P&gt;Do I need to request Extended Quota Mode to perform write operations (like saving tracks/albums), even for my own account?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2026 22:38:38 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/403-Forbidden-on-PUT-v1-me-tracks-and-v1-me-albums-despite-user/m-p/7381748#M21002</guid>
      <dc:creator>Necro-y2k</dc:creator>
      <dc:date>2026-03-20T22:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: 403 Forbidden on PUT /v1/me/tracks and /v1/me/albums despite user-library-modify scope</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/403-Forbidden-on-PUT-v1-me-tracks-and-v1-me-albums-despite-user/m-p/7381760#M21003</link>
      <description>&lt;P&gt;Solved — deprecated endpoints returning 403&lt;/P&gt;&lt;P&gt;After a lot of digging, the issue had nothing to do with scopes, quota mode, or the PKCE flow. The endpoints&lt;BR /&gt;themselves are deprecated and apparently return 403 silently instead of a proper deprecation error.&lt;/P&gt;&lt;P&gt;Root cause: PUT /v1/me/tracks and PUT /v1/me/albums are deprecated. Even with a valid token, correct scopes&lt;BR /&gt;(user-library-modify), a Premium account, and the app allowlisted — both endpoints return 403 Forbidden with no useful&lt;BR /&gt;message.&lt;/P&gt;&lt;P&gt;Fix: Migrate to the new unified endpoint:&lt;/P&gt;&lt;P&gt;PUT &lt;A href="https://api.spotify.com/v1/me/library?uris=spotify%3Atrack%3A{id1},spotify%3Atrack%3A{id2" target="_blank"&gt;https://api.spotify.com/v1/me/library?uris=spotify%3Atrack%3A{id1},spotify%3Atrack%3A{id2&lt;/A&gt;},...&lt;/P&gt;&lt;P&gt;Key differences from the old endpoints:&lt;BR /&gt;- Single endpoint for both tracks and albums (use spotify:track: or spotify:album: URI prefix)&lt;BR /&gt;- IDs go as uris query parameter in Spotify URI format, not in the request body&lt;BR /&gt;- Max 40 items per request (old /me/tracks allowed 50)&lt;BR /&gt;- Same user-library-modify scope still required&lt;/P&gt;&lt;P&gt;The docs at &lt;A href="https://developer.spotify.com/documentation/web-api/reference/save-library-items" target="_blank"&gt;https://developer.spotify.com/documentation/web-api/reference/save-library-items&lt;/A&gt; show this as the current&lt;BR /&gt;endpoint. The old /me/tracks and /me/albums pages are marked deprecated but the 403 they return gives no indication&lt;BR /&gt;that deprecation is the cause — it just looks like a permissions error.&lt;/P&gt;&lt;P&gt;Hope this saves someone else a few hours.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2026 23:09:36 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/403-Forbidden-on-PUT-v1-me-tracks-and-v1-me-albums-despite-user/m-p/7381760#M21003</guid>
      <dc:creator>Necro-y2k</dc:creator>
      <dc:date>2026-03-20T23:09:36Z</dc:date>
    </item>
  </channel>
</rss>

