Add playlist to library
Last updated
Last updated
You can add a playlist to a user's streaming library by calling the endpoint below.
This endpoint requires that you use your private key. It is recommended to make the request from your own backend and make a request to that endpoint from the frontend of you app. This is to prevent accidentally leaking your private keys
If you notice your keys have been accidentally exposed, you can revoke from the . You'll get get new keys you can then update where the old keys were (securely) used.
To add a playlist to a user's library, you can use the user's email address in the user
request body field. The request body also requires you pass the title
and the tracks
you want to add to the playlist. Tracks are arrays of track IDs and are different, depending on the platform.
The IDs must have the same pattern and if any of them is invalid, the request would be rejected. The response contains the link to the playlist on the user's library.
POST
https://api.orchdio.dev/playlist/{platform}/add
x-orchdio-key*
String
Your app's private key
The following response is returned