Documentation

GraphQL API: Playback

Set repeat mode on a source

Tracks on an album can be repeated. The repeatMode can be set to repeat all tracks, only one or turn off repeat mode. This is limited to Plus and Premium users and to the track rights.

Repeat mode does not apply to non-ending sources such as Stations and autoplay.

Mutation



mutation {
  playback {
    repeat(deviceUuid:"deviceXYZ",
    sourceId:"AL:1811731", repeatMode: REPEAT_ALL ) {
      status
    }
  }
}

* Add your OAuth bearer token to the Authorization header



curl 'https://ce.pandora.com/api/v1/graphql/graphql' \
  -H 'Authorization: Bearer ' \
  -H 'Content-Type: application/json' \
  -d '{"operationName":null,"variables":{},"query":"mutation {  playback { repeat(deviceUuid: \"deviceXYZ\", sourceId: \"AL:1811731\", repeatMode: REPEAT_ALL) { status }  }}"}'

Response



{
  "data": {
    "playback": {
      "repeat": {
        "status": "OK"
      }
    }
  }
}