Refresh an expired access token
When an access token expires, the client should make the token again and send the call one more time request a new token, then retry the original API call. Comment 2
Prerequisites
- A valid client ID and client secret
- The refresh token returned by the authorization flow
- Access to the /oauth/token endpoint
Content-Type: application/json
{
"grant_type": "refresh_token",
"refresh_token": "<token>"
}
Expected result
The response contains a new access token and its expiration period. Store the token securely and use it in the Authorization header for subsequent requests.