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?