Returns the number of non-revoked API keys the target member
created within the caller’s tenant (TRU-207). The dashboard calls
this from the “remove member” confirmation flow to warn owners
that deleting the user will orphan the “created by” attribution on
the listed keys (the keys themselves survive — the FK is
ON DELETE SET NULL). Reachable by every authenticated role; the
count alone is not sensitive.
Documentation Index
Fetch the complete documentation index at: https://docs.trulayer.ai/llms.txt
Use this file to discover all available pages before exploring further.
SDK API key (tl_...) or Clerk session JWT
Active key count
Number of non-revoked API keys the target member created within
the caller's tenant (TRU-207). Returns 0 for pre-TRU-207 keys
(where created_by_user_id is NULL) and for members who have
not created any keys.
x >= 0