Skip to content
GET
/v1/variants/passwords
curl --request GET \
--url 'https://api.proxymail.qa/v1/variants/passwords?min_length=8&max_length=64&symbols=true' \
--header 'Authorization: Bearer <token>'

Values for testing what a form does with a password, within its rules: accept (exactly the minimum and the maximum, each symbol class including quotes, a backslash and a space, non-ASCII letters), reject (one under the minimum, one over the maximum, a symbol where none are allowed) and decide (only digits, only lower case, a space at the start or end, an emoji, composed and decomposed accents, and when the maximum is over 72 a pair sharing their first 72 bytes, which bcrypt stops at: apps differ, so note what the app did). Each call makes fresh values. See https://proxymail.qa/docs/unusual-names-and-passwords.

min_length
integer
default: 8 >= 1 <= 256

The field’s minimum length.

max_length
integer
default: 64 >= 1 <= 1024

The field’s maximum length.

symbols
boolean
default: true

Whether the field allows symbols.

The variants

Media typeapplication/json
object
min_length
integer
max_length
integer
symbols
boolean
accept
Array<object>
object
tests

What the value checks, e.g. “A hyphen”.

string
value

What to type into the field, exactly.

string
reject
Array<object>
object
tests

What the value checks, e.g. “A hyphen”.

string
value

What to type into the field, exactly.

string
decide
Array<object>
object
tests

What the value checks, e.g. “A hyphen”.

string
value

What to type into the field, exactly.

string

Example generated

{
"min_length": 1,
"max_length": 1,
"symbols": true,
"accept": [
{
"tests": "example",
"value": "example"
}
],
"reject": [
{
"tests": "example",
"value": "example"
}
],
"decide": [
{
"tests": "example",
"value": "example"
}
]
}

An error

Media typeapplication/json
object
error
string
message
string

Example generated

{
"error": "example",
"message": "example"
}