AI-Powered Facility Intelligence APIs
Not raw sensor dumps. Pre-computed hygiene scores, predictive maintenance alerts, supply forecasts, and occupancy analytics. One API call — full picture.
{
"ok": true,
"buildings": [{
"name": "Sigma AVIT Tower",
"wellness_scores": { ... },
"floors": [{
"name": "4th Floor",
"washrooms": [{
"name": "4F Male Washroom",
"wellness_scores": { ... },
"supplies": { "soap": "82%", "paper": "45%" },
"footfall": { "today": 342, "peak_hour": "10 AM" },
"environment": { "aqi": "Good", "temp": "24°C" }
}]
}]
}],
"totalElements": 1
}AI-computed composite scores at every level — building, floor, and washroom. Derived from sensors, feedback, and operations.
Infra, supplies, footfall, environment, maintenance, and historical trends — each bucket powers a dashboard view.
Full hierarchy in a single request — buildings, floors, washrooms, devices, and scores. No pagination needed.
Built for Integrators
Everything you need to embed MyHub intelligence into your dashboards, apps, and workflows
AI-Powered Scores
Hygiene and experience scores computed per washroom, floor, and building — not raw sensor values
Interactive Docs
Explore and test every endpoint in your browser with auto-injected JWT authentication
Code Snippets
Auto-generated examples in cURL, JavaScript, Python — copy-paste into your codebase
Role-Based Access
Partners see only their endpoints. Download the OpenAPI spec to generate typed SDKs
Bucket APIs
Pre-aggregated, dashboard-ready endpoints — each one designed to power a specific view in your application
Infrastructure + Scores
GET /buildings/infraFull building hierarchy with AI-computed hygiene and experience scores at every level — building, floor, and washroom
Supply Intelligence
GET /buildings/suppliesReal-time consumable levels (soap, paper, bins) with device labels and battery health for proactive refills
Footfall Analytics
GET /buildings/footfallPeople counter data per washroom — identify peak hours, usage patterns, and cleaning schedule triggers
Environment Monitoring
GET /buildings/environmentAir quality, temperature, humidity, and ammonia readings with device-level granularity
Smart Maintenance
GET /buildings/smart-maintenanceSensor health, battery levels, and device activity status — predict hardware failures before they happen
Period Scores
GET /buildings/period-scoresHistorical hygiene and experience score averages for any date range — track improvement trends over weeks and months
Get Started in Minutes
Sign Up
Get your partner account from MyHub
Authenticate
Sign in at the API portal to get your JWT token
Explore
Browse endpoints, test with live data, view real responses
Integrate
Copy code snippets or download the OpenAPI spec for SDK generation
Works With Your Stack
Standard REST APIs — use any HTTP client or generate typed SDKs from our OpenAPI spec
const res = await fetch(
"https://api.myhub.co.in/buildings/infra",
{ headers: { Authorization: `Bearer ${token}` } }
);
const { buildings } = await res.json();
// buildings[0].wellness_scoresimport requests
res = requests.get(
"https://api.myhub.co.in/buildings/supplies",
headers={"Authorization": f"Bearer {token}"}
)
for supply in res.json()["supplies"]:
if supply["level_cm"] < 20:
print(f"Refill: {supply['device_label']}")# Get wellness scores for all buildings
curl https://api.myhub.co.in/buildings/infra \
-H "Authorization: Bearer <token>"
# Get historical score trends
curl "https://api.myhub.co.in/buildings/\
period-scores?startTs=1706745600000\
&endTs=1709424000000" \
-H "Authorization: Bearer <token>"Ready to Integrate?
Get access to MyHub APIs and start embedding facility intelligence into your systems