{"name":"Claude Code API","version":"1.0.0","documentation":"Disabled in production","endpoints":{"POST /init-project":"Initialize project (clone repo, setup Claude)","POST /api/boilerplate/init":"Create project from template","POST /api/query":"Submit Claude query with webhook","POST /api/query/{task_id}/cancel":"Cancel running query","POST /api/git/commit-push":"Commit and push changes","POST /api/git/init-push":"Initialize git and push to remote","POST /api/task/push-changes":"Commit and push (legacy)","POST /api/task/git-init-push":"Git init and push (legacy)","POST /api/nginx/create-config":"Create nginx reverse proxy","POST /api/nginx/add-ssl":"Add SSL certificate via certbot","POST /api/traefik/generate-compose":"Generate docker-compose with Traefik labels","POST /api/traefik/generate-static-config":"Generate traefik.yml static config","POST /api/traefik/generate-labels":"Generate Traefik labels only","GET /api/traefik/defaults":"Get Traefik default configuration","POST /api/traefik/validate-domain":"Validate domain and get routing rule","POST /api/ide/workspaces":"Create IDE workspace (returns VS Code URL + password)","GET /api/ide/workspaces":"List IDE workspaces","GET /api/ide/workspaces/{id}":"Get workspace status","POST /api/ide/workspaces/{id}/start":"Start stopped workspace","POST /api/ide/workspaces/{id}/stop":"Stop workspace","DELETE /api/ide/workspaces/{id}":"Remove workspace","GET /api/project/read-file-legacy":"Read file from project","POST /api/knowledge-base/upload":"Upload to knowledge base","POST /api/deployment/deploy-prod":"Unified production deploy (auto-detects: FE→S3+CloudFront, fullstack→EC2+Docker)","POST /api/deployment/detect-project-type":"Detect if project is frontend-only or fullstack","POST /api/deployment/test-production":"Test Docker production build locally","POST /api/deployment/deploy-remote":"Deploy to remote EC2 via SSH (legacy)","POST /api/deployment/cleanup":"Cleanup test containers/images","GET /api/deployment/check-port/{port}":"Check port availability","GET /api/deployment/find-ports":"Find available ports","POST /api/sql-query":"Generate SQL from natural language","POST /api/sql-query/respond":"Respond to SQL query clarification","POST /api/agent-query":"Submit query to specialized AI agent (infra, etc.)","POST /api/codebase/analyze":"Analyze codebase and build function call graph","GET /api/codebase/graph":"Get full graph JSON for visualization","GET /api/codebase/orphans":"Get orphan clusters (disconnected subgraphs)","GET /api/codebase/flow/{function_name}":"Trace function call chain","GET /api/codebase/entry-points":"List detected entry points","GET /api/codebase/search":"Search functions by name with filters","POST /api/codebase/delete-orphans":"Remove orphan functions via Claude PR","GET /api/codebase/stats":"Codebase graph summary statistics","GET /health":"Health check","GET /metrics":"Performance metrics"},"workflow":["1. POST /init-project → Initialize project with Claude setup","2. POST /api/query → Submit query (returns task_id immediately)","3. Receive webhook notification with session_id","4. POST /api/query with session_id → Continue conversation","5. POST /api/git/commit-push → Commit and push changes"],"deployment_workflow":["1. POST /api/traefik/generate-compose → Generate docker-compose with Traefik labels","2. POST /api/deployment/test-production → Test locally with production docker","3. POST /api/deployment/cleanup → Remove test containers","4. POST /api/deployment/deploy-remote → Deploy to staging/production EC2","5. SSL handled automatically by Traefik ACME (Let's Encrypt)"]}