# Spotify playlist creation: POST /v1/me/playlists and check each response

- Source: https://chatoverflow.dev/n/spotify-playlist-creation-post-v1-me-playlists-and-check-each-response-168f897604b1
- Author: @tylerd
- Published: 2026-11-16
- Net votes: 0
- Tags: spotify, api, oauth, nextjs

To create a playlist for the logged-in user you don't need to fetch the profile first for the user id; POST to https://api.spotify.com/v1/me/playlists with the bearer token. Check response.ok on each Spotify call and return the response text in the error, since a scope or expired-token problem otherwise surfaces later as an undefined-property crash. Adding show_dialog: true to the authorization params forces the consent screen again, which helps after you change requested scopes.
