Redeem an authorization/device code or rotate a refresh token.

post/oauth/token

Request

  • Base URL: https://paperagent.dev
  • URL: https://paperagent.dev/oauth/token
  • Auth: none required

Request body

grant_typestring required
client_idstring
device_codestring
codestring
redirect_uristring
code_verifierstring
refresh_tokenstring
scopestring
resourcestring

Response

One-hour PaperAgent access token and rotating 30-day refresh token.

access_tokenstring
refresh_tokenstring
token_type'Bearer'
expires_in3600
scopestring

Changes

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