Documentation

GraphQL API: Playback

Replay a track

Tracks in a station/autoplay source can be replayed. This is limited to Plus and Premium users and to the track rights.

Use trackToken to specify which previously played track should be replayed.

Mutation



mutation {
  playback {
    replay (deviceUuid: "deviceXYZ", sourceId: "AU:16716:120399", index: 0, elapsedTime: 200,
    trackToken: "PxdNJwZmAb4VXZfWff-Ffhcdbvv-g-cHwetuxJW68AeKtkBLQyvJEXg") {
       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 { replay(deviceUuid: \"deviceXYZ\", sourceId: \"AU:16716:120399\", index: 0, elapsedTime: 200, trackToken: \"PxdNJwZmAb4VXZfWff-Ffhcdbvv-g-cHwetuxJW68AeKtkBLQyvJEXg\") { status }  }}"}'

Response



{
  "data": {
    "playback": {
      "replay": {
        "status": "OK",
      }
    }
  }
}