<?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 Is authentication required for each API request? in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Is-authentication-required-for-each-API-request/m-p/5877151#M12655</link>
    <description>&lt;P&gt;I have been through the authentication process which gives my Spotify app the necessary permissions to, for instance, create a playlist on my own Spotify account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did so by opening the below URL in my browser, which led me to a Spotify page where I granted the permissions asked for in the URL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://accounts.spotify.com/authorize?client_id={CLIENT_ID}&amp;amp;response_type=code&amp;amp;redirect_uri={redirect_uri}&amp;amp;state=secretCheckHash&amp;amp;scope=playlist-read-private playlist-read-collaborative playlist-modify-private playlist-modify-public user-read-private user-read-email&amp;amp;show_dialog=true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, now when I send a request to the playlist endpoint (&lt;A href="https://api.spotify.com/v1/users/{user_id}/playlists)" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/users/{user_id}/playlists)&lt;/A&gt;&amp;nbsp;from my Python script, I get this response:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{'error': {'status': 403, 'message': 'This request requires user authentication.'}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&lt;EM&gt;am&lt;/EM&gt; able to successfully create a playlist by sending a request through the &lt;A href="https://developer.spotify.com/documentation/web-api/reference/create-playlist" target="_self"&gt;Spotify web UI&lt;/A&gt;, but each time I send a request, I am asked to grant permissions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought that as a Spotify user, I only had to grant permissions to a Spotify app once, but my experience suggests my app needs permission for each request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I doing something wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be much appreciated.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Feb 2024 13:35:33 GMT</pubDate>
    <dc:creator>113278487</dc:creator>
    <dc:date>2024-02-10T13:35:33Z</dc:date>
    <item>
      <title>Is authentication required for each API request?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Is-authentication-required-for-each-API-request/m-p/5877151#M12655</link>
      <description>&lt;P&gt;I have been through the authentication process which gives my Spotify app the necessary permissions to, for instance, create a playlist on my own Spotify account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did so by opening the below URL in my browser, which led me to a Spotify page where I granted the permissions asked for in the URL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://accounts.spotify.com/authorize?client_id={CLIENT_ID}&amp;amp;response_type=code&amp;amp;redirect_uri={redirect_uri}&amp;amp;state=secretCheckHash&amp;amp;scope=playlist-read-private playlist-read-collaborative playlist-modify-private playlist-modify-public user-read-private user-read-email&amp;amp;show_dialog=true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, now when I send a request to the playlist endpoint (&lt;A href="https://api.spotify.com/v1/users/{user_id}/playlists)" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/users/{user_id}/playlists)&lt;/A&gt;&amp;nbsp;from my Python script, I get this response:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{'error': {'status': 403, 'message': 'This request requires user authentication.'}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&lt;EM&gt;am&lt;/EM&gt; able to successfully create a playlist by sending a request through the &lt;A href="https://developer.spotify.com/documentation/web-api/reference/create-playlist" target="_self"&gt;Spotify web UI&lt;/A&gt;, but each time I send a request, I am asked to grant permissions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought that as a Spotify user, I only had to grant permissions to a Spotify app once, but my experience suggests my app needs permission for each request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I doing something wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2024 13:35:33 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Is-authentication-required-for-each-API-request/m-p/5877151#M12655</guid>
      <dc:creator>113278487</dc:creator>
      <dc:date>2024-02-10T13:35:33Z</dc:date>
    </item>
  </channel>
</rss>

