Skip to the content
  1. API reference
  2. Read and write a user's library

Create playlist

POST/api/{integrationUserUUID}/playlists
CoreAuthBasicDevTokenDocsSessionToken

This endpoint creates playlist on Music Service.

Path parameters

integrationUserUUID
uuidrequired

The connected user: the integrationUserUUID from the sign-in callback.

Request body

application/json · required

name
string
required
description
string
visibility
string
One of: public, private

Response

200application/json · Playlistok
name
string
required
id
string
required
totalItems
number | null
required
imageUrl
string | null
required
dateAdded
string | null
isOwner
boolean
required
Example answer
{
  "name": "Viva Playlist",
  "id": "1",
  "totalItems": 25,
  "imageUrl": "https://www.example-image.com/978263478234",
  "dateAdded": "2024-10-16T07:52:07.000Z",
  "isOwner": true
}

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.