Skip to content

Renew token

Request

To keep your session alive, use the ID and password issued to you to renew your token. If your token is expired, you are issued a new token.

Security
SSO_TOKEN
JavaScript
const resp = await fetch(
  `https://docs.fxinside.net/_mock/openapi/integral-api-reference/rest/v2/sso/token/renew`,
  {
    method: 'GET',
    headers: {
      SSO_TOKEN: 'YOUR_API_KEY_HERE'
    }
  }
);

const data = await resp.text();
console.log(data);

Responses

Object with updated token expiry time. If your token was expired, the new access token is in SSO_TOKEN of the response header.

Bodyapplication/json
statusstring, <= 36 characters

Request status.

errorCodestring or null, <= 64 characters

Error code, if any.

responseTuplesobject or null

List of JSON objects with additional information on the response, if any.

validboolean

Whether or not the token is valid.

expiryTimeinteger, (int64)

Expiry time of API session in milliseconds.

apiVersionstring, <= 32 characters

The API version that you are interacting with.

expiredboolean

Whether or not the token is expired.

Response
{ "status": "OK", "valid": true, "expiryTime": 1603829916338, "apiVersion": "1.0", "expired": false }