API Reference

March 12, 2026 ยท View on GitHub

Authentication

All endpoints except /healthz and /api/install.sh require authentication when DASHBOARD_TOKEN is set.

  • API endpoints: Authorization: Bearer <token> header
  • WebSocket: ?token=<token> query parameter
  • Browser: Session cookie (set after login at /login)
  • Hook endpoint (/api/hooks/event): Accepts either X-Hook-Signature HMAC (when HOOK_SECRET is set) or Bearer token

If DASHBOARD_TOKEN is not configured, the server returns 503 Service Unavailable โ€” all requests are blocked until a token is set.

Endpoints

MethodPathDescription
GET/api/sessionsList all sessions
GET/api/sessions/{name}Get session details
POST/api/sessions/{name}/sendSend input to a session
GET/api/sessions/{name}/messagesGet message history
POST/api/sessions/{name}/syncTrigger message sync
GET/api/statsDashboard statistics
GET/wsWebSocket for real-time updates
GET/api/settingsSystem settings
PUT/api/settingsUpdate settings
POST/api/settings/testTest platform/SSH connectivity
GET/api/install.shDownloadable installer script
POST/api/hooks/eventBridge webhook (internal)
GET/healthzHealth check (no auth)

Dashboard Routes

PagePathDescription
Home/Overview with stats and recent activity
Sessions/sessionsLive session list with status, messages, send input
Session Detail/sessions/{name}Full message history and controls for a session
Settings/settingsPlatform status, SSH hosts, feature toggles

WebSocket

Connect to /ws with a token query parameter or session cookie. The server pushes real-time events for session updates, new messages, and status changes.