Base URL . Endpoints marked 🔒 need the key in an X-API-Key header
(Authorization: Bearer <key> also works). Every response includes a WhatsApp-ready
message / reply string your bot can send as is. Full spec: /openapi.json
/api/statusCurrent state: running, stopped, starting, stopping or down, with uptime and metrics.
/api/start🔒Starts the app. Returns 202 while it boots (~3 s), 200 if it is already running.
/api/stop🔒Stops the app.
/api/restart🔒Restarts the app (also recovers it from down).
/api/command🔒Easiest integration: forward the user's WhatsApp text and send back reply. Understands status, start, stop, restart, help.
/api/simulate/crash🔒Demo helper: puts the app in the down state so you can show the bot detecting an outage.
/api/events?limit=20Recent state changes and who triggered them.