{
  "name": "threat.new API",
  "version": "1.0.0",
  "status": "operational",
  "endpoints": {
    "health": "GET /health",
    "analyze": "POST /api/analyze",
    "search": "POST /api/search",
    "evidence": "POST /api/evidence",
    "forums": {
      "categories": "GET /api/forums/categories",
      "categoryBySlug": "GET /api/forums/categories/:slug",
      "forumBySlug": "GET /api/forums/:categorySlug/:forumSlug",
      "threadById": "GET /api/forums/threads/:id",
      "createThread": "POST /api/forums/threads (auth required)",
      "createPost": "POST /api/forums/threads/:id/posts (auth required)",
      "voteThread": "POST /api/forums/threads/:id/vote (auth required)",
      "votePost": "POST /api/forums/posts/:id/vote (auth required)",
      "markSolution": "POST /api/forums/posts/:id/solution (auth required)"
    },
    "users": {
      "getProfile": "GET /api/users/:username",
      "getMe": "GET /api/users/me (auth required)",
      "updateMe": "PUT /api/users/me (auth required)",
      "getActivity": "GET /api/users/me/activity (auth required)",
      "follow": "POST /api/users/:id/follow (auth required)",
      "unfollow": "DELETE /api/users/:id/follow (auth required)",
      "getNotifications": "GET /api/users/me/notifications (auth required)",
      "markNotificationRead": "PUT /api/users/me/notifications/:id/read (auth required)"
    }
  },
  "bindings": {
    "ai": "Workers AI (Llama 3.1 + BGE embeddings)",
    "database": "D1 (threat-new-db)",
    "storage": "R2 (threat-new-storage)",
    "vectors": "Vectorize (threat-new-vectors)"
  },
  "docs": "https://threat.new/docs"
}