createToken

Generate a Bearer token using your client key and client secret for basic authentication.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required
Defaults to authorization_code

The type of access token requested. The value must be "authorization_code".

string
required
Defaults to {Your_Auth_Code}

The authorization code provided by the getAuthCode endpoint.

string
required
Defaults to {Your_Redirect_Uri}

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
string
Defaults to application/x-www-form-urlencoded;charset=utf-8
Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json