Skip to main content

About Spotify

Spotify is a digital music streaming service that provides access to millions of songs, podcasts, and other audio content. Connecting Spotify to Serval enables automation workflows that can control playback, search for music, and manage playlists directly from Serval.

What the Spotify integration enables

CapabilityDescription
Playback ControlSearch for tracks and control playback on your Spotify-connected devices
Library ManagementRead and modify your saved tracks, albums, and playlists
Playlist ManagementCreate, update, and manage public and private playlists
Device ControlList available devices and direct playback to a specific device
Anything defined in the Spotify Web API can be accessed through Serval.

Prerequisites

  • A Spotify Premium account
  • A Spotify Developer app with a Client ID and Client Secret
Playback control features (play, pause, volume) require a Spotify Premium account.

Spotify Configuration

Before connecting to Serval, you need to create an app in the Spotify Developer Dashboard.
1

Create a Spotify app

  1. Go to the Spotify Developer Dashboard
  2. Click Create App
  3. Enter an app name (e.g., “Serval Integration”) and description
  4. Accept the Terms of Service and click Create
2

Configure the redirect URI

When connecting in Serval, you will be shown a Redirect URI. Copy this URI and add it to your Spotify app:
  1. In the Spotify Developer Dashboard, open your app’s settings
  2. Under Redirect URIs, click Add new Redirect URI
  3. Paste the Redirect URI from Serval
  4. Click Save
3

Copy your credentials

From your Spotify app’s settings page, copy the Client ID and Client Secret. You will need these when connecting in Serval.

Connect Spotify to Serval

1

Open the Spotify integration

In Serval, navigate to AppsAvailableSpotify and click Connect.
2

Enter your credentials

In the connection dialog:
  1. Copy the Redirect URI shown at the top and add it to your Spotify app if you haven’t already
  2. Enter your Client ID from the Spotify Developer Dashboard
  3. Enter your Client Secret from the Spotify Developer Dashboard
  4. Click Connect to Spotify
3

Authorize in Spotify

You will be redirected to Spotify’s authorization page.
  1. Review the requested permissions
  2. Click Agree to authorize the connection
  3. You will be redirected back to Serval with the integration connected

Installable Workflows

The Spotify integration includes pre-built workflows that you can install and use immediately.

Play Song on Spotify

Searches for a track on Spotify and plays it on a specified device or the currently active device.
ParameterRequiredDescription
Song NameYesThe name of the song to search for
Artist NameNoNarrows down the search to a specific artist
Device NameNoThe Spotify device to play on (e.g., “MacBook Pro”). Defaults to the currently active device.
VolumeNoPlayback volume as a percentage (0–100)

External Resources