Spotify
Search tracks, manage playlists, and browse your Spotify library. In Appbricx, your workflows and server functions call it by name once it is connected.
What you can do
15 actions, each one call from a workflow or a server function. Triggers come from your app: a row changing, a schedule or a webhook.
- Add items to playlistAdds tracks or episodes to the playlist
add_playlist_items - Create PlaylistCreates a new playlist for the current user
create_playlist - Get Playback StateRetrieves the current playback state of the player
get_playback_state - Get Playlist InfoRetrieves details of a playlist
get_playlist_info - Get Playlist ItemsRetrieves the list of items in the playlist
get_playlist_items - Get PlaylistsRetrieves the list of playlists that you created or followed
get_playlists - Get Saved TracksRetrieves the list of saved tracks for the current user
get_saved_tracks - PausePauses the playback
pause - Play / ResumeResumes or starts playback
play - Remove items from playlistRemoves tracks or episodes from the playlist
remove_playlist_items - Reorder playlistReorders items in the playlist
reorder_playlist - SearchSearches for tracks, artists, albums, etc.
search
Set it up
About two minutes, once per project or once for the whole workspace.
- Open Integrations in the builder
Backend panel, Integrations tab, then Spotify. To connect it for every project, use Workspace settings, Integrations.
- Sign in to Spotify
You sign in to Spotify and approve access. Appbricx keeps the tokens, encrypted, and refreshes them.
This uses an OAuth app: the platform's, or your own from the admin panel, and you can bring your own credentials.
- Call an action
From a workflow, by integration id and action name. The call answers with success, output and, when it fails, the reason.
Workflow // .workflow.js (native ctx) export async function run(ctx) { const res = await ctx.integrations.invoke("spotify", "add_playlist_items", { "playlist_id": "<playlist_id>", "items": [] }); if (!res.success) throw new Error(res.error); ctx.log.info("Spotify answered", { output: res.output }); }
More in Social media
Spotify and its logo are trademarks of their owner, shown only to identify the service this integration connects to. Their use does not imply endorsement by, or affiliation with, that company.