latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

Authentication
Two-Factor Authentication

Return 2FA policy status

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

get/twofactorauth_policy_status

Response

HTTP Request was successful.

Example response

{
  "data": {
    "is_enabled": 1
  },
  "metadata": {
    "command": "twofactorauth_policy_status",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}