Find endpoint paths and message types here. See the API contract
for encoding, errors, and authorization. Empty means no body.
Route access groups describe middleware placement. scoped does not promise
access to every scoped credential: handlers also enforce permissions, and
session creation requires root. See Authorization.
| Method | Path | Route access group | Request body | Response |
GET | /api/audio | root-only | Empty | AudioState |
GET | /api/audio/outputs | root-only | Empty | AudioOutputs |
GET | /api/boards | scoped | Empty | BoardCatalog |
POST | /api/boards | scoped | BoardEdit | BoardCatalog |
GET | /api/capabilities | root-only | Empty | Capabilities |
GET | /api/health | scoped | Empty | Health |
GET | /api/jukebox | root-only | Empty | JukeboxCatalog |
GET | /api/jukebox/presets | root-only | Empty | JukeboxCatalog |
POST | /api/jukebox/presets | root-only | Station | Ack |
DELETE | /api/jukebox/presets/:id | root-only | Empty | Ack |
PUT | /api/jukebox/presets/:id | root-only | Station | Ack |
POST | /api/ncspot | root-only | RedrawReq | SessionResult |
POST | /api/timers/:name/run | root-only | Empty | Ack |
POST | /api/timers/preview | root-only | TimerConfig | TimerPreview |
GET | /api/usage | root-only | Empty | UsageSnapshot |
GET | /api/whereis | root-only | Empty | WhereIsReply |
| Method | Path | Route access group | Request body | Response |
GET | /api/browse | root-only | Empty | BrowseResult |
DELETE | /api/files | root-only | FileReq | Ack |
POST | /api/files | root-only | FileReq | Ack |
PUT | /api/files | root-only | FileReq | Ack |
GET | /api/files/stat | root-only | Empty | FileStatResult |
GET | /api/git | root-only | Empty | GitResult |
POST | /api/git | root-only | GitMutationReq | Ack |
POST | /api/highlight | root-only | HighlightReq | TextResult |
GET | /api/highlight/themes | root-only | Empty | HighlightThemes |
GET | /api/image | root-only | Empty | ImageResult |
GET | /api/read | root-only | Empty | TextResult |
GET | /api/search | root-only | Empty | SearchResult |
| Method | Path | Route access group | Request body | Response |
GET | /api/config | root-only | Empty | ConfigResult |
PUT | /api/config | root-only | ReplaceConfigRequest | Ack |
PUT | /api/config/patch | root-only | ConfigPatch | Ack |
GET | /api/presets | root-only | Empty | PresetsReply |
DELETE | /api/presets/:kind/:name | root-only | Empty | Ack |
PUT | /api/presets/:kind/:name | root-only | PresetRequest | Ack |
POST | /api/presets/:kind/:name/copy | root-only | CopyPresetReq | Ack |
POST | /api/settings/preview | root-only | SettingsPreviewRequest | SettingsPreview |
GET | /api/state | root-only | Empty | StoredStates |
DELETE | /api/state/:kind/:key | root-only | Empty | Ack |
DELETE | /api/state/trash | root-only | Empty | Ack |
POST | /api/state/trash/:key/restore | root-only | Empty | SessionResult |
| Method | Path | Route access group | Request body | Response |
POST | /api/file-action | root-only | FileActionReq | OutputResult |
GET | /api/library | root-only | Empty | LibraryReply |
POST | /api/library | root-only | LibraryItem | Ack |
DELETE | /api/library/:name | root-only | Empty | Ack |
PUT | /api/library/:name | root-only | LibraryItem | Ack |
POST | /api/library/:name/run | root-only | RunWhere | SessionResult |
GET | /api/open-apps | root-only | Empty | AppsReply |
POST | /api/run | root-only | RunReq | SessionResult |
| Method | Path | Route access group | Request body | Response |
GET | /api/projects | root-only | Empty | ProjectsReply |
POST | /api/projects | root-only | Project | Ack |
DELETE | /api/projects/:name | root-only | Empty | Ack |
GET | /api/projects/:name | root-only | Empty | Project |
PUT | /api/projects/:name | root-only | Project | Ack |
POST | /api/projects/preview | root-only | ProjectPreviewReq | ProjectPreviewResult |
GET | /api/worktrees | scoped | Empty | WorktreesReply |
POST | /api/worktrees | scoped | CreateWorktreeReq | Worktree |
DELETE | /api/worktrees/:id | scoped | Empty | Ack |
PUT | /api/worktrees/:id | scoped | CreateWorktreeReq | Worktree |
POST | /api/worktrees/preview | scoped | CreateWorktreeReq | WorktreeBase |
| Method | Path | Route access group | Request body | Response |
GET | /api/sessions | scoped | Empty | SessionsReply |
POST | /api/sessions | scoped | SessionConfig | Ack |
DELETE | /api/sessions/:name | scoped | Empty | Ack |
GET | /api/sessions/:name | scoped | Empty | SessionView |
PUT | /api/sessions/:name | root-only | SessionConfig | Ack |
GET | /api/sessions/:name/cwd | scoped | Empty | PathResult |
PUT | /api/sessions/:name/label | scoped | LabelReq | Ack |
PUT | /api/sessions/:name/permissions | root-only | AgentPermissionsReq | Ack |
PUT | /api/sessions/:name/reader-pinned | scoped | ReaderPinnedReq | Ack |
POST | /api/sessions/:name/restart | scoped | Empty | Ack |
POST | /api/sessions/:name/resume | scoped | Empty | Ack |
GET | /api/sessions/:name/sandbox | scoped | Empty | SandboxReport |
POST | /api/sessions/:name/start | scoped | Empty | Ack |
POST | /api/sessions/:name/state/reset | scoped | Empty | Ack |
POST | /api/sessions/:name/stop | scoped | Empty | Ack |
| Method | Path | Route access group | Request body | Response |
DELETE | /api/tasks | scoped | Empty | TaskBatchResult |
GET | /api/tasks | scoped | Empty | TasksReply |
POST | /api/tasks | scoped | CreateTaskReq | TaskResult |
DELETE | /api/tasks/:id | scoped | Empty | TaskResult |
GET | /api/tasks/:id | scoped | Empty | TaskResult |
POST | /api/tasks/:id | scoped | UpdateTaskReq | TaskResult |
POST | /api/tasks/:id/followup | scoped | WorkerFollowupReq | Ack |
POST | /api/tasks/cancel | scoped | RemoveTasksReq | TaskBatchResult |
POST | /api/tasks/remove | scoped | RemoveTasksReq | TaskBatchResult |
POST | /api/workers | scoped | SpawnWorkerReq | WorkerResult |
| Method | Path | Route access group | Request body | Response |
GET | /api/templates | root-only | Empty | TemplatesReply |
POST | /api/templates | root-only | SaveTemplateRequest | TemplateResult |
DELETE | /api/templates/:name | root-only | Empty | Ack |
PUT | /api/templates/:name | root-only | AgentTemplate | TemplateResult |
POST | /api/templates/:name/create | root-only | CreateAgentTemplateReq | SessionResult |
GET | /api/templates/spawnable | scoped | Empty | TemplatesReply |
| Method | Path | Route access group | Request body | Response |
GET | /media/radio | root-only | Empty | Encoded station audio |
GET | /media/radio/title | root-only | Empty | JSON listener title |
GET /ws upgrades to a WebSocket connection. See the
WebSocket contract for the handshake and subprotocol.
| Direction | Message |
| Client → daemon | ClientMessage |
| Daemon → client | Event |