OpenapiApi keys
Get a specific API Key by ID
Retrieves details of an API key. Hash and plaintext are never exposed.
GET
Retrieves details of an API key. Hash and plaintext are never exposed.
apiKeyId*stringAPI Key ID
API Key details
application/json- 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
Format
uuidclientAppName?|Client App display name
createdAt*stringCreation time (ISO 8601)
enabled*booleanWhether the API key is enabled
expiresAt?|Optional expiration time (ISO 8601)
id*stringAPI Key UUID
lastUsedAt?|Last usage time (ISO 8601)
name*stringHuman-readable name
realmId*stringRealm this API key belongs to
roles?array<>Roles assigned to this API key
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"
}
]
}