Verify user password

POST /api/users/{userId}/password/verify

Test if the given password matches the user's password.

Path parameters

  • userId string Required

    The unique identifier of the user.

application/json

Body Required

  • password string Required

    Password to verify.

    Minimum length is 1.

Responses

  • 204

    User password matches.

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    Not Found

  • 422

    User password does not match.

POST /api/users/{userId}/password/verify
curl \
 --request POST 'https://[tenant_id].logto.app/api/users/{userId}/password/verify' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"password":"string"}'
Request examples
{
  "password": "string"
}