post/oauth/token

Request

  • Base URL: https://api.useanima.sh/v1
  • URL: https://api.useanima.sh/v1/oauth/token
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Request body

grantType'authorization_code' | 'refresh_token' required
codestring
redirectUristring uri
clientIdstring
codeVerifierstring
refreshTokenstring

Response

OK

accessTokenstring required

oat_* access token; bearer in Authorization header

tokenType'Bearer' required
expiresIninteger required

Seconds until access token expires

refreshTokenstring

Rotating refresh token. Each /token call issues a new RT; the old one is consumed and any further use of it triggers chain revocation.

refreshTokenExpiresIninteger

Seconds until the refresh token expires (~30 days)

scopestring required

Space-delimited granted scope list

Changes

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