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

Add tracks to library

POST/api/{integrationUserUUID}/liked/tracks
CoreAuthBasicDevTokenDocsSessionToken

Check which services support adding tracks to user's library

This endpoint saves tracks to the current user's library on Music Service.

Path parameters

integrationUserUUID
uuidrequired

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

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.