Post Oauth 2 Token

Obtain an OAuth2.1 access token

Authentication

AuthorizationBearer
Bearer token authentication

Request

This endpoint expects an object.
grant_typeenumRequired
OAuth2 grant type
Allowed values:
client_idstringOptional
OAuth2 client ID
client_secretstringOptional
OAuth2 client secret
codestringOptional

Authorization code (for authorization_code grant)

code_verifierstringOptional

PKCE code verifier (for authorization_code grant)

redirect_uristringOptionalformat: "uri"

Redirect URI (for authorization_code grant)

refresh_tokenstringOptional

Refresh token (for refresh_token grant)

resourcestring or list of stringsOptional

Requested token resource(s) (ie audience) to obtain a JWT formatted access token

scopestringOptional

Requested scopes (for client_credentials grant)

Response

Access token response
access_tokenstring
The access token issued by the authorization server
token_typeenum
The type of the token issued
expires_indouble
Lifetime in seconds of the access token
refresh_tokenstring
Refresh token, if issued
scopestring
Scopes granted by the access token
id_tokenstring

ID Token (if OpenID Connect)

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error