MCP Gateway
ApiUsers

Get user statistics

Return aggregate user statistics for the admin dashboard including counts by role and pending invitations. Requires ADMIN or OWNER role.

GET
/api/v1/users/stats

Authorization

User API Key
AuthorizationBearer <token>

User API key (mgw_usr_live_* or mgw_usr_test_*)

In: header

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"
    }
  ]
}