Return cPanel account 2FA config

This function retrieves the cPanel account user's configuration settings for two-factor authentication.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/TwoFactorAuth/get_user_configuration
Request samples
uapi --output=jsonpretty \
  --user=username \
  TwoFactorAuth \
  get_user_configuration
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "get_user_configuration",
  • "module": "TwoFactorAuth",
  • "result": {
    • "data": {
      • "is_enabled": 1,
      • "issuer": "Example WebPros International, LLC"
      },
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}