v1

latestOpenAPI 3.1.12026-07-17111158225.7 KB
identity

Exchange authorization code for access token

Exchanges an OAuth 2.0 authorization code for an access token. Used in the authorization code grant flow.

post/oauth/access_token

Request body

client_idstring required
client_secretstring required
codestring required
grant_typestring required
redirect_uristring required

Must match the redirect_uri from the authorization request (used for validation only).

statestring required

Must match the state from the authorization request.

Example request

{
  "grant_type": "authorization_code"
}

Response

Access token issued.

access_tokenstring
token_typestring
scopestring nullable
account_idinteger

Example response

{
  "token_type": "bearer"
}