I am working on developing an app to monitor expiry on api tokens. Currently I am retrieving token expiry information via the system log api, querying for actions from the System Principal with event type system.api_token.revoke. Two questions regarding this:
- Is there any way to preemptively identify tokens before they expire via the api?
- Is there a way to retrieve token information (such as name) via the api? From sys log api I am able to get token id, but I can’t find any documentation for consuming this id. Response also includes an “alternateId” and “displayName” for the token, but both of these are almost always “unknown”.