# API Token info via Developer API

**URL:** <https://devforum.okta.com/t/api-token-info-via-developer-api/13361>\
**Category:** API\
**Created:** [March 15, 2021, 8:34pm UTC](https://devforum.okta.com/t/api-token-info-via-developer-api/13361 "2021-03-15T20:34:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kuinngu](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kuinngu](https://devforum.okta.com/u/kuinngu)\
**Post date:** [March 15, 2021, 8:34pm UTC](https://devforum.okta.com/t/api-token-info-via-developer-api/13361/1 "2021-03-15T20:34:10Z")

</div>

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:

1. Is there any way to preemptively identify tokens before they expire via the api?
2. 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”.

Thanks!

---

<div class="post-metadata">

**Author:** ![erin.p](https://avatars.discourse-cdn.com/v4/letter/e/e480ec/32.png) [@erin.p](https://devforum.okta.com/u/erin.p)\
**Post date:** [March 15, 2021, 9:19pm UTC](https://devforum.okta.com/t/api-token-info-via-developer-api/13361/3 "2021-03-15T21:19:24Z")

</div>

Okta doesn’t have an API for this. [See API Token Management.](https://help.okta.com/en/prod/Content/Topics/Security/API.htm)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [February 6, 2024, 11:19pm UTC](https://devforum.okta.com/t/api-token-info-via-developer-api/13361/4 "2024-02-06T23:19:44Z")

</div>

Closed on February 6, 2024, 11:19pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
