Authentication

Exchange OAuth authorization code, device code, or refresh token.

post/oauth/token

Request

  • Base URL: https://commentary.dev
  • URL: https://commentary.dev/oauth/token
  • Auth: none declared

Request body

grant_type'authorization_code' | 'refresh_token' | 'urn:ietf:params:oauth:grant-type:device_code' required
codestring
redirect_uristring uri
client_idstring
code_verifierstring
refresh_tokenstring
device_codestring
resourcestring

Response

Successful response.

access_tokenstring required
refresh_tokenstring required
token_type'Bearer' required
expires_ininteger required
scopestring required

Space-delimited scopes actually granted to this token. Registered OAuth clients may receive a subset of requested scopes.

Changes

No recorded changes to this operation across all 1 revision of this API.