OAuth 2 Refresh Tokens

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.

2022-07-22 09_26_58-7f14a38c-2021-4408-aa44-34104e728e6c (1874×937).png

Was this article helpful?
0 out of 0 found this helpful

Articles in this section