API Expiry Length

27257

In the API registration area there's the token expiry which can be set to 1 month - can someone confirm what 1 month means? 

Is this a literal month in that a key made on the 14th Feb would expire on the 14th March and therefore is valid for 28 days and a key generated in July would be valid for 31 days? Or is actually 4 weeks?

 

Parents
  • Thomson Reuters Thomson Reuters staff member

    Take a look at the body of the response you get from your token generation/refreshment calls:

    {  "access_token": "E_MIswtXer4621_FAKE_eUXQqF5432w",    "expires_in": "2419200",    "refresh_token": "ni343DONTEVENTRYIT3rs234lsv5426ks",    "refresh_token_expires_in": "31536000",    "token_type": "bearer",    "useremail": "user@example.com" }

    Its there in seconds (same goes for refresh token expiry).


    EDIT: The lifespan varies depending on the given month you are in. So if you are in a month with 30 days, the token will expire in + 30 days

Reply
  • Thomson Reuters Thomson Reuters staff member

    Take a look at the body of the response you get from your token generation/refreshment calls:

    {  "access_token": "E_MIswtXer4621_FAKE_eUXQqF5432w",    "expires_in": "2419200",    "refresh_token": "ni343DONTEVENTRYIT3rs234lsv5426ks",    "refresh_token_expires_in": "31536000",    "token_type": "bearer",    "useremail": "user@example.com" }

    Its there in seconds (same goes for refresh token expiry).


    EDIT: The lifespan varies depending on the given month you are in. So if you are in a month with 30 days, the token will expire in + 30 days

Children
No Data