Check if user has password

GET /api/users/{userId}/has-password

Check if the user with the given ID has a password set.

Path parameters

  • userId string Required

    The unique identifier of the user.

Responses

  • 200 application/json

    The result of the check.

    Hide response attribute Show response attribute object
  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    Not Found

GET /api/users/{userId}/has-password
curl \
 -X GET https://[tenant_id].logto.app/api/users/{userId}/has-password
Response examples (200)
{
  "hasPassword": true
}