v52

OpenAPI 3.1.0raw.githubusercontent.com2026-07-311,1941,9384.1 MB
OAuth Protocol

OAuth token endpoint

Exchange authorization code, client credentials, or refresh token for access token

post/oauth/token

Request body

client_idstring

OAuth client ID (if not using HTTP Basic auth)

client_secretstring

OAuth client secret (if not using HTTP Basic auth)

codestring

Authorization code (for authorization_code flow)

code_verifierstring

PKCE code verifier (for authorization_code flow)

grant_type'client_credentials' | 'authorization_code' | 'refresh_token' required

OAuth 2.0 grant type

redirect_uristring uri

Redirect URI (for authorization_code flow)

refresh_tokenstring

Refresh token (for refresh_token flow)

scopestring

Space-separated list of requested scopes (for client_credentials)

Example request

{
  "scope": "admin"
}

Response

Token response

access_tokenstring required

The access token

expires_ininteger required

Token lifetime in seconds

refresh_tokenstring

Refresh token (if applicable)

scopestring

Space-separated list of granted scopes

token_type'Bearer' required

Token type