Herald
OpenapiRealms

Get realm Email OTP configuration

Retrieves the Email OTP configuration (login enabled + auto-register) for a realm. Requires 'settings.view' permission. Defaults to `{ enabled: false, auto_register: false }` when no config exists.

GET
/api/realms/{realmId}/config/email-otp

Retrieves the Email OTP configuration (login enabled + auto-register) for a realm. Requires 'settings.view' permission. Defaults to { enabled: false, auto_register: false } when no config exists.

Authorization

bearer_auth
headerAuthorizationBearer <token>

Path Parameters

realmId*string

Realm ID

Response Body

Realm Email OTP configuration retrieved

application/json
  1. response
autoRegister*boolean
enabled*boolean
Example Request
curl -X GET 'https://example.com/api/realms/string/config/email-otp'
Example Response
{
  "autoRegister": true,
  "enabled": true
}