Skip to main content
POST
Request an access token

Headers

Authorization
string

Optional HTTP Basic client authentication (Basic base64(client_id:client_secret)), read on form requests only. When present it takes precedence over client_id/client_secret in the form body.

Body

grantType
enum<string>
required
Available options:
password,
client_credentials,
sso_code
Example:

"password"

clientId
string
Example:

"00000000-0000-0000-0000-000000000000"

clientSecret
string
Example:

"00000000-0000-0000-0000-000000000000"

code
string
Example:

"4%2F0AbCd...idp"

codeVerifier
string
Example:

"dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"

password
string
Example:

"password"

state
string
Example:

"kQ7f...opaque"

username
string
Example:

"johndoe"

Response

OK

accessToken
string
required

The issued OAuth2 access token (JWT).

Example:

"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ"

expiresIn
integer<int64>
required

Access token lifetime in seconds.

Example:

3600

refreshToken
string
required

The refresh token to obtain a new access token.

Example:

"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ"

tokenType
string
required

The token type; always "Bearer".

Example:

"Bearer"

idToken
string

The OIDC ID token (JWT).

Example:

"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ"

scope
string

Space-delimited scopes granted to the token.

Example:

"openid profile email"