<?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 Following along with the curl API tutorial, keep getting &amp;quot;Missing/invalid/expired access token&amp;quot; in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Following-along-with-the-curl-API-tutorial-keep-getting-quot/m-p/7531787#M21885</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Free/Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;UK&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Macbook Air&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MacOS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm following along with the Getting Started tutorial here.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developer.spotify.com/documentation/web-api/tutorials/getting-started" target="_blank" rel="noopener"&gt;https://developer.spotify.com/documentation/web-api/tutorials/getting-started&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is in the terminal app on MacOS.&amp;nbsp; I have set up an app with the example settings in that tutorial.&amp;nbsp; Then, i do this part, with my id and secret:&lt;BR /&gt;&lt;BR /&gt;curl -X POST "&lt;A href="https://accounts.spotify.com/api/token" target="_blank" rel="noopener"&gt;https://accounts.spotify.com/api/token&lt;/A&gt;" \&lt;BR /&gt;-H "Content-Type: application/x-www-form-urlencoded" \&lt;BR /&gt;-d "grant_type=client_credentials&amp;amp;client_id=your-client-id&amp;amp;client_secret=your-client-secret"&lt;BR /&gt;&lt;BR /&gt;That works and i get given an access token back.&amp;nbsp; Then i make the next request, using that access token (instead of the example here which is from the tutorial):&lt;BR /&gt;&lt;BR /&gt;curl "&lt;A href="https://api.spotify.com/v1/artists/4Z8W4fKeB5YxbusRsdQVPb" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/artists/4Z8W4fKeB5YxbusRsdQVPb&lt;/A&gt;" \&lt;BR /&gt;-H "Authorization: Bearer BQDBKJ5eo5jxbtpWjVOj7ryS84khybFpP_lTqzV7uV-T_m0cTfwvdn5BnBSKPxKgEb11"&lt;BR /&gt;&lt;BR /&gt;I get an error back:&lt;BR /&gt;{&lt;BR /&gt;"error": {&lt;BR /&gt;"status": 401,&lt;BR /&gt;"message": "Missing/invalid/expired access token"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;But, i used the token that the API just gave me, a few minutes previously.&amp;nbsp; (much less than an hour).&amp;nbsp; What am i doing wrong?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 15 Aug 2026 11:40:41 GMT</pubDate>
    <dc:creator>toastkid-williams</dc:creator>
    <dc:date>2026-08-15T11:40:41Z</dc:date>
    <item>
      <title>Following along with the curl API tutorial, keep getting "Missing/invalid/expired access token"</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Following-along-with-the-curl-API-tutorial-keep-getting-quot/m-p/7531787#M21885</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Free/Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;UK&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Macbook Air&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MacOS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm following along with the Getting Started tutorial here.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developer.spotify.com/documentation/web-api/tutorials/getting-started" target="_blank" rel="noopener"&gt;https://developer.spotify.com/documentation/web-api/tutorials/getting-started&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is in the terminal app on MacOS.&amp;nbsp; I have set up an app with the example settings in that tutorial.&amp;nbsp; Then, i do this part, with my id and secret:&lt;BR /&gt;&lt;BR /&gt;curl -X POST "&lt;A href="https://accounts.spotify.com/api/token" target="_blank" rel="noopener"&gt;https://accounts.spotify.com/api/token&lt;/A&gt;" \&lt;BR /&gt;-H "Content-Type: application/x-www-form-urlencoded" \&lt;BR /&gt;-d "grant_type=client_credentials&amp;amp;client_id=your-client-id&amp;amp;client_secret=your-client-secret"&lt;BR /&gt;&lt;BR /&gt;That works and i get given an access token back.&amp;nbsp; Then i make the next request, using that access token (instead of the example here which is from the tutorial):&lt;BR /&gt;&lt;BR /&gt;curl "&lt;A href="https://api.spotify.com/v1/artists/4Z8W4fKeB5YxbusRsdQVPb" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/artists/4Z8W4fKeB5YxbusRsdQVPb&lt;/A&gt;" \&lt;BR /&gt;-H "Authorization: Bearer BQDBKJ5eo5jxbtpWjVOj7ryS84khybFpP_lTqzV7uV-T_m0cTfwvdn5BnBSKPxKgEb11"&lt;BR /&gt;&lt;BR /&gt;I get an error back:&lt;BR /&gt;{&lt;BR /&gt;"error": {&lt;BR /&gt;"status": 401,&lt;BR /&gt;"message": "Missing/invalid/expired access token"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;But, i used the token that the API just gave me, a few minutes previously.&amp;nbsp; (much less than an hour).&amp;nbsp; What am i doing wrong?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Aug 2026 11:40:41 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Following-along-with-the-curl-API-tutorial-keep-getting-quot/m-p/7531787#M21885</guid>
      <dc:creator>toastkid-williams</dc:creator>
      <dc:date>2026-08-15T11:40:41Z</dc:date>
    </item>
  </channel>
</rss>

