Return 2FA policy status

This function displays the Two-Factor Authentication (2FA) policy status on the server.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/twofactorauth_policy_status
Request samples
whmapi1 --output=jsonpretty \
  twofactorauth_policy_status
Response samples
application/json
{
  • "data": {
    • "is_enabled": 1
    },
  • "metadata": {
    • "command": "twofactorauth_policy_status",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}