Herald
OpenapiApi keys

Get a specific API Key by ID

Retrieves details of an API key. Hash and plaintext are never exposed.

GET
/api/api-keys/{apiKeyId}

Retrieves details of an API key. Hash and plaintext are never exposed.

Path Parameters

apiKeyId*string

API Key ID

Response Body

API Key details

application/json
  1. response

API Key list item (never exposes hash or plaintext)

clientAppEnabled?|

Whether the bound Client App is enabled. null when the key has no bound app; false means the key cannot authenticate (the app is the kill switch) — surfaced as a UI warning.

clientAppId?|

Client App this API key is bound to

Formatuuid
clientAppName?|

Client App display name

createdAt*string

Creation time (ISO 8601)

enabled*boolean

Whether the API key is enabled

expiresAt?|

Optional expiration time (ISO 8601)

id*string

API Key UUID

lastUsedAt?|

Last usage time (ISO 8601)

name*string

Human-readable name

realmId*string

Realm this API key belongs to

roles?array<>

Roles assigned to this API key

Example Request
curl -X GET 'https://example.com/api/api-keys/string'
Example Response
{
  "clientAppEnabled": true,
  "clientAppId": "d386372c-64d9-49da-bb8b-4b5eda60f56c",
  "clientAppName": "string",
  "createdAt": "string",
  "enabled": true,
  "expiresAt": "string",
  "id": "string",
  "lastUsedAt": "string",
  "name": "string",
  "realmId": "string",
  "roles": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string"
    }
  ]
}