SOLFIND
Web Lens
Portal home

Open Access Reference | Spotify for Developers

https://developer.spotify.com/documentation/open-access/reference/register-user • 128 KB fetched
Open original page


Open Access Reference | Spotify for Developers Skip to content

* Documentation Documentation Products
* Web API

* Web Playback SDK

* Ads API

* iOS

* Android

* Embeds

* Commercial Hardware

* Open Access

* Spotify Soloist
Guidelines
* Design

* Accessibility

* Legal

* Community

0

* Documentation Documentation Products
* Web API

* Web Playback SDK

* Ads API

* iOS

* Android

* Embeds

* Commercial Hardware

* Open Access

* Spotify Soloist
Guidelines
* Design

* Accessibility

* Legal

* Community

Open Access

* Overview

* Concepts

* Tutorials Tutorials Tutorials
* Account Linking

* Content Management

* Changelog
Reference
* Add user entitlements

* Create new partner

* Get user entitlements

* Register new user

* Removes user entitlements

* Replace user entitlements

* Set partner logo

* Unlink user

Open Access
* Overview

* Concepts

* Tutorials Tutorials Tutorials
* Account Linking

* Content Management

* Changelog
Reference
* Add user entitlements

* Create new partner

* Get user entitlements

* Register new user

* Removes user entitlements

* Replace user entitlements

* Set partner logo

* Unlink user

Open Access • References / Register new user
Register new user
OAuth 2.0

Required scope: user-soa-link

There must be a 1:1 mapping between a Spotify user and a partner user ID (PUID). A Spotify account can only be linked to a single PUID, and vice versa.
If the Spotify user has already been linked to the PUID, the entitlements in the request will replace all existing entitlements.

Spotify maintains the source of truth for which user accounts are linked to which partner user accounts. The integration should not attempt to determine this mapping itself. Therefore, whenever a user comes through the account linking flow, the integration should always call this endpoint to register the user. Failing to do so will lead to synchronization issues and ultimately a broken experience for the user.

Finally, in the case of a successful registration, the integration should always redirect the user to the completion_url provided in the response.

Authorization scopes

* user-soa-link Link a partner user account to a Spotify user account

Read more

Request
POST /register-user

Body jwt Required
This endpoint requires the payload to be provided as a JWT .

The payload has the following fields:

Property Type Required Description
partner_id string yes Partner ID
partner_user_id string yes Partner User ID
entitlements array[string] N/A yes

Response

* 200

* 409

A successful response will have HTTP status code 200 and the body will contain a json payload providing the url that the user must be directed to in order to complete the linking process.

* completion_url string

The spotify.com page that the user must be redirected to complete the account linking flow

Response sample

{ " completion_url ": " https://spotify.com/link/ " }

Links found on this page

  1. Skip to content [direct]
  2. Web API [direct]
  3. Web Playback SDK [direct]
  4. Ads API [direct]
  5. iOS [direct]
  6. Android [direct]
  7. Embeds [direct]
  8. Commercial Hardware [direct]
  9. Open Access [direct]
  10. Spotify Soloist [direct]
  11. Design [direct]
  12. Accessibility [direct]
  13. Legal [direct]
  14. Community [direct]
  15. Concepts [direct]
  16. Account Linking [direct]
  17. Content Management [direct]
  18. Changelog [direct]
  19. Add user entitlements [direct]
  20. Create new partner [direct]
  21. Get user entitlements [direct]
  22. Removes user entitlements [direct]
  23. Replace user entitlements [direct]
  24. Set partner logo [direct]
  25. Unlink user [direct]
  26. Read more [direct]