Code lengths and limits for the sign-in screens
GET
/cognito/auth-policy
The numbers a sign-in screen draws and the API enforces, from one place on the server: how many digits the email verification code has and how long it lasts, every length a password reset code can have, the password length bounds, and how recent a sign-in must be to create a password. A client reads them here instead of writing them into a field.
The answer is the same for every caller. In particular passwordResetCode.lengths is the whole set of lengths, never the one a given address would receive, so it says nothing about whether an address has an account.
No authentication. Rate limited at 300 requests/minute per IP. Cacheable for five minutes.
Responses
The policy
application/json
JSON
"string"