Return password strength

This function measures the strength of a password.

SecurityBasicAuth
Request
query Parameters
password
required
string

The password.

Example: password=12345luggage
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/get_password_strength
Request samples
whmapi1 --output=jsonpretty \
  get_password_strength \
  password='12345luggage'
Response samples
application/json
{
  • "data": {
    • "strength": 21
    },
  • "metadata": {
    • "command": "get_password_strength",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}