Spotify currently playing authorisation

How to Modify Authorization Scopes for a Spotify API Application?

I’m currently working on a project using the Spotify API, and I’ve set up my application through the Spotify Developer Dashboard. I’ve successfully created the app and integrated it with my workflow in n8n.

However, I’m running into an issue where I can retrieve the currently playing track, but I’m unable to control playback (e.g., play, pause, next, previous). After some research, I believe the problem might be related to the authorization scopes I’m using.

So far, I’ve set up my application with the client_id and client_secret, and I can authenticate with Spotify. However, I think I need to modify the scopes to include permissions like user-modify-playback-state and user-read-playback-state.

My question is:

  • How do I modify the authorization scopes for my Spotify API application?
  • Is there a way to change the scopes directly in the account Credentials?

Any guidance or examples would be greatly appreciated!

Thanks in advance!

Information on your n8n setup

  • n8n version: 1.56.0
  • n8n EXECUTIONS_PROCESS setting: default
  • Running n8n via docker
  • Operating system: limux

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Welcome to the community @Arylmera :tada:
Hmm, I believe that these scopes you mentioned are automatically applied when you set up an OAuth2 credential in n8n. Do you have an active Spotify device? I think the playback control requires an active device to work.

Hello aya, so in fact it seems that no,

I just found the solution mysleft, by creating a custom OAuth2 credentials and calling the spotify API with a custom HTTP request using that method.

Perhaps this should be updated in the spotify plugin.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.