Modules API Surface
Start with the route definition and its request validation in the corresponding module under src/pinballctl/webapp/modules/. Use an authenticated app session for protected endpoints.
Core Status/Control
dashboard: runtime and system status. The ESP32 card readsGET /api/hardware/coil-safety/summaryfor coil arming and fault state.esplink: bridge and device status, firmware upload and local versions under/esplink/api/. Sync status is available atGET /api/esplink/sync/status.events: registry, coverage,POST /api/events/fire, performance counters andGET /api/events/stream.
Configuration Modules
rules: catalog, rules CRUD/save, hardware sources, sync + sync status.hardware: discovered pins and drivers, mapping save and sync, live coil diagnostics atGET /api/hardware/coil-safety.lighting: state/config save, compile, preview, sync + sync status, fixtures layout.game:/api/game/status,/api/game/config,/api/game/command; authoritative game/credit/player snapshots and idempotent typed requests.ball:/api/ball/status,/api/ball/config,/api/ball/command; physical observations, configuration, simulation and operator location reset. Both require the existing authenticated app session. Commands require a stableid,commandand typedparams; never resend an uncertain operation with a different ID.scoring: config/state/high-scores/history endpoints; per-player scoring under the manager turn context.playfield: layout state, options, image upload/remove, hardware list.
Runtime Media/Audio
media: config/state/environment, asset upload/delete/file, play/stop, overlay updates.audio: config/state/devices, asset upload/delete/preview/file, play/stop.
The Godot supervisor exposes scene events and leaderboard requests over its own authenticated loopback interface. Those requests enter the Pi runtime even with the admin webapp stopped. App layout and services
Platform/Operations
firmware: local/remote versions, asset download, version removal.logs: chunked log reads, purge, archive listing.settings: installation settings read/write (GET /api/settings/data,POST /api/settings/save).backups: project snapshot library, create/upload/download, inventory inspection, replacement preview, restore and progress jobs. See Backup / Restore for supported scope and recovery.service: service-log entry CRUD and attachments.wifi: status and save.
Verify a request
Inspect the browser's Network panel while performing the operation in the app. Check the HTTP status and JSON response. For sync, flash and backup jobs, follow the operation's status through completion. For Game and Ball commands, reuse the original ID and identical request after an uncertain response. See Management Ownership for receipt and replay behaviour.