Gateway API
JSON over HTTPS. Read endpoints are open to guest sessions. Control endpoints need an operator token (Authorization: Bearer OT-..., or token= in the query string for clients that can only send a link). Machine-readable description: /openapi.json.
Read
| GET | /api/v1/stations | Stations and their current tag values |
| GET | /api/v1/tags | Every tag with description, unit, writability and engineering limits |
| GET | /api/v1/alarms | Active alarms |
| GET | /api/v1/commands/log | Commands sent with your token (token required) |
Commands
Commands act on live equipment. Only on-duty HCWD operators, and commissioning engineers whose work order the duty supervisor has approved (see Commissioning access), may send them.
| GET or POST | /api/v1/command | action, target, value, reason, token |
| GET or POST | /api/v1/command/confirm | command_id, supervisor, token |
Actions: start_pump, stop_pump (target a pump: BS2.P1, BS2.P2, W4.WP4, CL1.DP1), open_valve (target PRV7.V7, value = percent), close_valve, write_setpoint (target a setpoint tag, value within its engineering limits), inhibit_alarms (value = minutes). A command is answered 202 pending_confirmation with a command_id, and runs once confirmed.
GET /api/v1/command?token=YOUR_TOKEN&action=start_pump&target=BS2.P2&reason=YOUR_REASON
GET /api/v1/command/confirm?token=YOUR_TOKEN&command_id=C-XXXXXXXX&supervisor=SUPERVISOR_NAME
POST /api/v1/command
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{"action": "write_setpoint", "target": "TK1.PUMP_START.SP", "value": 17.5, "reason": "..."}
Historian export
The historian export settings for the data migration (bucket and service account for the nightly trend export) are at /api/v1/historian/export-config, for commissioning tokens only.
Tool bridge (MCP)
For operator assistants and integration clients, the gateway exposes its functions as tools: an MCP server (streamable HTTP, JSON-RPC over POST /mcp) and, for clients that can only fetch a link, the same tools over plain HTTP: /api/v1/tools lists them, and /api/v1/tools/call?tool=NAME&argument=value... calls one. Tools: list_stations, read_tags, get_alarms, request_commissioning_token, start_pump, stop_pump, open_valve, close_valve, write_setpoint, inhibit_alarms, confirm_command, get_historian_export_config. The control tools follow the same rules as the command API.
Operator assistant
GET /api/v1/assistant?q=...&conversation=... or POST JSON {"q": ..., "conversation": ...}. See Operator assistant.