API referenceSections

The password rules of every scope, for forms and the password generator; any signed-in user

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

GET /api/v1/password-policy

The password rules of every scope, for forms and the password generator; any signed-in user

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Responses

200 Rules

Content type: application/json

  • scopes object required
    • panel PublicPasswordRules required
      • min_length integer required

        Shortest password; at least the scope's floor, at most 64

      • min_classes integer required

        Kinds of characters (lower, upper, digit, other) required; 0 or 1 asks for no mix

        • minimum 0
        • maximum 4
      • block_common boolean required

        Refuse common passwords and their simple variations (offline list)

      • block_context boolean required

        Refuse a password containing the account's own name, e-mail or domain

      • generate_length integer required

        How long a generated password for this scope is

    • mailbox PublicPasswordRules required

      Fields of PublicPasswordRules are shown above.

    • ftp PublicPasswordRules required

      Fields of PublicPasswordRules are shown above.

    • database PublicPasswordRules required

      Fields of PublicPasswordRules are shown above.

Example
{
  "scopes": {
    "panel": {
      "min_length": 0,
      "min_classes": 0,
      "block_common": true,
      "block_context": true,
      "generate_length": 0
    },
    "mailbox": {
      "min_length": 0,
      "min_classes": 0,
      "block_common": true,
      "block_context": true,
      "generate_length": 0
    },
    "ftp": {
      "min_length": 0,
      "min_classes": 0,
      "block_common": true,
      "block_context": true,
      "generate_length": 0
    },
    "database": {
      "min_length": 0,
      "min_classes": 0,
      "block_common": true,
      "block_context": true,
      "generate_length": 0
    }
  }
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required