Player

Transfer Playback

PUT
/me/player

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-state
AuthorizationBearer <token>

Spotify supports OAuth 2.0 for authenticating all API requests.

In: header

Scope: user-modify-playback-state

Request Body

application/json

device_ids*array<string>

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

play?boolean

true: ensure playback happens on new device.false or not provided: keep the current playback state.

[key: string]?any

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"    ]  }'
Empty