OpenAPI

BUILD

Authorization Code flow

Exchange a short-lived authorization code for tokens after interactive consent.

Endpoints
POST /oauth/authorize
POST /oauth/token
ParameterRequirement
client_idRegistered application client ID.
redirect_uriMust exactly match a registered URI.
response_typeAuthorization code flow.
scopeOnly supported API/OIDC scopes.
stateClient-generated CSRF correlation value.
code_challengePKCE challenge.
code_challenge_methodS256.

The code is single-use and bound to the client, redirect URI, user consent, and PKCE verifier. Treat returned access and refresh tokens as bearer secrets.