createToken
Changed onGenerate a Bearer token using your client key and client secret for basic authentication.
Request
- Base URLhttps://api.sonos.com
- URLhttps://api.sonos.com/login/v3/oauth/access
- AuthHTTP basic
Query parameters
The type of access token requested. The value must be "authorization_code".
The authorization code provided by the getAuthCode endpoint.
URI of the site that requested the authorization code. This must match one of the redirect URLs that you provided for your client credentials in the integration manager. This must be a client-side request as the Sonos login service displays Web pages to the user to prompt them to login to their Sonos account and allow your integration to access and control their Sonos household.
Headers
Response
200
Changes
- breaking
added the new required
queryrequest parametercode - breaking
added the new required
queryrequest parameterredirect_uri - warning
deleted the
queryrequest parameterrefresh_token - info
api operation id
refreshtokenremoved and replaced withcreatetoken - info
added the new optional
headerrequest parameterContent-Type
- breaking