get /v1/keys
The account's agent keys (never their secrets)
scope budget:read · listKeys
Returns · 200
{ keys: [{ id, name, scopes, created_at, last_used_at, expires_at, days_left, status, expiry_policy, revoked, created_by, mine }] }. status is active, expiring (14 days or fewer), expired or revoked. mine says whether this session may revoke it: the person who minted it, or an admin. Session principals only: a request made with an API key is refused with 403. Keys are Clerk's; this lists them for the person's account (their user, or the organization the session is in).
Example
Errors · besides 401, 429, 500
- 403
forbidden: The key is valid but lacks the scope this call needs. Ask the human to mint a key with the scope named in the message. - 503
keys_unavailable: Key minting is not available on this instance. The human can still create a key in the app's Account section, or ask support.