Trying to get list of API_ACCESS_TOKEN_CREATED returns nothing

I am trying to audit the API tokens grammatically, so that i can notify users whose token is old and should be rotated.
I am testing using graphql explorer running

{
  organization(slug: $ORG_SLUG) {
    auditEvents(first: 500, type: API_ACCESS_TOKEN_CREATED) {
      edges {
        node {
          type
          occurredAt
          actor {
            name
          }
          subject {
            name
            type
          }
          data
        }
      }
    }
  }
}

returns:

{
  "data": {
    "organization": {
      "auditEvents": {
        "edges": []
      }
    }
  }
}```

I see other events just none to do with API keys. Is there another way for me to get a list of API_KEYS created?

Hey @chanukov!
Thank you for raising this, I think you may have run into a bug in the GraphQL API. Since I was able to reproduce the same results, I’ll raise this with the team to have it looked at. :slight_smile:

Cheers,

Jeremy

Any update here? ETA on possibly getting this looked at or fixed?

Hi @chanukov,

Thanks for checking with us here! As we are currently working on other priority tasks, we don’t have a timeframe yet on this one. We will update you as soon as we have any info on this.

Best,
Nithya