ApiUsers
Get user statistics
Return aggregate user statistics for the admin dashboard including counts by role and pending invitations. Requires ADMIN or OWNER role.
Authorization
User API Key AuthorizationBearer <token>
User API key (mgw_usr_live_* or mgw_usr_test_*)
In: header
Cookie Parameters
access_token?|
Response Body
application/json
application/json
curl -X GET "https://loading/api/v1/users/stats"{
"total_users": 0,
"active_users": 0,
"deactivated_users": 0,
"pending_invitations": 0,
"by_role": {
"property1": 0,
"property2": 0
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Get user by ID
Return a specific user with permission hints indicating what actions the current admin can perform on this user. Requires ADMIN or OWNER role.
List users
List users with filtering, sorting, and pagination. Supports search by name/email, role filter, and status filter. Requires ADMIN or OWNER role.
