Documentation

GraphQL API: Playback

Play/Start a track

Once audio has started playing, either for the first time, or after explicitly being paused, you should notify the playback service by supplying the source info and progress.

Mutation



mutation {
  playback {
    setStarted(deviceUuid: "deviceXYZ", sourceId: "AL:1811731", index: 0, elapsedTime: 200) {
      status
      current {
        ... on TrackItem {
          track {
            name
          }
        }
      }
    }
  }
}

* 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 { setStarted(deviceUuid: \"deviceXYZ\", sourceId: \"AL:1811731\", index: 0, elapsedTime: 200) { status current { ... on TrackItem { track { name } } } }  }}"}'

Response



{
  "data": {
    "playback": {
      "setStarted": {
        "status": "OK",
        "current": {
          "track": {
            "name": "I Still Do"
          }
        }
      }
    }
  }
}