The Spotify integration allows your AI Agents to authenticate users with their Spotify accounts and access music libraries, playlists, and listening data on their behalf.

Overview

The Spotify integration is perfect for music and entertainment-focused AI applications that need to interact with music content, manage playlists, analyze listening habits, or automate music discovery workflows. This integration provides access to Spotify’s comprehensive API for music and audio features.

Configuration

1

Set up app in Spotify

  1. Sign up for a Spotify Developer account
  2. Create a new app in the Spotify Developer Dashboard
  3. Note your Client ID and select View Client Secret to note your Client Secret
2

Configure for Auth0

  1. Use the following settings when configuring your app:
  • Website: https://YOUR_AUTH0_DOMAIN
  • Redirect URI: 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.

Add Connection in Auth0

In the Auth0 Dashboard, navigate to Authentication > Social and select Create Connection. Then, choose the matching connection from the list of supported options to add and begin the configuration process. Follow the prompts to configure your selected provider.

Enable Token Vault

At the bottom of the connection settings in the Advanced section enable the Enable Token Vault toggle. This will allow your connection to retrieve and store access tokens for third-party APIs.

Account linking

If you want to use more than one connection for a user, you can link their accounts. This allows the user to log in with any of their linked accounts and have a single user profile in your application. This allows calling APIs from different providers with a single user profile. Learn more about Client-initiated account linking.

Learn more