api > thera > apikey > API Key Management

List API Keys

Lists every API key on the company, active and revoked, including legacy ones.

get/companies/{companyId}/api-keys

Request

  • Base URL: https://api.getthera.com
  • URL: https://api.getthera.com/companies/{companyId}/api-keys
  • Auth: API key in header X-Thera-API-Key

Path parameters

companyIdstring required

Response

Response with status 200

idstring required

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.

legacyboolean required

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.

namestring required
last4string required
createdAtstring required
createdByUserIdstring
createdByNamestring

Display name of the admin who issued the key, resolved for the settings page.

lastUsedstring
expiresAtstring
activeboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.