Getting a new Access Token via a Refresh Token
Refresh Tokens that are issued by TrackTik’s OAUTH2 implementation can only be used once. After a new Access Token is granted by means of Refresh Token, it become consumed. The good news is that every request of this sort will issue a NEW Refresh Token that can be captured and used in a subsequent Access Token refresh request.
To get a new Access Token via Refresh Token, simply post to /rest/oauth2/access_token with the following payload:
[POST] /rest/oauth2/access_token
{
"grant_type":"refresh_token",
"client_id":"611741e0195...",
"refresh_token":"def502008ace...",
"client_secret":"ad7acc9f6cc69..."
}The response to this request will include a new Access Token and Refresh Token. Be sure to capture them to continue using and re-authenticating for API access.