Announcements
From 28th September 2026, Community private messages will no longer be available. If you have any private messages you'd like to keep, please save or copy them using these steps before this date. Thank you.

Help Wizard

Step 1

NEXT STEP

Transfer playback to null device

Transfer playback to null device

Is it possible to transfer playback to a null device with the Spotify API? Aka clear the active device?

I did this but it's not working:

static async clearDevicePlayback(): Promise<void> {
try {
// Simply clear the active device by setting empty device_ids
await this.spotifyApiRequest('me/player', {
method: 'PUT',
body: JSON.stringify({
device_ids: [],
play: false
})
})
} catch (error) {
console.error('Error clearing device playback:', error)
}
}
Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 5 years ago  in Social & Random