List users
Admin only. Returns a page of user records, each with the name of its branch. The list is active by default, so a deactivated record needs is_active false or all.
GET
/api/v1/usersAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Query parameters
pageintegerOne based page number. Defaults to 1.
page_sizeintegerRows per page, capped at 200. Defaults to 20.
rolestringFilter to one role, admin or pharmacist. Empty returns every role.
is_activestringtrue, false, or all. Defaults to true.
Responses
200
A page of users
totalintegerrequiredmin -9007199254740991 · max 9007199254740991
pageintegerrequiredmin -9007199254740991 · max 9007199254740991
page_sizeintegerrequiredmin -9007199254740991 · max 9007199254740991
itemsobject[]requiredShow propertiesHide properties
Array of
objectidstringrequiredbranch_idstringrequiredemailstringrequiredfull_namestringrequiredphonestringrequiredrolestringrequiredis_activebooleanrequiredlast_login_atstring | nullrequiredcreated_atstringrequiredupdated_atstringrequiredbranch_namestring | nullrequired401
Not authenticated
detailstringrequired403
Caller is not an admin
detailstringrequired