Refreshing access tokens

Refresh the access tokens by using Refresh Tokens.

Procedure

  1. Open any REST Client application.
  2. Make an HTTP POST call with the following details.
    • In the Post URL field, provide the URL.../integration/rest/oAuth/getToken
    • In the Query Parameters field, provide the following query parameters.

      grant_type - The Grant Type value is refresh_token.

      refresh_token - The refresh token that is obtained at the time of generating the tokens.

      Example of an HTTP POST request for refreshing an access token.

      ../integration/rest/oAuth/getToken?grant_type=refresh_token&refresh_token= refresh_token_id

      Note: Select Basic Auth as the Authorization type and specify Client ID and Client Secret as the Username and Password while refreshing the token. Use content-type as application/x-www-form-urlencoded only while calling the OAuth getToken API. The OAuth getToken API call must not include a body. It can have only the Query Parameters.
    An access token is generated that is used to start the service URLs. The Refresh Count value decreases by 1.