MyHuB
Back to Home
Developer Portal

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.

Open API Docs
GET /buildings/infra — 200 OK
{
  "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
}
Wellness Scores

AI-computed composite scores at every level — building, floor, and washroom. Derived from sensors, feedback, and operations.

6 Buckets

Infra, supplies, footfall, environment, maintenance, and historical trends — each bucket powers a dashboard view.

1 Call

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/infra

Full building hierarchy with AI-computed hygiene and experience scores at every level — building, floor, and washroom

Supply Intelligence

GET /buildings/supplies

Real-time consumable levels (soap, paper, bins) with device labels and battery health for proactive refills

Footfall Analytics

GET /buildings/footfall

People counter data per washroom — identify peak hours, usage patterns, and cleaning schedule triggers

Environment Monitoring

GET /buildings/environment

Air quality, temperature, humidity, and ammonia readings with device-level granularity

Smart Maintenance

GET /buildings/smart-maintenance

Sensor health, battery levels, and device activity status — predict hardware failures before they happen

Period Scores

GET /buildings/period-scores

Historical hygiene and experience score averages for any date range — track improvement trends over weeks and months

Get Started in Minutes

1

Sign Up

Get your partner account from MyHub

2

Authenticate

Sign in at the API portal to get your JWT token

3

Explore

Browse endpoints, test with live data, view real responses

4

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

JavaScript
const res = await fetch(
  "https://api.myhub.co.in/buildings/infra",
  { headers: { Authorization: `Bearer ${token}` } }
);
const { buildings } = await res.json();
// buildings[0].wellness_scores
Python
import 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']}")
cURL
# 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