Exchange tokens
POST
/oauth/token
Supports authorization_code and refresh_token grants. client_id is required for authorization_code. In refresh_token, client_id is optional and, if provided, must match the client bound to the refresh token.
Request Body
application/x-www-form-urlencoded
grant_type
string
Required
Valid values
"authorization_code""refresh_token"client_id
string
Required for authorization_code. Optional for refresh_token; if provided, it must match the client bound to the refresh token.
Format
"uuid"code
string
Required when grant_type=authorization_code.
redirect_uri
string
Required when grant_type=authorization_code. Must exactly match the application's registered redirect URI.
Format
"uri"code_verifier
string
Required when grant_type=authorization_code.
refresh_token
string
Required when grant_type=refresh_token.
Responses
OAuth tokens
application/json
{
}
