Type in your question below and we'll check to see what answers we can find...
Loading article...
Submitting...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
Please see below the most popular frequently asked questions.
Loading article...
Loading faqs...
Please see below the current ongoing issues which are under investigation.
Loading issue...
Loading ongoing issues...
Plan
Premium
Country
US
Device
HP Laptop
Operating System
Windows 11
My Question or Issue
I am trying to make a program that allows me to add a song to my queue using the Add Item to Playback Queue. I have gotten to the point where I am trying to add a track to my current queue. However, as I have been doing this, I ran into a 403 error. When this happened, I did research and read from several sources that I needed a Premium Account in order to make this POST request. After signing up for a Spotify Premium account, I tried again, and it was still giving me the same error. I checked my scope and as far as I can tell it should be correct.
I even have used other sites such as "https://tryapis.com/spotify/api/endpoint-skip-users-playback-to-previous-track" to make the request. The site works with other API request such as GET and PUT, but it wouldn't let me POST. Any ideas on why this may be happening?
I attached an image of the code for both authorizing and for the request I am making. I didn't include all of the scopes I am using since they weren't fitting on the screen.
Solved! Go to Solution.
It is not possible to use that endpoint with Client Credentials, because Authorization (lets you log in) is required.
It is not possible to use that endpoint with Client Credentials, because Authorization (lets you log in) is required.
How do I double check that I am using the correct authorization just for future notice?
In the screenshot you can see:
body: 'grand_type=client_credentials&…'
That's how I saw it.
So, I am now trying to use the Authorization access token instead of the client_credentials, but it is still failing to send the request. It is saying how the access token isn't valid. I have been using https://tryapis.com/spotify/api/endpoint-add-to-queue to test this. This web page also has a section where you can login to Spotify, thus allowing me to make the the API request. Using their authorization, it allows me to use most of the api request, but still fails when I am trying to use add to queue. It returns a 403 error without any body for an error message. And, as I said before, the Authorization access token doesn't work for it.
That website isn't working for me either, so that website is the problem (maybe their client id got revoked). Normally it would work with the Authorization Code flow.
Never mind, the authorization was the issue. I just needed to add the proper scope to the authorization access key. I believe that the website is using client_credentials instead. Thank you for all of your help!
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…