Skip to main content

Smart City API Reference

32 REST endpoints across 10 functional groups. Base URL: https://api.brainpredict.ai. Auth: Bearer <bp_smart_city_*>.

Conformal prediction + HITL enforcement

Every prediction endpoint returns a conformal interval [lower, upper] at α=0.10 (≥90% PAC coverage). High-risk Annex III endpoints (flood, emergency dispatch, crime score, City Brain) enforce the EU AI Act Art.14 HITL gate when confidence falls below the per-endpoint threshold.

Core platform

GET/api/v1/smart-city/statusPlatform health + live model count + conformal coverage
GET/api/v1/smart-city/modelsList all 35 models with MoE expert binding + risk class

Traffic & mobility

POST/api/v1/smart-city/traffic/signal/adaptAdaptive signal control with conformal band
POST/api/v1/smart-city/traffic/incident/detectReal-time incident detection on CCTV frames
GET/api/v1/smart-city/traffic/corridor/{id}/stateCorridor state + predicted wait times
POST/api/v1/smart-city/mobility/routing/multimodalMultimodal OD routing + modal-share optimisation

Energy grid

POST/api/v1/smart-city/energy/forecast24h substation load forecast + conformal ICP
POST/api/v1/smart-city/energy/demand-responseDR dispatch under EU EED — returns action plan
POST/api/v1/smart-city/energy/renewable/forecastSolar / wind generation forecast
POST/api/v1/smart-city/energy/battery/optimiseBattery fleet dispatch (ToU + frequency)

Emergency & safety

POST/api/v1/smart-city/emergency/flood/predictFlood early-warning — HITL-gated (Annex III)
POST/api/v1/smart-city/emergency/dispatchMulti-agency dispatch — HITL-gated
POST/api/v1/smart-city/safety/air-quality/forecastPM2.5 / NO₂ / O₃ 72h forecast
POST/api/v1/smart-city/safety/crime/scoreHotspot score — HITL-gated + fairness-constrained

Water & environment

POST/api/v1/smart-city/water/demand/forecastDaily demand + leak candidate list
POST/api/v1/smart-city/waste/route/optimiseCollection route optimisation
POST/api/v1/smart-city/env/heat-island/predictUHI micro-climate prediction

City Brain & infrastructure

POST/api/v1/smart-city/brain/decideCross-domain City Brain orchestrator — HITL-gated
POST/api/v1/smart-city/infra/health/scoreBridge / tunnel / pipeline fatigue score
POST/api/v1/smart-city/privacy/risk/scorePer-endpoint DP-ε + GDPR exposure scoring

ESG & ISO 37120

POST/api/v1/smart-city/kpi/ingestIngest ISO 37120 indicators (energy / water / waste / mobility)
GET/api/v1/smart-city/esg/dashboardLive CSRD ESRS dashboard — E1/E2/E3/E5/S1
POST/api/v1/smart-city/esg/csrd/exportExport XBRL/iXBRL CSRD report with evidence chain

Digital Twin Federation (BP-106)

POST/api/v1/smart-city/federation/joinJoin multi-city consortium with DP-ε
POST/api/v1/smart-city/federation/syncRun FedAvg round — returns aggregated KPI model
GET/api/v1/smart-city/federation/statusFederation health + correlation graph
POST/api/v1/smart-city/federation/correlatePearson ICP correlation discovery across cities

Sovereign deployment (BP-105a claim 4)

POST/api/v1/smart-city/sovereign/manifest/verifyVerify Ed25519-signed deployment manifest
POST/api/v1/smart-city/sovereign/kit/buildBuild air-gapped 35-model kit for RPi4 CM4+
GET/api/v1/smart-city/sovereign/attestationBLP MAC + Dilithium-3 runtime attestation

Cross-platform bridges (BP-105a)

GET/api/v1/smart-city/bridges/finance/statusSC × Finance bridge — CSRD E1 accrual + IAS 16 CapEx
GET/api/v1/smart-city/bridges/risk/statusSC × Risk bridge — DORA Art.11 + NIS2 Art.21
GET/api/v1/smart-city/bridges/operations/statusSC × Operations bridge — ISO 55000 + EU EED