v1
latestOpenAPI 3.1.02026-07-246652306.5 KBgetAuthCode
Use to send a user to the Sonos login service, for example, with a button instructing the user to enable your integration to use Sonos that sends the user to your redirect URI.
Query parameters
Your app key
Value must be "code", for Sonos to send your authorization code.
An opaque value used by the client to maintain state between the request and callback. We recommend that you randomly generate this and check it with the state value Sonos sends back in the response to make sure no cross site forgery happened. See the OAuth 2.0 RFC for details.
The scope of the access request. Currently, there is only one scope: playback-control-all.
URI of site to receive the redirect call with the authorization code. This must match one of the redirect URIs that you provided in the integration manager when you got your client credentials. This must also be URL encoded.
Response
200