Herald
OpenapiAuth

Public passkey enablement flag for a Realm.

Reads the `passkey` / `settings` config row and returns `{ enabled }`. The login page uses this to decide whether to render the passkey entry before any passkey endpoint is called, rather than discovering disablement via a 404 from `POST /login/passkey/options`. Anonymous (no authentication).

GET
/api/auth/{realmId}/passkey/status

Reads the passkey / settings config row and returns { enabled }. The login page uses this to decide whether to render the passkey entry before any passkey endpoint is called, rather than discovering disablement via a 404 from POST /login/passkey/options. Anonymous (no authentication).

Path Parameters

realmId*string

Realm ID

Response Body

Passkey status

application/json
  1. response

Public Passkey enablement flags for a Realm.

Mirrors email_otp::status: consumed by the login page to gate the passkey entry before any passkey endpoint is called, instead of relying on a 404 from POST /login/passkey/options to hide it after mount. forceEnabled carries the realm's force mode for the post-login guidance UI (register a passkey) — guidance only, the backend never blocks login on it. Returns { enabled: false, forceEnabled: false } when the config is absent or malformed (opt-in per Realm).

enabled*boolean
forceEnabled*boolean
Example Request
curl -X GET 'https://example.com/api/auth/string/passkey/status'
Example Response
{
  "enabled": true,
  "forceEnabled": true
}