oauth

Token endpoint

Exchange an authorization code (with PKCE code_verifier) or a refresh token for an access token.

post/api/auth/oauth2/token

Request

  • Base URL
    https://api.superset.sh
  • Auth
    none required

Request body application/x-www-form-urlencoded

grant_type'authorization_code' | 'refresh_token' | 'client_credentials' required
codestring
redirect_uristring uri
client_idstring
code_verifierstring
refresh_tokenstring

Response

Standard OAuth token envelope.

access_tokenstring required
token_typestring required
expires_ininteger

Access token lifetime in seconds (3600).

refresh_tokenstring
scopestring
id_tokenstring

Example response

{
  "token_type": "Bearer"
}

Changes

No recorded changes to this operation across all 1 revision of this API.