Successful response
Exchange a grant for OAuth tokens
Issues an access token and a refresh token in exchange for a valid grant.
Three grant types are supported: "authorization_code", "refresh_token",
and "urn:ietf:params:oauth:grant-type:device_code".
For "authorization_code" grants, supply code, client, redirect_uri, and
optionally code_verifier for PKCE flows. Each authorization code is single-use;
consuming it a second time returns invalid_grant.
For "refresh_token" grants, supply refresh_token. Resource-bound public
clients must also supply client. The endpoint rotates the refresh token on
every call and returns a fresh pair of tokens.
For device-code grants, supply device_code and client. Poll this endpoint
after receiving authorization_pending until the user approves or the code
expires. Slow down polling if you receive slow_down.
This endpoint is rate-limited to 20 requests per IP per 60 seconds. Exceeding
the limit returns HTTP 429 with "error": "too_many_requests".
Request body.
Optionalclient?: stringOAuth client ID identifying the application requesting tokens. Required for "authorization_code", device-code, and resource-bound refresh grants.
Optionalcode?: stringSingle-use authorization code issued by the authorization endpoint. Required for "authorization_code" grants.
Optionalcode_verifier?: stringPKCE code verifier corresponding to the code_challenge sent in the authorization request. Required when the authorization code was issued with a code challenge; omit otherwise.
Optionaldevice_code?: stringDevice code received from the device authorization endpoint. Required for device-code grants.
The OAuth 2.0 grant type. One of "authorization_code", "refresh_token", or "urn:ietf:params:oauth:grant-type:device_code".
Optionalredirect_uri?: stringRedirect URI that was used in the original authorization request. Must exactly match the URI on record for the client. Required for "authorization_code" grants.
Optionalrefresh_token?: stringRefresh token received from a previous token response. Required for "refresh_token" grants. The token is rotated on each successful call.
Token pair issued for the authenticated user.
List available OAuth scopes Returns the complete set of OAuth scopes that the platform supports. Use this endpoint to discover which scopes are available before constructing an authorization request or rendering a consent UI. No authentication is required. The response is the same for all callers.