Skip to main content
GET
/
v1
/
members
/
{id}
/
key-count
Count active API keys created by a member
curl --request GET \
  --url https://api.trulayer.ai/v1/members/{id}/key-count \
  --header 'Authorization: Bearer <token>'
{
  "active_key_count": 1
}

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.

Authorizations

Authorization
string
header
required

SDK API key (tl_...) or Clerk session JWT

Path Parameters

id
string<uuid>
required

Response

Active key count

active_key_count
integer
required

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.

Required range: x >= 0