- API reference
- Read and write a user's library
Add items to playlist
POST/api/{integrationUserUUID}/playlists/{playlistId}/items
CoreAuthBasicDevTokenDocsSessionToken
Add items to a user's playlist.
Path parameters
integrationUserUUID
uuidrequired
The connected user: the integrationUserUUID from the sign-in callback.
playlistId
stringrequired
ID of the playlist
Request body
application/json · required
itemIds
string[]
requiredTrack IDs that are retrievable through track searches or when fetching playlist items. A maximum of 20 IDs can be sent in one request.
Response
200ok
Errors
404
Your account has no connected user with this uuid, or the item does not exist.
412
The user must sign in again (IntegrationUserNotAuthenticated).
429
Too many requests. Wait for the seconds in Retry-After.