Integration

API and UI Integration Contract

Reference contract for building stable custom frontends without drifting from firmware truth.

Endpoint groups

Need per-route details? Use API Endpoint Reference.

Group Read endpoint(s) Write endpoint(s) Primary purpose
Status + mode GET /api/status POST /api/mode, POST /api/settings Global runtime state and top-level controls
Curves GET /api/curve/speed|throttle|rpm POST /api/curve/speed|throttle|rpm Dynamic mode tuning data
Map GET /api/map, GET /api/maps POST /api/map, /api/maps/* 2D map editing and file management
CAN diagnostics GET /api/canview* POST /api/canview/capture Frame and decoded inspection plus capture-mode state
Logs GET /api/logs* POST /api/logs/delete, /api/logs/clear Operational forensics and cleanup
Network/OTA GET /api/wifi, /api/network, /api/update POST /api/wifi, /api/update/*, /ota/update Connectivity and firmware update control

Frontend implementation rules

  1. Boot each page from GET /api/status whenever practical.
  2. Use explicit save/write actions, not optimistic hidden writes.
  3. After any write, re-read status and reconcile UI from firmware response.
  4. Treat local storage as convenience cache only.
  5. Show transport errors and preserve unsaved draft values in UI.
  6. Do not replicate firmware calculation logic in frontend.

Critical payload contract details

/api/settings

/api/status

Curve/map validation responsibility

Error handling model

Custom UI compatibility checklist

Try the OpenHaldex Firmware Demo

Preview the real OpenHaldex firmware UI in your browser with simulated live CAN traffic and interactive pages for tuning, diagnostics, logs, setup, and OTA workflows.

Open firmware demo