← Select a terminal, file, or plugin
Sign in to continue
| Method | Path | Description |
|---|---|---|
| GET | /health | Health check, version, session count |
| GET | /api/info | homedir, platform, hostname, version |
| Terminal management | ||
| GET | /api/terminals | List all terminals, including current active program |
| POST | /api/terminal/create | Create: {name, command, workdir, cols, rows, idlePattern} |
| POST | /api/terminal/:id/input | Send text: {text} or {base64} |
| POST | /api/terminal/:id/key | Send key: {key: "ctrl+c"|"enter"|"tab"…} |
| POST | /api/terminal/:id/resize | Resize: {cols, rows} |
| POST | /api/terminal/:id/rename | Rename: {name} |
| POST | /api/terminal/:id/kill | Kill process |
| POST | /api/terminal/:id/delete | Kill + remove session |
| GET | /api/terminal/:id/output?n=100 | Last N lines (ANSI stripped) |
| GET | /api/ai/history/terminalman?limit=50 | Recent AI-originated terminal lifecycle history (create/kill/delete/rename) |
| GET | /api/ai/terminal/:id/history?limit=50 | Recent AI-originated per-terminal TUI ops (input/key/resize) |
| WS | /ws/terminal/:id?token=T | Raw PTY WebSocket |
| File System | ||
| GET | /api/files?path=... | List directory entries |
| GET | /api/file/stat?path=... | File size + mtime |
| GET | /api/file?path=... | Read file (UTF-8, max 5MB) |
| GET | /api/file/chunk?path=...&offset=...&length=... | Binary chunk as base64 |
| GET | /api/file/text/index?path=... | Build line anchors for large text viewing |
| GET | /api/file/text/window?path=...&startLine=1&lineCount=200 | Read a line window from a large text file |
| GET | /api/file/download?path=... | Download file as binary |
| POST | /api/file | Write text: {path, content} |
| POST | /api/file/upload?path=... | Upload binary (raw body) |
| POST | /api/file/patch | Binary patch: {path, patches:[{offset,byte}]} |
| POST | /api/file/rename | Rename: {from, to} |
| POST | /api/files/mkdir | Create directory: {path} |
| DELETE | /api/file?path=... | Delete file or directory |