Skip to content

Health API

Fresh

Source: BIBLE.md (Triage section, Daily heartbeat)

Engine health and inventory endpoints.

Routes

MethodRouteWhat
GET/healthEngine status
GET/routesAll 704 routes
GET/events/streamSSE event stream
GET/events/recentRecent events (REST)

Health check

bash
curl http://localhost:4700/health

Response:

json
{
  "success": true,
  "data": {
    "status": "ok",
    "engine": "ghost",
    "version": "2.0.0",
    "uptime": 12345,
    "plugins": 109,
    "routes": 704,
    "accountsLoaded": 50,
    "browsersActive": 0
  }
}

All routes

bash
curl http://localhost:4700/routes

Returns full route list with method, path, source plugin.

SSE event stream

bash
curl http://localhost:4700/events/stream

Streams events as they happen: browser launches, CTR fires, errors, phase advances. Replaces dashboard 10-second polling.

Other health-adjacent routes

MethodRouteWhat
GET/cookies/statusCookie health per account
GET/cookies/proxy-poolProxy pool health
GET/phases/statusAccount phase distribution