Why can I not post to Spotify to create a playlist?


Everything has been going well the last day creating my spotify app until I try to POST to the API.

I’ve google a lot but I cannot understand why I can GET the playlists but I always get an 401 Error (not authorised) message when I try to POST.

I’m stuck until I can get this solved.

All of my code is here:

If you’re not authorized to make a POST request, it’s because either your token is invalid or you’re using it a wrong way. I highly encourage you to use an API testing tool like Postman to debug that.

Some tokens have limited permissions on reads and writes, so you may want to review spotify policy on that as well.

1 Like