OAuth 2.0
Refresh tokens
Use a refresh token once to receive a new access token and a replacement refresh token.
POST
/oauth2/tokenSECURITY WARNING: Call this endpoint only from your backend. Never call it from browser or mobile frontend code. Your client secret must never be included in frontend application bundles, shipped to users, or exposed to clients. Reusing a consumed refresh token revokes the token family and associated grant.
Request query parameters
| Field | Type | Description |
|---|---|---|
grant_typerequired | string | Must be refresh_token. |
refresh_tokenrequired | string | The current unused refresh token. |
Response
200 · application/json| Field | Type | Description |
|---|---|---|
access_token | string | New one-hour bearer token. |
refresh_token | string | Replacement refresh token. Discard the token used for this request. |
token_type | string | Bearer. |
expires_in | integer | Access-token lifetime in seconds. |
scope | string | Scopes retained by the authorization grant. |