List API Keys
Lists every API key on the company, active and revoked, including legacy ones.
Authentication
X-Thera-API-Keystring
API Key authentication via header
Path parameters
companyId
Response
This endpoint returns a list of objects.
id
Identifies the key in every other call. The service account for a self-serve key, and the stored hash of the token for a legacy one, which has no service account. The raw secret is never exposed either way.
legacy
True for a key issued before self-serve. Those hold full write access on the /external endpoints and cannot be replaced in place, only revoked and reissued.
name
last4
createdAt
active
createdByUserId
createdByName
Display name of the admin who issued the key, resolved for the settings page.
lastUsed
expiresAt

