Expand description
REST API handlers for the web dashboard.
All /api/* routes require bearer token authentication (PairingGuard).
Structs§
Functions§
- handle_
api_ audit - GET /api/audit — recent audit trail events
- handle_
api_ audit_ verify - GET /api/audit/verify — verify audit chain integrity
- handle_
api_ channel_ events - POST /api/channel-events — accept a structured channel event from the
operator (or any internal service) and broadcast it to all connected
SSE / WebSocket subscribers via
event_tx. - handle_
api_ channels - GET /api/channels — returns detailed channel information for the dashboard.
- handle_
api_ cli_ tools - GET /api/cli-tools — discovered CLI tools
- handle_
api_ config_ get - GET /api/config — current config (api_key masked)
- handle_
api_ config_ put - PUT /api/config — update config from TOML body
- handle_
api_ cost - GET /api/cost — cost summary
- handle_
api_ cron_ add - POST /api/cron — add a new cron job
- handle_
api_ cron_ delete - DELETE /api/cron/:id — remove a cron job
- handle_
api_ cron_ list - GET /api/cron — list cron jobs
- handle_
api_ cron_ patch - PATCH /api/cron/:id — update an existing cron job
- handle_
api_ cron_ runs - GET /api/cron/:id/runs — list recent runs for a cron job
- handle_
api_ cron_ settings_ get - GET /api/cron/settings — return cron subsystem settings
- handle_
api_ cron_ settings_ patch - PATCH /api/cron/settings — update cron subsystem settings
- handle_
api_ doctor - POST /api/doctor — run diagnostics
- handle_
api_ health - GET /api/health — component health snapshot
- handle_
api_ integrations - GET /api/integrations — list all integrations with status
- handle_
api_ integrations_ settings - GET /api/integrations/settings — return per-integration settings (enabled + category)
- handle_
api_ node_ invoke - POST /api/nodes/:node_id/invoke — invoke a capability on a specific node
- handle_
api_ nodes - GET /api/nodes — list connected nodes and their capabilities
- handle_
api_ session_ delete - DELETE /api/sessions/{id} — delete a gateway session
- handle_
api_ session_ messages - GET /api/sessions/{id}/messages — load persisted gateway WebSocket chat transcript
- handle_
api_ session_ rename - PUT /api/sessions/{id} — rename a gateway session
- handle_
api_ session_ state - GET /api/sessions/{id}/state — get session state
- handle_
api_ sessions_ list - GET /api/sessions — list gateway sessions
- handle_
api_ sessions_ running - GET /api/sessions/running — list sessions currently in “running” state
- handle_
api_ status - GET /api/status — system status overview
- handle_
api_ tools - GET /api/tools — list registered tool specs
- handle_
claude_ code_ hook - POST /hooks/claude-code — receives HTTP hook events from Claude Code
sessions spawned by [
ClaudeCodeRunnerTool].