List the organization's API keys

gethttps://api.expiryedge.com/v1/getApiKeys
bearer token of a signed-in person (not an API key); role admin60/min
Anfrage
curl 'https://api.expiryedge.com/v1/getApiKeys' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY"
Antwort
{
  "api_keys": [
    {
      "id": "k7Qm2xKpA1",
      "name": "Nightly HR import",
      "prefix": "ee_live_4fQ9",
      "role": "editor",
      "status": "active",
      "created_by": "u_71bXq",
      "created_at": "2026-09-27T14:05:00.000Z",
      "last_used_at": "2026-09-27T22:00:04.000Z",
      "expires_at": null,
      "revoked_at": null
    }
  ]
}

Returns all keys of the caller's organization (active, expired and revoked), newest first. Never returns the key or its hash. last_used_at is updated at most once a minute.

Rückgabe

200
The organization's API keys.
  • api_keysarray of objects

Fehler

401
Missing, expired or invalid bearer token.
403
Authenticated, but your role or organization does not allow this action.
405
The endpoint does not accept this HTTP method.
429
Too many requests for this endpoint from your IP. Wait Retry-After seconds.
500
Unexpected server error. Retry later; quote requestId to support.