OAuth 2.1
Exchange a code or refresh token
Returns an access token valid for 3,600 seconds. Public clients must use PKCE.
Authentication
Authorizationnot requiredThis endpoint is public and takes no access token.
Body parameters
application/x-www-form-urlencoded
grant_typeauthorization_code | refresh_tokenrequiredThe OAuth grant being exchanged.
client_idstringrequiredThe OAuth client identifier.
codestringAuthorization code. Required for the authorization_code grant.
redirect_uriURLMust exactly match the URI used during authorization.
code_verifierstringPKCE verifier corresponding to the authorization request.
refresh_tokenstringRefresh token. Required for the refresh_token grant.
Responses
200Successful response400The request is invalid429Rate limit exceeded