Skip to main content

Oauth token endpoint

POST 

/v2/oauth/token

Oauth token endpoint to generate access token

Request

Header Parameters

    Authorization string

    Required JWT bearer token for jwt-bearer grant or basic token for client_credentials grant

Body

    grant_type stringrequired

    Possible values: [authorization_code, refresh_token, client_credentials, urn:ietf:params:oauth:grant-type:jwt-bearer]

    assertion string

    Required if grant_type is JWT Bearer Grant

    scope string

    Scopes that will be granted to JWT, space delimited, default to client application's configured scopes

    tenant_connection_code string

    Tenant connection code that client application wants to access, default to application's tenant if not specified

Responses

OK

Schema

    access_token string
    refresh_token string

    Refresh token will be returned or not depends on grant_type

    token_type string

    Access token type (Bearer)

    scopes string[]

    The scopes that the token has

    expires_in int64

    Token expires time in seconds

Loading...