Skip to main content

Configuring Spotify Integration

To enable Spotify integration in your MusicAPI implementation, you must first create a Developer App through the Spotify for Developers Portal.

Step 1: Create Spotify Developer App

  1. Log in to your Spotify Developer Dashboard
  2. Click Create an App and configure your application settings
  3. Complete the required application information

Step 2: Configure Redirect URI

Critical Configuration

Ensure your app's Redirect URI is set to exactly:

https://api.musicapi.com/callback/spotify

This exact URL is required for proper authentication flow.

Step 3: Obtain API Credentials

Navigate to your app's Settings page to retrieve your Client ID and Client Secret:

Spotify API Credentials

Step 4: Configure MusicAPI Integration

Required Configuration

You must complete the following steps in the MusicAPI Developer Dashboard:

  1. Add your Spotify Client ID and Client Secret
  2. Enable the Spotify integration so users can see it as an authentication option

Authentication Implementation

Direct Spotify Authentication

To redirect users specifically to Spotify authentication:

This bypasses service selection and opens the Spotify authentication flow directly.

General Authentication Flow

Alternatively, allow users to choose from all available services:

Users will see a service selection screen including Spotify and other configured integrations.