Herald
OpenapiRealms

Get realm TOTP configuration and statistics

Retrieves the TOTP configuration for a realm along with statistics about TOTP adoption including total users, enabled users, disabled users, and enablement rate. Requires 'settings.view' permission.

GET
/api/realms/{realmId}/config/totp

Retrieves the TOTP configuration for a realm along with statistics about TOTP adoption including total users, enabled users, disabled users, and enablement rate. Requires 'settings.view' permission.

Authorization

bearer_auth
headerAuthorizationBearer <token>

Path Parameters

realmId*string

Realm ID

Response Body

Realm TOTP configuration retrieved

application/json
  1. response
enabled*boolean
forceEnabled*boolean
statistics*
Example Request
curl -X GET 'https://example.com/api/realms/string/config/totp'
Example Response
{
  "enabled": true,
  "forceEnabled": true,
  "statistics": {
    "enablementRate": 0.1,
    "totalUsers": 0,
    "totpDisabledUsers": 0,
    "totpEnabledUsers": 0
  }
}