What version of Music Assistant has the issue?
2.7.11
How is the MA server installed?
Home Assistant OS Addon
Mandatory: Carefully read the Troubleshooting FAQ and confirm that
As Applicable: Carefully read the Troubleshooting FAQ and confirm that
The problem
Spotify playlist playback returns 403 Forbidden. Individual tracks play fine.
Error from logs:
ERROR (MainThread) [music_assistant.webserver] Error handling message: player_queues/play_media: 403, message='Forbidden', url='https://api.spotify.com/v1/playlists/{id}/tracks?limit=1&offset=0&market=from_token&country=from_token'
Root cause
Spotify's February 2026 API changes removed GET /playlists/{id}/tracks and replaced it with GET /playlists/{id}/items.
The current stable Spotify provider (provider.py line 591) still uses the old endpoint:
uri = "me/tracks" if is_liked_songs else f"playlists/{prov_playlist_id}/tracks"
Additional methods that need updating:
- Line 685:
add_playlist_tracks → POST /playlists/{id}/tracks
- Line 693/700:
remove_playlist_tracks → DELETE /playlists/{id}/tracks
Note: Per Spotify's new policy, playlist contents (items) are only returned for the authenticated user's own playlists. Other users' playlists will only return metadata.
How to reproduce
- Add Spotify as a music provider
- Try to play any playlist
Music Providers
Spotify
Player Providers
AirPlay, DLNA
Full log output
2026-03-19 14:49:36.831 ERROR (MainThread) [music_assistant.webserver] Error handling message: player_queues/play_media: 403, message='Forbidden', url='https://api.spotify.com/v1/playlists/0UgQJRcBfVlMruYbNBaGrd/tracks?limit=1&offset=0&market=from_token&country=from_token'
2026-03-19 14:49:43.828 ERROR (MainThread) [music_assistant.webserver] Error handling message: player_queues/play_media: 403, message='Forbidden', url='https://api.spotify.com/v1/playlists/4zS9mCBwgDyUeAWEUE0r0n/tracks?limit=1&offset=0&market=from_token&country=from_token'
Additional information
Related to #4978. Both stable and dev branches are affected. The fix is straightforward — replace /tracks with /items in the playlist endpoint calls.
What version of Home Assistant Core (if used) are you running
2026.3.2
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Generic x86-64
Have you included ALL of the information specified in the Troubleshooting FAQ or explained why you cannot
What version of Music Assistant has the issue?
2.7.11
How is the MA server installed?
Home Assistant OS Addon
Mandatory: Carefully read the Troubleshooting FAQ and confirm that
As Applicable: Carefully read the Troubleshooting FAQ and confirm that
The problem
Spotify playlist playback returns 403 Forbidden. Individual tracks play fine.
Error from logs:
Root cause
Spotify's February 2026 API changes removed
GET /playlists/{id}/tracksand replaced it withGET /playlists/{id}/items.The current stable Spotify provider (
provider.pyline 591) still uses the old endpoint:Additional methods that need updating:
add_playlist_tracks→POST /playlists/{id}/tracksremove_playlist_tracks→DELETE /playlists/{id}/tracksNote: Per Spotify's new policy, playlist contents (
items) are only returned for the authenticated user's own playlists. Other users' playlists will only return metadata.How to reproduce
Music Providers
Spotify
Player Providers
AirPlay, DLNA
Full log output
Additional information
Related to #4978. Both stable and dev branches are affected. The fix is straightforward — replace
/trackswith/itemsin the playlist endpoint calls.What version of Home Assistant Core (if used) are you running
2026.3.2
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Generic x86-64
Have you included ALL of the information specified in the Troubleshooting FAQ or explained why you cannot