서버 API
CLI-JAW는 루트 페이지를 포함해 201개의 route handler를 노출합니다. 이 중 200개는 추출된 route module과 mounted sub-router에 걸친 API/미디어 엔드포인트입니다.
기본 URL
http://localhost:3457 # Core server (jaw serve)
http://localhost:24576 # Manager dashboard (jaw dashboard serve)
인증
로컬 루프백 요청은 Bearer 토큰 없이 허용됩니다. 원격/private-network 요청은 신뢰된 LAN 우회가 명시적으로 켜져 있지 않으면 Bearer 토큰이 필요합니다. 같은 origin 또는 CLI 컨텍스트에서 GET /api/auth/token으로 토큰을 부트스트랩합니다.
Route Groups
| 그룹 | 대표 엔드포인트 |
|---|---|
| Core/system | GET /api/health, GET /api/session, GET /api/runtime, GET /api/auth/token |
| Messages/sessions | GET /api/messages, GET /api/messages/count, GET /api/messages/search, GET|POST /api/chat-sessions, POST /api/chat-sessions/:id/switch |
| Events | GET /api/events SSE channel with replay cursor support |
| Commands | POST /api/command, GET /api/commands, POST /api/message |
| Orchestration | GET /api/orchestrate/state, PUT /api/orchestrate/state, POST /api/orchestrate/dispatch, POST /api/orchestrate/dispatch/batch, GET /api/orchestrate/worker-progress |
| Goals/tasks | GET /api/goal, GET /api/goal/history, POST /api/goal, GET|POST /api/task |
| Settings/runtime | GET|PUT /api/settings, GET /api/cli-registry, GET /api/cli-status, GET /api/quota |
| MCP/skills | GET|PUT /api/mcp, POST /api/mcp/sync, POST /api/mcp/install, GET /api/skills, POST /api/skills/enable |
| Memory | GET /api/jaw-memory/search, GET /api/jaw-memory/context, POST /api/jaw-memory/save, GET /api/memory/status |
| Browser/CDP | POST /api/browser/start, GET /api/browser/status, GET /api/browser/snapshot, POST /api/browser/act, POST /api/browser/web-ai/code, POST /api/browser/web-ai/code-extract, 기타 /api/browser/web-ai/* |
| Messaging/media | POST /api/upload, POST /api/voice, POST /api/channel/send, GET /media/:filename |
| Dashboard sub-routes | /api/dashboard/board/*, /api/dashboard/schedule/*, dashboard memory/chat/git/connector routes on the manager server |
정확한 기준
정확한 route count, mutation guard, WebSocket/SSE event 이름은 structure/server_api.md를 기준으로 확인하세요. bash structure/check-doc-drift.sh 게이트가 이 source-of-truth 표를 로컬 소스와 비교 검증합니다.