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
  • Bad Request

  • Unauthorized

  • Forbidden

  • Not Found

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