Hey @Ankoosh Jain - I will assume you are referring to the Apptio OpenToken we generate as part of our API authentication method. If I am incorrect, please elaborate to which Token you are referring.
I, unfortunately, do not have hard documentation to share with you on this topic, but this is what I understand to be true:
- Apptio OpenToken is valid as long as your session is 'active' - meaning there has been some activity utilizing that token within a given time span. I believe this time span is about 30m.
- Apptio OpenToken is valid for a maximum of 12 hrs (if I recall correctly). So, even if you ping the system every 5m, your token will expire after that maximum threshold.
I'll once again restate that the time frames above may be different now from when I hit this same roadblock previously, but the structure detailed above should be an accurate representation and the values close to the truth. I believe both of these limits are in place for security reasons and I believe it would be best practice, if your use case requires a session that spans multiple hours, would be to re-authenticate and generate a new Token each time you need one.