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 playlistadd_playlist_items
    Adds tracks or episodes to the playlist
  • Create Playlistcreate_playlist
    Creates a new playlist for the current user
  • Get Playback Stateget_playback_state
    Retrieves the current playback state of the player
  • Get Playlist Infoget_playlist_info
    Retrieves details of a playlist
  • Get Playlist Itemsget_playlist_items
    Retrieves the list of items in the playlist
  • Get Playlistsget_playlists
    Retrieves the list of playlists that you created or followed
  • Get Saved Tracksget_saved_tracks
    Retrieves the list of saved tracks for the current user
  • Pausepause
    Pauses the playback
  • Play / Resumeplay
    Resumes or starts playback
  • Remove items from playlistremove_playlist_items
    Removes tracks or episodes from the playlist
  • Reorder playlistreorder_playlist
    Reorders items in the playlist
  • Searchsearch
    Searches for tracks, artists, albums, etc.

All 15 actions with their inputs

Set it up

About two minutes, once per project or once for the whole workspace.

  1. Open Integrations in the builder

    Backend panel, Integrations tab, then Spotify. To connect it for every project, use Workspace settings, Integrations.

  2. 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.

  3. 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 });
    }

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.

Connect Spotify once. Every workflow can use it.