Check if a password meets the password policy

POST /api/sign-in-exp/default/check-password

Check if a password meets the password policy in the sign-in experience settings.

application/json

Body Required

  • password string Required

    The password to check.

  • userId string

    The user ID to check the password for. It is required if rejects user info is enabled in the password policy.

Responses

POST /api/sign-in-exp/default/check-password
curl \
 -X POST https://[tenant_id].logto.app/api/sign-in-exp/default/check-password \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"password":"string","userId":"string"}'
Request examples
{
  "password": "string",
  "userId": "string"
}
Response examples (200)
{
  "result": true
}
{
  "result": true,
  "issues": [
    {
      "code": "string",
      "interpolation": {}
    }
  ]
}