{
  "service": "chatalyze-api",
  "ofapi": "configured",
  "pipelineReady": true,
  "liveOfapiReady": true,
  "docs": "https://chatalyze.co/docs",
  "goLive": "https://chatalyze.co/docs/integrations/onlyfansapi",
  "routes": {
    "GET /api/health": "Worker health + readiness flags (no secret values)",
    "GET /api/overview": "D1 session/message aggregates for dashboard",
    "GET /api/sessions": "List sessions (?limit=&sort=priority|opened&awaiting=1)",
    "GET /api/messages": "List messages (?chatId=&limit=)",
    "GET /api/chats": "Chat list (newest activity first) or ?chatId= detail",
    "GET /api/stats": "Live analytics + awaitingReply + SLA",
    "GET /api/fans": "Fan CRM (?accountId=&ofUserId=) — lifetime spend",
    "GET /api/sla": "First-response SLA report (?thresholdSec=)",
    "GET /api/accounts": "Connected OF accounts + session stats",
    "GET /api/floor": "Floor wallboard — open sessions, chatters, alert rollup",
    "GET /api/alerts": "List alerts (?status=open|acked|resolved|all); live+DB merge",
    "POST /api/alerts/:id/ack": "Bearer ADMIN_TOKEN — ack alert (durable)",
    "GET /api/chatters/scorecard": "Per-chatter sessions/revenue/SLA/alerts/coachPriority",
    "GET /api/sessions/:id/analysis": "Session metrics + alerts + labels + recommendations",
    "POST /api/admin/intelligence/run": "Bearer ADMIN_TOKEN — rules (+ optional LLM) batch; persist labels/alerts",
    "POST /api/admin/accounts": "Register/connect account (manual)",
    "POST /api/admin/accounts/seed": "Seed demo multi-account registry",
    "POST /api/admin/accounts/sync": "Pull accounts from OnlyFansAPI (needs KEY)",
    "POST /api/admin/accounts/auth/start": "Start OFAPI auth (needs KEY)",
    "POST /api/admin/accounts/auth/poll": "Poll OFAPI auth attempt (needs KEY)",
    "POST /api/admin/accounts/auth/2fa": "Submit 2FA code (needs KEY)",
    "POST /api/admin/accounts/:id/disconnect": "Mark account disconnected",
    "POST /api/demo/ingest": "Signed fixture ingest (no OFAPI key)",
    "POST /webhooks/onlyfans": "OnlyFansAPI webhook (HMAC Signature)",
    "POST /api/connector/ingest": "Optional OF-browser connector (deprioritized)",
    "POST /api/admin/replay": "Bearer ADMIN_TOKEN — rebuild rm_*",
    "POST /api/admin/close-session": "Bearer ADMIN_TOKEN — force SessionClosed",
    "POST /api/admin/seed-demo": "Bearer ADMIN_TOKEN — embedded fixtures (dev only)",
    "POST /api/admin/backfill": "Bearer ADMIN_TOKEN — pull recent chats/messages from OnlyFansAPI",
    "POST /api/admin/backfill-transactions": "Bearer ADMIN_TOKEN — pull tips/PPV/subs (revenue) from OnlyFansAPI",
    "POST /api/admin/purge-demo": "Bearer ADMIN_TOKEN — wipe demo accounts + optional full pipeline wipe"
  }
}