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
| Capability | Description |
|---|---|
| Playback Control | Search for tracks and control playback on your Spotify-connected devices |
| Library Management | Read and modify your saved tracks, albums, and playlists |
| Playlist Management | Create, update, and manage public and private playlists |
| Device Control | List available devices and direct playback to a specific device |
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.Create a Spotify app
- Go to the Spotify Developer Dashboard
- Click Create App
- Enter an app name (e.g., “Serval Integration”) and description
- Accept the Terms of Service and click Create
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:
- In the Spotify Developer Dashboard, open your app’s settings
- Under Redirect URIs, click Add new Redirect URI
- Paste the Redirect URI from Serval
- Click Save
Connect Spotify to Serval
Enter your credentials
In the connection dialog:
- Copy the Redirect URI shown at the top and add it to your Spotify app if you haven’t already
- Enter your Client ID from the Spotify Developer Dashboard
- Enter your Client Secret from the Spotify Developer Dashboard
- Click Connect to Spotify
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.| Parameter | Required | Description |
|---|---|---|
| Song Name | Yes | The name of the song to search for |
| Artist Name | No | Narrows down the search to a specific artist |
| Device Name | No | The Spotify device to play on (e.g., “MacBook Pro”). Defaults to the currently active device. |
| Volume | No | Playback volume as a percentage (0–100) |

