WebUI API 参考
这页按当前 pkg/api/server.go 显式注册的 /api/* 路由整理。
鉴权
当前常见访问方式:
?token=<gateway.token>Authorization: Bearer <gateway.token>clawgo_webui_tokencookie
配置与版本
GET /api/configPOST /api/configGET /api/version
GET /api/config?mode=normalized 会返回:
configraw_config
当前 normalized 关键字段包括:
core.default_providercore.default_modelcore.main_agent_idcore.subagentsruntime.routerruntime.providers
聊天与上传
POST /api/chatGET /api/chat/historyGET /api/chat/livePOST /api/upload
Provider 与 OAuth
POST /api/provider/oauth/startPOST /api/provider/oauth/completePOST /api/provider/oauth/importGET/POST /api/provider/oauth/accountsPOST /api/provider/modelsGET/POST /api/provider/runtime
Cron / Skills / Sessions / Memory
GET/POST /api/cronGET/POST /api/skillsGET /api/sessionsGET/POST /api/memoryGET/POST /api/workspace_file
工具与 MCP
GET /api/toolsGET /api/tool_allowlist_groupsPOST /api/mcp/install
日志与通道辅助接口
GET /api/logs/liveGET /api/logs/recentGET /api/whatsapp/statusPOST /api/whatsapp/logoutGET /api/whatsapp/qr.svg
这轮文档特别修正了什么
当前代码里已经没有这些显式公开路由:
/api/runtime/api/world/api/subagents_runtime/api/subagent_profiles/api/auth/session/api/nodes/api/node_dispatches/api/node_artifacts/api/task_queue/api/ekg_stats
所以文档不再把它们写成 clawgo 当前默认暴露的 WebUI API。