Skip to main content

Getting or Refreshing a token

POST 

/auth/v1/token

Error handling: invalid_grant refresh token is invalid or has expired (Log out) internal: System error, please try again later unauthorized_client client secret key is incorrect unsupported_grant_type grant_type is not supported invalid_scope scope is not supported invalid_argument: Parameter error or user input information is incorrect invalid_client The client does not exist permission_denied The client does not exist or has insufficient permissions resource_exhausted User requests exceed the frequency limit

Request

Body

required
    grant_type string
    code Used when grant_type is authorization_code (string)
    refresh_token Used when refreshing token with refresh_token (string)
    username Used when grant_type is password (string)
    password Used when grant_type is password (string)
    scope scope, optional (string)
    nonce Random string, optional (string)
    code_verifier PKCE: code_verifier (string)
    device_code Device Code Flow https://tools.ietf.org/html/rfc8628 (string)

Responses

A successful response.

Schema
    token_type string
    access_token string
    refresh_token string
    id_token string
    expires_in int32
    scope string
    sub string
    groups string[]
    need_weda_resource boolean
Loading...