Spotify
Overview
SLUG: SPOTIFY
Description
Spotify is a digital music and podcast streaming service with millions of tracks, personalized playlists, and social sharing features
Authentication Details
OAuth2
Connecting to Spotify
Create an auth config
Use the dashboard to create an auth config for the Spotify toolkit. This allows you to connect multiple Spotify accounts to Composio for agents to use.
Create and Get auth config ID
Click “Create Spotify Auth Config”. After creation, copy the displayed ID starting with ac_
. This is your auth config ID. This is not a sensitive ID — you can save it in environment variables or a database.
This ID will be used to create connections to the toolkit for a given user.
Connect Your Account
Using OAuth2
Tools
Executing tools
To prototype you can execute some tools to see the responses and working on the Spotify toolkit’s playground
OpenAI (Python)
Anthropic (TypeScript)
Google (Python)
Vercel (TypeScript)
Tool List
SPOTIFY_ADD_ITEMS_TO_PLAYLIST
Tool Name: Add items to playlist
Description
Action Parameters
Action Response
SPOTIFY_CREATE_PLAYLIST
Tool Name: Create playlist
Description
Action Parameters
Action Response
SPOTIFY_GET_ARTIST_S_TOP_TRACKS
Tool Name: Get artist s top tracks
Description
Action Parameters
Action Response
SPOTIFY_GET_PLAYLIST
Tool Name: Get playlist
Description
Action Parameters
Action Response
SPOTIFY_GET_SHOW
Tool Name: Get show
Description
Action Parameters
Action Response
SPOTIFY_GET_SHOW_EPISODES
Tool Name: Get show episodes
Description
Action Parameters
Action Response
SPOTIFY_SAVE_ALBUMS_FOR_CURRENT_USER
Tool Name: Save albums for current user
Description
Action Parameters
Action Response
SPOTIFY_SAVE_TRACKS_FOR_CURRENT_USER
Tool Name: Save tracks for current user
Description
Action Parameters
Action Response
SPOTIFY_ADD_ITEM_TO_PLAYBACK_QUEUE
Tool Name: Add item to playback queue
Description
Action Parameters
Action Response
SPOTIFY_ADD_TRACKS_TO_PLAYLIST
Tool Name: Add items to playlist
Description
Action Parameters
Action Response
SPOTIFY_CHANGE_PLAYLIST_DETAILS
Tool Name: Change playlist details
Description
Action Parameters
Action Response
SPOTIFY_CHECK_IF_USERS_FOLLOW_PLAYLIST
Tool Name: Check if users follow playlist
Description
Action Parameters
Action Response
SPOTIFY_CHECK_IF_USER_FOLLOWS_ARTISTS_OR_USERS
Tool Name: Check if user follows artists or users
Description
Action Parameters
Action Response
SPOTIFY_CHECK_USER_S_SAVED_ALBUMS
Tool Name: Check user s saved albums
Description
Action Parameters
Action Response
SPOTIFY_CHECK_USER_S_SAVED_AUDIOBOOKS
Tool Name: Check user s saved audiobooks
Description
Action Parameters
Action Response
SPOTIFY_CHECK_USER_S_SAVED_EPISODES
Tool Name: Check user s saved episodes
Description
Action Parameters
Action Response
SPOTIFY_CHECK_USER_S_SAVED_SHOWS
Tool Name: Check user s saved shows
Description
Action Parameters
Action Response
SPOTIFY_CHECK_USER_S_SAVED_TRACKS
Tool Name: Check user s saved tracks
Description
Action Parameters
Action Response
SPOTIFY_FOLLOW_ARTISTS_OR_USERS
Tool Name: Follow artists or users
Description
Action Parameters
Action Response
SPOTIFY_FOLLOW_PLAYLIST
Tool Name: Follow playlist
Description
Action Parameters
Action Response
SPOTIFY_GET_ALBUM
Tool Name: Get album
Description
Action Parameters
Action Response
SPOTIFY_GET_ALBUM_TRACKS
Tool Name: Get album tracks
Description
Action Parameters
Action Response
SPOTIFY_GET_AN_ARTIST
Tool Name: Get artist
Description
Action Parameters
Action Response
SPOTIFY_GET_AN_ARTISTS_ALBUMS
Tool Name: Get artist s albums
Description
Action Parameters
Action Response
SPOTIFY_GET_AN_ARTISTS_TOP_TRACKS
Tool Name: Get artist s top tracks
Description
Action Parameters
Action Response
SPOTIFY_GET_AN_AUDIOBOOK
Tool Name: Get an audiobook
Description
Action Parameters
Action Response
SPOTIFY_GET_ARTIST
Tool Name: Get artist
Description
Action Parameters
Action Response
SPOTIFY_GET_ARTIST_S_ALBUMS
Tool Name: Get artist s albums
Description
Action Parameters
Action Response
SPOTIFY_GET_AUDIOBOOK_CHAPTERS
Tool Name: Get audiobook chapters
Description
Action Parameters
Action Response
SPOTIFY_GET_AVAILABLE_DEVICES
Tool Name: Get available devices
Description
Action Parameters
Action Response
SPOTIFY_GET_AVAILABLE_GENRE_SEEDS
Tool Name: Get available genre seeds
Description
Action Parameters
Action Response
SPOTIFY_GET_AVAILABLE_MARKETS
Tool Name: Get available markets
Description
Action Parameters
Action Response
SPOTIFY_GET_A_CHAPTER
Tool Name: Get a chapter
Description
Action Parameters
Action Response
SPOTIFY_GET_A_LIST_OF_CURRENT_USERS_PLAYLISTS
Tool Name: Get current user s playlists
Description
Action Parameters
Action Response
SPOTIFY_GET_A_SHOWS_EPISODES
Tool Name: Get show episodes
Description
Action Parameters
Action Response
SPOTIFY_GET_A_USERS_AVAILABLE_DEVICES
Tool Name: Get available devices
Description
Action Parameters
Action Response
SPOTIFY_GET_CATEGORY_S_PLAYLISTS
Tool Name: Get category s playlists
Description
Action Parameters
Action Response
SPOTIFY_GET_CURRENTLY_PLAYING_TRACK
Tool Name: Get currently playing track
Description
Action Parameters
Action Response
SPOTIFY_GET_CURRENT_USERS_PROFILE
Tool Name: Get current user s profile
Description
Action Parameters
Action Response
SPOTIFY_GET_CURRENT_USER_S_PLAYLISTS
Tool Name: Get current user s playlists
Description
Action Parameters
Action Response
SPOTIFY_GET_CURRENT_USER_S_PROFILE
Tool Name: Get current user s profile
Description
Action Parameters
Action Response
SPOTIFY_GET_EPISODE
Tool Name: Get episode
Description
Action Parameters
Action Response
SPOTIFY_GET_FEATURED_PLAYLISTS
Tool Name: Get featured playlists
Description
Action Parameters
Action Response
SPOTIFY_GET_FOLLOWED_ARTISTS
Tool Name: Get followed artists
Description
Action Parameters
Action Response
SPOTIFY_GET_INFORMATION_ABOUT_THE_USERS_CURRENT_PLAYBACK
Tool Name: Get playback state
Description
Action Parameters
Action Response
SPOTIFY_GET_LIST_USERS_PLAYLISTS
Tool Name: Get user s playlists
Description
Action Parameters
Action Response
SPOTIFY_GET_NEW_RELEASES
Tool Name: Get new releases
Description
Action Parameters
Action Response
SPOTIFY_GET_PLAYBACK_STATE
Tool Name: Get playback state
Description
Action Parameters
Action Response
SPOTIFY_GET_PLAYLIST_COVER_IMAGE
Tool Name: Get playlist cover image
Description
Action Parameters
Action Response
SPOTIFY_GET_PLAYLIST_ITEMS
Tool Name: Get playlist items
Description
Action Parameters
Action Response
SPOTIFY_GET_QUEUE
Tool Name: Get the user s queue
Description
Action Parameters
Action Response
SPOTIFY_GET_RECENTLY_PLAYED
Tool Name: Get recently played tracks
Description
Action Parameters
Action Response
SPOTIFY_GET_RECENTLY_PLAYED_TRACKS
Tool Name: Get recently played tracks
Description
Action Parameters
Action Response
SPOTIFY_GET_RECOMMENDATIONS
Tool Name: Get recommendations
Description
Action Parameters
Action Response
SPOTIFY_GET_SEVERAL_ALBUMS
Tool Name: Get several albums
Description
Action Parameters
Action Response
SPOTIFY_GET_SEVERAL_ARTISTS
Tool Name: Get several artists
Description
Action Parameters
Action Response
SPOTIFY_GET_SEVERAL_AUDIOBOOKS
Tool Name: Get several audiobooks
Description
Action Parameters
Action Response
SPOTIFY_GET_SEVERAL_BROWSE_CATEGORIES
Tool Name: Get several browse categories
Description
Action Parameters
Action Response
SPOTIFY_GET_SEVERAL_CHAPTERS
Tool Name: Get several chapters
Description
Action Parameters
Action Response
SPOTIFY_GET_SEVERAL_EPISODES
Tool Name: Get several episodes
Description
Action Parameters
Action Response
SPOTIFY_GET_SEVERAL_SHOWS
Tool Name: Get several shows
Description
Action Parameters
Action Response
SPOTIFY_GET_SEVERAL_TRACKS
Tool Name: Get several tracks
Description
Action Parameters
Action Response
SPOTIFY_GET_SEVERAL_TRACKS_AUDIO_FEATURES
Tool Name: Get several tracks audio features
Description
Action Parameters
Action Response
SPOTIFY_GET_SINGLE_BROWSE_CATEGORY
Tool Name: Get single browse category
Description
Action Parameters
Action Response
SPOTIFY_GET_THE_USERS_CURRENTLY_PLAYING_TRACK
Tool Name: Get currently playing track
Description
Action Parameters
Action Response
SPOTIFY_GET_THE_USER_S_QUEUE
Tool Name: Get the user s queue
Description
Action Parameters
Action Response
SPOTIFY_GET_TRACK
Tool Name: Get track
Description
Action Parameters
Action Response
SPOTIFY_GET_TRACK_S_AUDIO_ANALYSIS
Tool Name: Get track s audio analysis
Description
Action Parameters
Action Response
SPOTIFY_GET_TRACK_S_AUDIO_FEATURES
Tool Name: Get track s audio features
Description
Action Parameters
Action Response
SPOTIFY_GET_USERS_PROFILE
Tool Name: Get user s profile
Description
Action Parameters
Action Response
SPOTIFY_GET_USERS_SAVED_TRACKS
Tool Name: Get user s saved tracks
Description
Action Parameters
Action Response
SPOTIFY_GET_USERS_TOP_ARTISTS
Tool Name: Get user s top artists
Description
Action Parameters
Action Response
SPOTIFY_GET_USERS_TOP_TRACKS
Tool Name: Get user s top tracks
Description
Action Parameters
Action Response
SPOTIFY_GET_USER_S_PLAYLISTS
Tool Name: Get user s playlists
Description
Action Parameters
Action Response
SPOTIFY_GET_USER_S_PROFILE
Tool Name: Get user s profile
Description
Action Parameters
Action Response
SPOTIFY_GET_USER_S_SAVED_ALBUMS
Tool Name: Get user s saved albums
Description
Action Parameters
Action Response
SPOTIFY_GET_USER_S_SAVED_AUDIOBOOKS
Tool Name: Get user s saved audiobooks
Description
Action Parameters
Action Response
SPOTIFY_GET_USER_S_SAVED_EPISODES
Tool Name: Get user s saved episodes
Description
Action Parameters
Action Response
SPOTIFY_GET_USER_S_SAVED_SHOWS
Tool Name: Get user s saved shows
Description
Action Parameters
Action Response
SPOTIFY_GET_USER_S_SAVED_TRACKS
Tool Name: Get user s saved tracks
Description
Action Parameters
Action Response
SPOTIFY_GET_USER_S_TOP_ARTISTS
Tool Name: Get user s top artists
Description
Action Parameters
Action Response
SPOTIFY_GET_USER_S_TOP_TRACKS
Tool Name: Get user s top tracks
Description
Action Parameters
Action Response
SPOTIFY_PAUSE_PLAYBACK
Tool Name: Pause playback
Description
Action Parameters
Action Response
SPOTIFY_REMOVE_PLAYLIST_ITEMS
Tool Name: Remove playlist items
Description
Action Parameters
Action Response
SPOTIFY_REMOVE_USERS_SAVED_ALBUMS
Tool Name: Remove users saved albums
Description
Action Parameters
Action Response
SPOTIFY_REMOVE_USER_S_SAVED_AUDIOBOOKS
Tool Name: Remove user s saved audiobooks
Description
Action Parameters
Action Response
SPOTIFY_REMOVE_USER_S_SAVED_EPISODES
Tool Name: Remove user s saved episodes
Description
Action Parameters
Action Response
SPOTIFY_REMOVE_USER_S_SAVED_SHOWS
Tool Name: Remove user s saved shows
Description
Action Parameters
Action Response
SPOTIFY_REMOVE_USER_S_SAVED_TRACKS
Tool Name: Remove user s saved tracks
Description
Action Parameters
Action Response
SPOTIFY_SAVE_ALBUMS_USER
Tool Name: Save albums for current user
Description
Action Parameters
Action Response
SPOTIFY_SAVE_AUDIOBOOKS_FOR_CURRENT_USER
Tool Name: Save audiobooks for current user
Description
Action Parameters
Action Response
SPOTIFY_SAVE_EPISODES_FOR_CURRENT_USER
Tool Name: Save episodes for current user
Description
Action Parameters
Action Response
SPOTIFY_SAVE_SHOWS_FOR_CURRENT_USER
Tool Name: Save shows for current user
Description
Action Parameters
Action Response
SPOTIFY_SEARCH
Tool Name: Search for item
Description
Action Parameters
Action Response
SPOTIFY_SEARCH_FOR_ITEM
Tool Name: Search for item
Description
Action Parameters
Action Response
SPOTIFY_SEEK_TO_POSITION
Tool Name: Seek to position
Description
Action Parameters
Action Response
SPOTIFY_SET_PLAYBACK_VOLUME
Tool Name: Set playback volume
Description
Action Parameters
Action Response
SPOTIFY_SET_REPEAT_MODE
Tool Name: Set repeat mode
Description
Action Parameters
Action Response
SPOTIFY_SKIP_TO_NEXT
Tool Name: Skip to next
Description
Action Parameters
Action Response
SPOTIFY_SKIP_TO_PREVIOUS
Tool Name: Skip to previous
Description
Action Parameters
Action Response
SPOTIFY_SKIP_USERS_PLAYBACK_TO_NEXT_TRACK
Tool Name: Skip to next
Description
Action Parameters
Action Response
SPOTIFY_START_A_USERS_PLAYBACK
Tool Name: Start resume playback
Description
Action Parameters
Action Response
SPOTIFY_START_RESUME_PLAYBACK
Tool Name: Start resume playback
Description
Action Parameters
Action Response
SPOTIFY_TOGGLE_PLAYBACK_SHUFFLE
Tool Name: Toggle playback shuffle
Description
Action Parameters
Action Response
SPOTIFY_TRANSFER_PLAYBACK
Tool Name: Transfer playback
Description
Action Parameters
Action Response
SPOTIFY_UNFOLLOW_ARTISTS_OR_USERS
Tool Name: Unfollow artists or users
Description
Action Parameters
Action Response
SPOTIFY_UNFOLLOW_PLAYLIST
Tool Name: Unfollow playlist
Description
Action Parameters
Action Response
SPOTIFY_UPDATE_PLAYLIST_ITEMS
Tool Name: Update playlist items
Description
Action Parameters
Action Response