Skip to content

GetPasswordPolicy

Returns the active password rules. This endpoint is public so registration and password-change forms can display current requirements before submission.

GET

https://{some_domain}/auth/password-policy

Authorization

No authentication is required.

Success Response

{
  "password": {
    "profile": "strong",
    "min_length": 15,
    "max_length": 128,
    "require_uppercase": false,
    "require_lowercase": false,
    "require_digit": false,
    "require_special": false,
    "reject_common": true
  }
}
Field Type Description
password.profile string compatible, standard, strong, or custom.
password.min_length integer Minimum Unicode code points, from 6 to 128.
password.max_length integer Maximum Unicode code points; currently 128. UTF-8 encoded input is also capped at 512 bytes.
password.require_uppercase boolean Requires at least one ASCII uppercase letter.
password.require_lowercase boolean Requires at least one ASCII lowercase letter.
password.require_digit boolean Requires at least one ASCII digit.
password.require_special boolean Requires at least one ASCII punctuation/symbol character.
password.reject_common boolean Rejects configured common passwords and repeated-character strings.

Errors

HTTP Error Description
503 SECURITY_GUARD_UNAVAILABLE The in-memory security policy is unavailable.