Read a user
Any signed in user. Returns one user record together with its branch name. A pharmacist may only read their own record, and an admin may read anyone.
GET
/api/v1/users/{userId}Authorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Path parameters
userIdstringrequiredThe user id.
Responses
200
The user
idstringrequiredbranch_idstringrequiredemailstringrequiredfull_namestringrequiredphonestringrequiredrolestringrequiredis_activebooleanrequiredlast_login_atstring | nullrequiredcreated_atstringrequiredupdated_atstringrequiredbranch_namestring | nullrequired401
Not authenticated
detailstringrequired403
Access forbidden
detailstringrequired404
User not found
detailstringrequired