Transfer Playback
Transfer playback to a new device and optionally begin playback. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.
Authorization
oauth_2_0 user-modify-playback-stateSpotify supports OAuth 2.0 for authenticating all API requests.
In: header
Scope: user-modify-playback-state
Request Body
application/json
A JSON array containing the ID of the device on which playback should be started/transferred.For example:{device_ids:["74ASZWbe4lXaubB36ztrGX"]}Note: Although an array is accepted, only a single device_id is currently supported. Supplying more than one will return 400 Bad Request
true: ensure playback happens on new device.false or not provided: keep the current playback state.
Response Body
application/json
application/json
application/json
curl -X PUT "https://example.com/me/player" \ -H "Content-Type: application/json" \ -d '{ "device_ids": [ "74ASZWbe4lXaubB36ztrGX" ] }'Get Playback State GET
Get information about the user’s current playback state, including track or episode, progress, and active device.
Get Available Devices GET
Get information about a user’s available Spotify Connect devices. Some device models are not supported and will not be listed in the API response.

