Skip to main content
Connect your AI agent to a user’s Spotify account to create and modify playlists or add songs to their library.

Connect Spotify to Auth0

1

Spotify setup

  1. Sign up for a Spotify Developer account.
  2. Create a new app in the Spotify Developer Dashboard.
  3. Make sure to select the API/SDKs you plan to use for your application.
  4. Configure Redirect URIs:
    • Redirect URL: https://YOUR_AUTH0_DOMAIN/login/callback
    You can find the Auth0 domain in the Auth0 Dashboard.You can find this under Applications > [Your Application] > Settings > Basic Information > Domain.If you are using the custom domains feature, your Auth0 domain is the custom domain. You can find this under Branding > Custom Domains.
  5. When you click Save you will be redirected to the configuration page for the application you just created. You will see Client ID and can select View Client Secret to see your Client Secret. Make sure to note them down for the next steps:
    • Client ID (OAuth client_id)
    • Client Secret (OAuth client_secret)
To learn more about setting up Spotify, read the Login with Spotify documentation.
2

Auth0 setup

Token Vault configuration example

To configure the Token Vault for your Spotify connection, you can use the following code snippet in your application:

Next steps