provider PlaylistsLibrary POST
/users/{user_id}/playlists @utdk/spotify
/users/{user_id}/playlists Create Playlist for user
**Deprecated**: Use [Create Playlist](/documentation/web-api/reference/create-playlist) instead.
Create a playlist for a Spotify user. (The playlist will be empty until
you [add tracks](/documentation/web-api/reference/add-tracks-to-playlist).)
Each user is generally limited to a maximum of 11000 playlists.
- user_id path required
- string
Try it
Authentication
Configure credentials for Spotify Web API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import spotify from '@utdk/spotify';
await spotify.createPlaylistForUser()