Step 2: Send user to "add_to_disco_url"

After a successful request in step 1, you will receive a "add_to_disco_url" in our response. The token can be used to identify the specific transfer when we process the data transfer described in step 3.

{
  "token": "abc123",
  "add_to_disco_url": "https://...",
  "status": "success"
}

Send your user to this URL. The specific implementation details are left up to you. For example, you may choose to do this in a new browser window.

DISCO will prompt the user to log in (if necessary, if a valid session cookie is present this will be skipped), confirm that they want to save the playlist and ask where to save it to.

If a user fails to authenticate, the token will be invalidated.

DISCO will redirect the user to redirect_url if supplied, otherwise display a confirmation message.