{"openapi":"3.1.0","info":{"title":"Hermes Agent","version":"0.23.3"},"paths":{"/api/memory/providers/{provider}/oauth/start":{"post":{"summary":"Start Memory Oauth","description":"Begin a provider's zero-CLI OAuth flow (browser + loopback listener); returns immediately, poll status.","operationId":"start_memory_oauth_api_memory_providers__provider__oauth_start_post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/memory/providers/{provider}/oauth/status":{"get":{"summary":"Memory Oauth Status","description":"Poll a provider's OAuth flow: idle | pending | connected | error.","operationId":"memory_oauth_status_api_memory_providers__provider__oauth_status_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/media":{"get":{"summary":"Get Media","description":"Return a gateway-local image as a base64 data URL for remote clients\nthat can't read this machine's disk. Auth-gated; restricted to the image\nallowlist, a size cap AND the resolved (symlink-safe) media roots.","operationId":"get_media_api_media_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/media/proxy":{"get":{"summary":"Proxy Remote Media","description":"Fetch a remote image URL the gateway can reach but the client cannot\n(#74564), returning the same ``data_url`` shape as ``/api/media``. Only\nallowlisted image CDNs; the bytes stay behind the size cap.","operationId":"proxy_remote_media_api_media_proxy_get","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","title":"Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/image-upload":{"post":{"summary":"Upload Chat Image","description":"Persist a browser clipboard image where the embedded TUI can read it.\n\nBrowser clipboard bytes aren't visible to the server-side clipboard, so the\n/chat page uploads them here and drives the TUI's ``/image <path>`` with\nthe returned gateway-visible path under ``HERMES_HOME/images/`` (the same\ndir ``clipboard.paste`` / ``image.attach`` use).","operationId":"upload_chat_image_api_chat_image_upload_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatImageUpload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/files":{"get":{"summary":"List Managed Files","operationId":"list_managed_files_api_files_get","parameters":[{"name":"path","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Managed File","operationId":"delete_managed_file_api_files_delete","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedFileDelete"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/files/read":{"get":{"summary":"Read Managed File","operationId":"read_managed_file_api_files_read_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/files/ticket":{"post":{"summary":"Issue File Ticket","description":"Ticket a browser download/media URL instead of putting the session token in it.","operationId":"issue_file_ticket_api_files_ticket_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileTicketRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/files/download":{"get":{"summary":"Download Managed File","description":"Stream a managed file as an attachment download.\n\n``auth_middleware`` also accepts the session token as ``?token=`` here so a\nshell/browser-opened download (no session header) still authenticates.\nChromium marks ``<audio>``/``<video>`` subresource requests via\n``Sec-Fetch-Dest``; those are served inline for Desktop builds that still\nuse this route as their player source, attachment semantics otherwise.","operationId":"download_managed_file_api_files_download_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/files/stream":{"head":{"summary":"Stream Managed File","description":"Stream managed audio/video inline with HTTP Range support — Electron's\nmedia pipeline may reject an attachment response as an ``<audio>``/\n``<video>`` source. Browser media elements authenticate with a reusable\npath-bound ``?ticket=``; the session token is never accepted in this URL.\nNo size cap (Range-served); sensitive guard and MIME detection as download. A\n``session_id`` resolves ``/workspace`` in that session's own sandbox, as the\nticket route does. An SSH profile's clip streams from its SSH machine\n(``_remote_fs_backend``, the rule download uses), one Range at a time.\nEvery request checks its ``session_id`` first, a ticketed one included.","operationId":"stream_managed_file_api_files_stream_head","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Stream Managed File","description":"Stream managed audio/video inline with HTTP Range support — Electron's\nmedia pipeline may reject an attachment response as an ``<audio>``/\n``<video>`` source. Browser media elements authenticate with a reusable\npath-bound ``?ticket=``; the session token is never accepted in this URL.\nNo size cap (Range-served); sensitive guard and MIME detection as download. A\n``session_id`` resolves ``/workspace`` in that session's own sandbox, as the\nticket route does. An SSH profile's clip streams from its SSH machine\n(``_remote_fs_backend``, the rule download uses), one Range at a time.\nEvery request checks its ``session_id`` first, a ticketed one included.","operationId":"stream_managed_file_api_files_stream_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/files/upload":{"post":{"summary":"Upload Managed File","operationId":"upload_managed_file_api_files_upload_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedFileUpload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/files/upload-stream":{"post":{"summary":"Upload Managed File Stream","description":"Chunked multipart upload: constant memory and no base64 inflation, unlike\nthe JSON data-URL endpoint that trips proxy body-size limits on large archives.","operationId":"upload_managed_file_stream_api_files_upload_stream_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_managed_file_stream_api_files_upload_stream_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/files/mkdir":{"post":{"summary":"Create Managed Directory","operationId":"create_managed_directory_api_files_mkdir_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedDirectoryCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fs/list":{"get":{"summary":"Fs List","operationId":"fs_list_api_fs_list_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fs/read-text":{"get":{"summary":"Fs Read Text","operationId":"fs_read_text_api_fs_read_text_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fs/write-text":{"post":{"summary":"Fs Write Text","description":"Overwrite (or create) a UTF-8 text file for the in-app spot editor.\n\nMirrors the Electron ``hermes:fs:writeText`` hardening: path validated by\n``_fs_path``, the parent must already exist (never build trees), only\nregular files may be replaced, payload size-capped, staged to a sibling\ntemp file and ``os.replace``-d so a crash can't truncate the original.\nStale-on-disk detection is the client's job (re-read before save). The\ntarget resolves as ``read-text`` resolves it, ``session_id`` included, so a\nfile saves to the same place it was read from, behind the same guards: the\nsensitive-file denylist and a locked managed-files root (#95306).","operationId":"fs_write_text_api_fs_write_text_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FsWriteText"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fs/read-data-url":{"get":{"summary":"Fs Read Data Url","operationId":"fs_read_data_url_api_fs_read_data_url_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fs/download":{"head":{"summary":"Fs Download","description":"A workspace file as an attachment: from the profile's SSH workspace when it has one, else\nfrom this host. A browser download link authenticates with a path-bound ``?ticket=``.","operationId":"fs_download_api_fs_download_head","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Fs Download","description":"A workspace file as an attachment: from the profile's SSH workspace when it has one, else\nfrom this host. A browser download link authenticates with a path-bound ``?ticket=``.","operationId":"fs_download_api_fs_download_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fs/git-root":{"get":{"summary":"Fs Git Root","operationId":"fs_git_root_api_fs_git_root_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fs/default-cwd":{"get":{"summary":"Fs Default Cwd","operationId":"fs_default_cwd_api_fs_default_cwd_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/file-upload":{"post":{"summary":"Upload Chat File","description":"Stage one user-selected browser file under the active Hermes profile.\n\nThe client never chooses a server path. A unique 0600 file under\n``$HERMES_HOME/uploads`` is returned for the existing ``file.attach`` flow.","operationId":"upload_chat_file_api_chat_file_upload_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_chat_file_api_chat_file_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/desktop-plugins/root":{"get":{"summary":"Desktop Plugins Root Route","operationId":"desktop_plugins_root_route_api_desktop_plugins_root_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Desktop Plugins Root Route Api Desktop Plugins Root Get"}}}}}}},"/api/desktop-plugins/reconcile":{"post":{"summary":"Reconcile Desktop Plugins","description":"Electron's ``reconcileDesktopPluginsReport``: re-run the copy after an install, update or removal, and\nname each package whose desktop half it refused and no later profile published, so the install tab does not\nreport it as installed.","operationId":"reconcile_desktop_plugins_api_desktop_plugins_reconcile_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Reconcile Desktop Plugins Api Desktop Plugins Reconcile Post"}}}}}}},"/api/desktop-plugins/list":{"get":{"summary":"List Desktop Plugins","operationId":"list_desktop_plugins_api_desktop_plugins_list_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Desktop Plugins Api Desktop Plugins List Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/desktop-plugins/read":{"get":{"summary":"Read Desktop Plugin File","operationId":"read_desktop_plugin_file_api_desktop_plugins_read_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Desktop Plugin File Api Desktop Plugins Read Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/status":{"get":{"summary":"Git Status Route","operationId":"git_status_route_api_git_status_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/gh-auth":{"get":{"summary":"Gh Auth Status Route","description":"``{\"available\", \"authenticated\"}`` for the `gh` CLI; cached 5 min\n(``refresh=true`` bypasses so the pill withdraws right after a login).","operationId":"gh_auth_status_route_api_git_gh_auth_get","parameters":[{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/worktrees":{"get":{"summary":"Git Worktrees Route","operationId":"git_worktrees_route_api_git_worktrees_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/branches":{"get":{"summary":"Git Branches Route","operationId":"git_branches_route_api_git_branches_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/base-branches":{"get":{"summary":"Git Base Branches Route","operationId":"git_base_branches_route_api_git_base_branches_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/review/list":{"get":{"summary":"Git Review List Route","operationId":"git_review_list_route_api_git_review_list_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"uncommitted","title":"Scope"}},{"name":"base","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/review/diff":{"get":{"summary":"Git Review Diff Route","operationId":"git_review_diff_route_api_git_review_diff_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}},{"name":"file","in":"query","required":true,"schema":{"type":"string","title":"File"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"uncommitted","title":"Scope"}},{"name":"base","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base"}},{"name":"staged","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Staged"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/file-diff":{"get":{"summary":"Git File Diff Route","operationId":"git_file_diff_route_api_git_file_diff_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}},{"name":"file","in":"query","required":true,"schema":{"type":"string","title":"File"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/review/commit-context":{"get":{"summary":"Git Commit Context Route","operationId":"git_commit_context_route_api_git_review_commit_context_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/review/rev-parse":{"get":{"summary":"Git Rev Parse Route","operationId":"git_rev_parse_route_api_git_review_rev_parse_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}},{"name":"ref","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/review/ship-info":{"get":{"summary":"Git Ship Info Route","operationId":"git_ship_info_route_api_git_review_ship_info_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/review/pr-list":{"post":{"summary":"Git Pr List Route","operationId":"git_pr_list_route_api_git_review_pr_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitPrListBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/review/stage":{"post":{"summary":"Git Stage Route","operationId":"git_stage_route_api_git_review_stage_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitFileBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/review/unstage":{"post":{"summary":"Git Unstage Route","operationId":"git_unstage_route_api_git_review_unstage_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitFileBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/review/revert":{"post":{"summary":"Git Revert Route","operationId":"git_revert_route_api_git_review_revert_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitFileBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/review/commit":{"post":{"summary":"Git Commit Route","operationId":"git_commit_route_api_git_review_commit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitCommitBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/review/push":{"post":{"summary":"Git Push Route","operationId":"git_push_route_api_git_review_push_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitPathBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/review/create-pr":{"post":{"summary":"Git Create Pr Route","operationId":"git_create_pr_route_api_git_review_create_pr_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitPathBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/worktree/add":{"post":{"summary":"Git Worktree Add Route","operationId":"git_worktree_add_route_api_git_worktree_add_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitWorktreeAddBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/worktree/remove":{"post":{"summary":"Git Worktree Remove Route","operationId":"git_worktree_remove_route_api_git_worktree_remove_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitWorktreeRemoveBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/git/branch/switch":{"post":{"summary":"Git Branch Switch Route","operationId":"git_branch_switch_route_api_git_branch_switch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitBranchSwitchBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/local-models/status":{"get":{"summary":"Local Models Status","description":"Cheap, immediate: config state + installed runtime + staged models + supervisor state (GPU facts live\nin /hardware). Sync def on purpose: blocking urlopen/scans run in the threadpool.","operationId":"local_models_status_api_local_models_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/local-models/hardware":{"get":{"summary":"Local Models Hardware","description":"The budget as plain facts, polled by the pane and statusbar. Sync def: shells out to nvidia-smi — threadpool.","operationId":"local_models_hardware_api_local_models_hardware_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/local-models/catalog":{"get":{"summary":"Local Models Catalog","description":"Every entry answers up front: how big is the download, will it fit, what context/speed shape will I\nget. The row advertises the BEST build for this machine (highest quality fully on GPU at the 64K floor;\nelse the smallest that works, spilled and priced). No entry is hidden; unaffordable models show WHY.\nSync def: blocking I/O -> threadpool.","operationId":"local_models_catalog_api_local_models_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/local-models/runtime/install":{"post":{"summary":"Local Models Runtime Install","operationId":"local_models_runtime_install_api_local_models_runtime_install_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuntimeInstallBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/local-models/download":{"post":{"summary":"Local Models Download","description":"Accepts either a family id (downloads this machine's selected variant) or an exact variant model_id.","operationId":"local_models_download_api_local_models_download_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelDownloadBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/local-models/download/pause":{"post":{"summary":"Local Models Download Pause","description":"Pause the download phase of a model, component or quickstart job.","operationId":"local_models_download_pause_api_local_models_download_pause_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobIdBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/local-models/download/resume":{"post":{"summary":"Local Models Download Resume","description":"Restart the same job; PM reuses verified files and durable ranges.","operationId":"local_models_download_resume_api_local_models_download_resume_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobIdBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/local-models/models/{model_id}":{"delete":{"summary":"Local Models Delete","description":"Remove every split part plus private assets, then bounce the router off the request thread (deleting\nthe active file mid-serve is exactly the stale state the refresh exists for).","operationId":"local_models_delete_api_local_models_models__model_id__delete","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","title":"Model Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/local-models/quickstart":{"post":{"summary":"Local Models Quickstart","description":"One job: install the runtime (if missing), download this machine's build of the recommended model (if\nmissing), make it the default. Each leg uses the same code as the individual setup routes.\nPreflight rejects (no automatic recommendation or no servable choice) fail the POST\nsynchronously so the button can explain itself; everything slow runs in the job with phase/byte progress.","operationId":"local_models_quickstart_api_local_models_quickstart_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuickstartBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/local-models/server":{"post":{"summary":"Local Models Server","description":"Turn the local engine off (stop the server, free ALL GPU memory, disable auto-start) or back on. Unlike\nper-model eject the off switch IS durable: the user said off, so boots stay off until they say on.","operationId":"local_models_server_api_local_models_server_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerActionBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/local-models/eject":{"post":{"summary":"Local Models Eject","description":"Free a loaded model's GPU memory now; only demand (the next message) reloads it — residency v2 has no\nautomatic loading anywhere. Sync def: the fallback path blocks on a 120s urlopen — threadpool, never the loop.","operationId":"local_models_eject_api_local_models_eject_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelEjectBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/local-models/activate":{"post":{"summary":"Local Models Activate","description":"Make a downloaded model the default for new chats: a config write via the same machinery as\n/api/model/set plus making sure the server is up. NO model loading (residency v2: models load on first\ninference; an empty router costs nothing). Kept as a job for UI continuity.","operationId":"local_models_activate_api_local_models_activate_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelActivateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/local-models/jobs":{"get":{"summary":"Local Models Jobs","description":"All recent jobs, running first — the pane and app-level poller rediscover in-flight work here after a remount.","operationId":"local_models_jobs_api_local_models_jobs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/local-models/jobs/{job_id}":{"get":{"summary":"Local Models Job","operationId":"local_models_job_api_local_models_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/local-models/search":{"get":{"summary":"Local Models Search","description":"Full-text HF search over GGUF models — the firehose behind the curated catalog; fit pills come from /search/files.","operationId":"local_models_search_api_local_models_search_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/local-models/search/files":{"get":{"summary":"Local Models Search Files","description":"Servable GGUFs in one HF repo with a rough pre-download fit verdict per quant (file size + conservative\nfill-ins; the GGUF header refines it).","operationId":"local_models_search_files_api_local_models_search_files_get","parameters":[{"name":"repo","in":"query","required":true,"schema":{"type":"string","title":"Repo"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/local-models/download-browsed":{"post":{"summary":"Local Models Download Browsed","description":"Download an arbitrary HF GGUF into the managed models dir. Once landed it is a normal staged model (the\npost-download bounce regenerates presets from its real header); with no catalog entry it serves\n'unverified', capabilities answered from the live server only.","operationId":"local_models_download_browsed_api_local_models_download_browsed_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowsedDownloadBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/local-models/sideload":{"post":{"summary":"Local Models Sideload","description":"Register a GGUF already on this machine: link it into the managed models dir (copy only when linking is\nimpossible) and bounce the router. The original stays put; delete-from-Hermes removes only our link.","operationId":"local_models_sideload_api_local_models_sideload_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SideloadBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ssh/ownership":{"get":{"summary":"Get Ssh Ownership","operationId":"get_ssh_ownership_api_ssh_ownership_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health":{"get":{"summary":"Get Health","description":"Lightweight process liveness for desktop/backend readiness probes.\n\n``commit`` is the code this process BOOTED from (``get_version_info`` is cached at\n``web_server`` import): Desktop refuses to attach to a backend whose commit differs from\nits checkout, so a serve that outlived ``hermes update`` is never re-adopted.","operationId":"get_health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/host/identity":{"get":{"summary":"Get Host Identity","description":"Prove to an attaching `hermes serve`/`dashboard` WHO owns this port.\n\nThe host rendezvous record names a (pid, port) owner, but a record cannot say whether that\nowner still holds the port: a graceful-shutdown window or an unrelated listener that\ninherited the port both look identical on disk. The attaching side dials this endpoint with\nthe owner's 0600 token and attaches only when pid+role match. ``servesSpa`` is false for\nheadless ``serve``, so a `hermes dashboard` user is never routed to a backend with no UI.","operationId":"get_host_identity_api_host_identity_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health/idle":{"get":{"summary":"Get Health Idle","description":"Token-gated diagnostic snapshot; never a retirement permit. None means cannot prove idle.","operationId":"get_health_idle_api_health_idle_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health/retirement":{"post":{"summary":"Post Health Retirement","operationId":"post_health_retirement_api_health_retirement_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/status":{"get":{"summary":"Get Status","description":"Public machine-level liveness probe (``PUBLIC_API_PATHS``): version, gateway state,\nactive session count and the auth-gate shape — no bodies, no session content, no secrets.\n\n``?profile=`` (dashboard management switcher) uses the config-only contextvar scope, NOT\n_profile_scope: this handler awaits the remote health probe, and _profile_scope holds a\nprocess-wide lock that must never be held across an await.","operationId":"get_status_api_status_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/system/stats":{"get":{"summary":"Get System Stats","description":"Host + process system stats for the System page (stdlib identity; psutil CPU/memory/\ndisk/uptime when available). Non-sensitive: no env values, no paths beyond hermes home.","operationId":"get_system_stats_api_system_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/curator":{"get":{"summary":"Get Curator Status","operationId":"get_curator_status_api_curator_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/curator/paused":{"put":{"summary":"Set Curator Paused","operationId":"set_curator_paused_api_curator_paused_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CuratorPause"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/curator/run":{"post":{"summary":"Run Curator","description":"Trigger a curator review now (backgrounded; tail via action status). The curator\narchives and rewrites skills, so an unnamed target is refused while this backend\nserves several profiles.","operationId":"run_curator_api_curator_run_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/learning/graph":{"get":{"summary":"Get Learning Graph","description":"Learning graph for the desktop panel: profile-scoped learned skills + memory chunks.","operationId":"get_learning_graph_api_learning_graph_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/learning/node":{"get":{"summary":"Get Learning Node","description":"Current content of a journey node (skill SKILL.md or memory chunk), for an edit prefill.","operationId":"get_learning_node_api_learning_node_get","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","title":"Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Learning Node","description":"Delete a journey node — skills are archived (restorable), memories removed.\n\n``?profile=`` is honoured too: a shared-backend Desktop scopes this call by query only, and\nignoring it archived the same-named skill of the launch profile instead.","operationId":"delete_learning_node_api_learning_node_delete","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningNodeRef"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Learning Node","description":"Rewrite a journey node's content (SKILL.md or memory chunk); profile as for DELETE.","operationId":"update_learning_node_api_learning_node_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningNodeEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal":{"get":{"summary":"Get Portal Status","operationId":"get_portal_status_api_portal_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cloud/agents":{"get":{"summary":"List Cloud Agents","description":"The signed-in Nous account's Hermes Cloud agents, for a client with no portal session of its\nown (the Webapp's browser tab): ``hermes_cli.cloud_agents``.","operationId":"list_cloud_agents_api_cloud_agents_get","parameters":[{"name":"org","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/prompt-size":{"post":{"summary":"Run Prompt Size","operationId":"run_prompt_size_api_ops_prompt_size_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/dump":{"post":{"summary":"Run Dump","operationId":"run_dump_api_ops_dump_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/config-migrate":{"post":{"summary":"Run Config Migrate","operationId":"run_config_migrate_api_ops_config_migrate_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/debug-share":{"post":{"summary":"Run Debug Share Endpoint","description":"Upload the allowlisted public debug summary (no log text; full logs only via\n``hermes debug share --nous``) and return the paste URL; refused (400) unless the body\ncarries ``consent: true`` from a user confirmation. Synchronous,\nunlike the other diagnostics actions: the point is the shareable URLs, returned as a\nstructured payload the dashboard renders as copyable links.","operationId":"run_debug_share_endpoint_api_ops_debug_share_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DebugShareRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gateway/restart":{"post":{"summary":"Restart Gateway","description":"Kick off a ``hermes gateway restart --interrupt`` in the background: the user-commanded force\npath that supersedes a drain (D6, 19b26244046), so live sessions do not refuse it.","operationId":"restart_gateway_api_gateway_restart_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gateway/migrate/plan":{"get":{"summary":"Gateway Migrate Plan","description":"Preflight for folding per-profile gateways into one multiplexer (same JSON as the CLI plan).","operationId":"gateway_migrate_plan_api_gateway_migrate_plan_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/gateway/migrate":{"post":{"summary":"Gateway Migrate","description":"Run ``hermes gateway migrate --multiplex --yes`` detached; the CLI re-runs the preflight and\nrefuses (exit 1 into the action log) when blocked, so the UI should gate on the plan first.","operationId":"gateway_migrate_api_gateway_migrate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/gateway/drain":{"post":{"summary":"Gateway Drain","description":"Begin or cancel an external (NAS-driven) gateway drain.\n\nAuthenticated by the non-interactive token-auth seam (the ``dashboard_auth/drain``\nplugin registers this path as a token route and verifies the bearer secret);\nwithout that plugin the cookie gate covers a gated bind and the legacy\nsession-token gate a loopback bind — never unauthenticated on a network bind.\n\nBody ``{\"action\": \"drain\"|\"cancel\"}``. Only the ``.drain_request.json`` marker is\nwritten/removed here — the gateway's ``_drain_control_watcher`` owns the state\ntransition (the marker IS the control channel). Idempotent on both sides;\n``POST /api/gateway/restart`` is the force-override that supersedes a drain.","operationId":"gateway_drain_api_gateway_drain_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/hermes/update":{"post":{"summary":"Update Hermes","description":"Kick off ``hermes update`` in the background.","operationId":"update_hermes_api_hermes_update_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/hermes/update/check":{"get":{"summary":"Check Hermes Update","description":"Report whether a Hermes update is available, without applying it.\n\nReturns install_method ('apt'|'git'|'docker'|'nix'|'nixos'|'unknown'),\ncurrent_version, behind (commits behind, 0 = up to date, -1 = unknown count,\nnull = check could not run), update_available, can_apply (git only — the\ndashboard button can apply in place), update_command, message (guidance for\nnon-applyable methods) and, for git installs that are behind, commits\n[{sha, summary, author, at}] (additive; existing consumers ignore it).","operationId":"check_hermes_update_api_hermes_update_check_get","parameters":[{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audio/transcribe":{"post":{"summary":"Transcribe Audio Upload","operationId":"transcribe_audio_upload_api_audio_transcribe_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudioTranscriptionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audio/voice-config":{"get":{"summary":"Get Client Voice Config","description":"The active profile's STT/TTS config for CLIENT-DIRECT voice.\n\nLets the desktop cut the audio relay hop: mic audio goes straight to the\nprofile's STT provider and reply text is synthesized on the client with\nthe profile's TTS provider — the desktop↔gateway link carries only text.\nProviders that can only run on this host (local whisper, edge-tts,\ncommand/plugin providers) resolve to ``{\"mode\": \"relay\"}`` and the\ndesktop keeps using the /api/audio/* relay endpoints.\n\nSame trust boundary as every profile-scoped route: the caller is an\nauthenticated client that can already drive the agent. Keys in the\nresponse are held in client memory only, never persisted client-side.\nGate: ``voice.client_direct`` in config.yaml (default true), and the\nserving surface (``client_direct_voice``: the Webapp always relays).","operationId":"get_client_voice_config_api_audio_voice_config_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audio/voice-live/status":{"get":{"summary":"Get Voice Live Status","description":"Which voice chat mode the profile selected (``chained`` | ``gpt-live``) and whether GPT-Live\ncan start. Non-secret: the desktop decides which conversation engine to mount from this.","operationId":"get_voice_live_status_api_audio_voice_live_status_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audio/voice-live/session":{"post":{"summary":"Create Voice Live Session","description":"Exchange the renderer's WebRTC SDP offer for a GPT-Live session answer.\n\nThe project API key stays on this host; the renderer only receives the session id and the\nSDP answer. Client delegation is fixed at creation: every ``session.delegation.created`` the\nrenderer receives becomes a Hermes turn on the session it belongs to.","operationId":"create_voice_live_session_api_audio_voice_live_session_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceLiveSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audio/elevenlabs/voices":{"get":{"summary":"Get Elevenlabs Voices","description":"Return ElevenLabs voices when an API key is configured.\n\nThe desktop UI uses this for the ``tts.elevenlabs.voice_id`` dropdown.\nOnly non-secret voice metadata is returned; the API key stays server-side.","operationId":"get_elevenlabs_voices_api_audio_elevenlabs_voices_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audio/speak":{"post":{"summary":"Speak Text","description":"Synthesize speech and return audio as base64 data URL.\n\nUsed by the desktop voice-conversation mode to play back assistant\nresponses without exposing the on-disk file path; reuses the TTS provider\nchain configured under ``tts.`` in config.yaml.","operationId":"speak_text_api_audio_speak_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TTSSpeakRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audio/tts-lease":{"post":{"summary":"Tts Lease","description":"Desktop TTS-output toggles as warm-up / release signals.\n\n``active: true`` registers a lease on the TTS engine and pre-loads the\nconfigured provider (local model, lazily-installed SDK) so the first spoken\nreply doesn't pay the load as dead air; ``active: false`` drops the lease\nand, once no surface holds one, unloads resident local models. Blocking\nwork runs off the event loop. Warm-up failures are reported in the body,\nnever as an HTTP error — the toggle must succeed even when preload fails.","operationId":"tts_lease_api_audio_tts_lease_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TTSLeaseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/audio/stt-lease":{"post":{"summary":"Stt Lease","description":"Desktop voice-input sessions as STT warm-up signals.\n\n``active: true`` pre-loads the configured local STT model (first-use\ndownload + load) so the transcription request doesn't pay the cold cost\ninside its timeout; ``active: false`` is acknowledged and does nothing. The\nmodel stays resident: it is shared with the gateway/CLI surfaces in this\nprocess, and ``stt.local.unload_after_idle_seconds`` governs eviction.\nBlocking work runs off the event loop. Warm-up failures are reported in the\nbody, never as an HTTP error — recording must start even when preload fails.","operationId":"stt_lease_api_audio_stt_lease_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/STTLeaseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/actions/{name}/status":{"get":{"summary":"Get Action Status","description":"Tail an action log and report whether the process is still running.","operationId":"get_action_status_api_actions__name__status_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"lines","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Lines"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hermes/update/receipt":{"get":{"summary":"Get Update Receipt","description":"The FULL latest update receipt (steps, skips, gateway restart outcome, fleet\nmatrix) plus a compact ``summary``; 404 when no update has run since receipts landed.\nClients read this instead of inferring success from backend liveness, which misread\nthe update's own restart gap as a failed update/boot.\n\nSee #81193, #87359, #91277.","operationId":"get_update_receipt_api_hermes_update_receipt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/sessions":{"get":{"summary":"Get Sessions","description":"List sessions.\n\n``order=recent`` sorts by latest activity across the compression chain, so\na long-running chat stays on page one after it auto-compresses onto a fresh\nid.  Rows omit ``system_prompt`` / ``model_config`` unless ``full=1``.","operationId":"get_sessions_api_sessions_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":0,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"min_messages","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Min Messages"}},{"name":"archived","in":"query","required":false,"schema":{"type":"string","default":"exclude","title":"Archived"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"created","title":"Order"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"sources","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sources"}},{"name":"exclude_sources","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclude Sources"}},{"name":"cwd_prefix","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cwd Prefix"}},{"name":"full","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Full"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profiles/sessions":{"get":{"summary":"Get Profiles Sessions","description":"Unified, read-only session list aggregated across ALL profiles: opens each profile's\n``state.db`` directly (no dashboard backend per profile) and tags rows with their owning\n``profile``. Rows omit ``system_prompt`` / ``model_config`` unless ``full=1`` — same\nprojection as ``/api/sessions``.","operationId":"get_profiles_sessions_api_profiles_sessions_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":0,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"min_messages","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Min Messages"}},{"name":"archived","in":"query","required":false,"schema":{"type":"string","default":"exclude","title":"Archived"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","default":"recent","title":"Order"}},{"name":"profile","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Profile"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"sources","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sources"}},{"name":"exclude_sources","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclude Sources"}},{"name":"full","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Full"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profiles/sessions/sidebar":{"get":{"summary":"Get Profiles Sessions Sidebar","description":"Batched sidebar session slices (recents / cron / messaging) — one profile-DB open per\nrefresh instead of three ``/api/profiles/sessions`` calls. Same row projection and 300s\nactive heuristic as the per-slice endpoint; all slices use ``min_messages=1`` /\n``archived=exclude`` / recency order.\n\n``recents_profile`` scopes the WHOLE payload, not just recents — the sidebar has one\nscope, so a concrete profile must never show another profile's Telegram threads or\ncronjobs; ``all`` asks for everything.\n\nSee #42651, #65710, #70629.","operationId":"get_profiles_sessions_sidebar_api_profiles_sessions_sidebar_get","parameters":[{"name":"recents_profile","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Recents Profile"}},{"name":"recents_limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Recents Limit"}},{"name":"recents_exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recents Exclude"}},{"name":"cron_limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Cron Limit"}},{"name":"messaging_limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Messaging Limit"}},{"name":"messaging_exclude","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Messaging Exclude"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profiles/projects/tree":{"get":{"summary":"Get Profiles Projects Tree","description":"Project tree for every profile at once, for the all-profiles sidebar.\n\n``projects.tree`` over JSON-RPC answers for the backend's own profile only; this runs the\nsame builder once per profile against its ``state.db``, scoping the other inputs\n(projects.db, repo-scan policy, junk filters) through the home override. Discovery is\noff: a repo with zero sessions is the same repo in every profile (the disk scan would\nmultiply empty lanes by the profile count), and discovery is the one part of the builder\nthat writes (policy reconciliation), which a read-only fan-out must not do.\n\n``profile`` limits the scan to that one profile: a native grant may read only its own, so\nthe Desktop merges one such read per profile by each project's ``mergeKey``.","operationId":"get_profiles_projects_tree_api_profiles_projects_tree_get","parameters":[{"name":"preview_limit","in":"query","required":false,"schema":{"type":"integer","default":3,"title":"Preview Limit"}},{"name":"session_limit","in":"query","required":false,"schema":{"type":"integer","default":2000,"title":"Session Limit"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profiles/sessions/pull-requests":{"post":{"summary":"Post Profiles Sessions Pull Requests","description":"The PR each of these sessions opened, recovered from its own transcript: a session\nthat starts in the main checkout and works in a worktree has no branch of its own, so\nits PR is invisible to the branch join — but ``gh pr create`` ran in the conversation\n(see ``_pr_url_from_tool_output``). Read-only across every profile.","operationId":"post_profiles_sessions_pull_requests_api_profiles_sessions_pull_requests_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionPrScanBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions/search":{"get":{"summary":"Search Sessions","description":"Search sessions by ID (first) plus FTS5 message content.\n\nResults are deduped by compression lineage, not raw ``session_id``:\nauto-compression rotates a chat onto a fresh id and leaves the old segment\nin the FTS index.  Branches also use ``parent_session_id`` but are real\nalternate conversations — they are NOT collapsed into the parent.","operationId":"search_sessions_api_sessions_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"sources","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sources"}},{"name":"exclude_sources","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclude Sources"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/memory/providers/{name}/config":{"get":{"summary":"Get Memory Provider Config","operationId":"get_memory_provider_config_api_memory_providers__name__config_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"surface","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Surface"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Memory Provider Config","operationId":"update_memory_provider_config_api_memory_providers__name__config_put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"surface","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Surface"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryProviderConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/memory/providers/{name}/setup":{"post":{"summary":"Setup Memory Provider","operationId":"setup_memory_provider_api_memory_providers__name__setup_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryProviderSetupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/config":{"get":{"summary":"Get Config","operationId":"get_config_api_config_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"include_defaults","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Defaults"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Config","operationId":"update_config_api_config_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"preserve_language","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Preserve Language"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/config/defaults":{"get":{"summary":"Get Defaults","operationId":"get_defaults_api_config_defaults_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/config/schema":{"get":{"summary":"Get Schema","operationId":"get_schema_api_config_schema_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/egress/status":{"get":{"summary":"Get Egress Status","description":"Dashboard/Desktop-readable egress proxy status and remediation text.","operationId":"get_egress_status_api_egress_status_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/model/info":{"get":{"summary":"Get Model Info","description":"Resolved metadata for the configured model: auto-detected vs configured\ncontext length (so the UI can show \"Auto-detected: 200K\" beside the\noverride) plus models.dev capabilities when available.","operationId":"get_model_info_api_model_info_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/model/options":{"get":{"summary":"Get Model Options","description":"Authenticated providers + curated model lists — REST twin of the ``model.options``\nJSON-RPC on tui_gateway, same response shape so ``ModelPickerDialog`` shares the types.\n``profile`` scopes the picker context so the Models page reads the SAME profile\n/api/model/set writes. ``refresh`` busts the per-provider model-id disk cache\n(picker's explicit \"Refresh Models\"); normal opens stay on the 1h cache.","operationId":"get_model_options_api_model_options_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}},{"name":"include_unconfigured","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Unconfigured"}},{"name":"explicit_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Explicit Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/model/recommended-default":{"get":{"summary":"Get Recommended Default Model","description":"Recommended default model for a freshly-authenticated provider, mirroring\n``hermes model``'s curation so GUI onboarding lands on a sensible default.\nNous honors the user's free/paid tier. Any other provider gets the preferred\nsilent default when its curated list carries it, else the first curated model —\naggregator lists lead with the priciest Anthropic flagship, which must never be\nthe model a user lands on without explicitly picking it.\nResponse: {\"provider\", \"model\", \"free_tier\": bool | None} — free_tier only for\nNous; ``model`` may be empty (caller degrades gracefully).","operationId":"get_recommended_default_model_api_model_recommended_default_get","parameters":[{"name":"provider","in":"query","required":false,"schema":{"type":"string","default":"","title":"Provider"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/model/auxiliary":{"get":{"summary":"Get Auxiliary Models","description":"Current auxiliary task assignments: ``{\"tasks\": [{task, provider, model,\nbase_url}, ...], \"main\": {provider, model}}``. ``profile`` scopes the read —\nwithout it the Models page would show the dashboard profile's pins while\n/api/model/set wrote the selected profile's.\n\nBuilt-in slots come first; plugin-registered tasks follow, each carrying the\n``label``/``hint``/``plugin`` the plugin declared (built-ins are labelled client-side) and\n``inherit_from`` (base slot key or null). An inheriting row also carries ``effective``: the\nroute it resolves to right now, which is the base's while the row itself is unpinned.\n``provider``/``model``/``base_url`` stay the slot's own stored values on every row.","operationId":"get_auxiliary_models_api_model_auxiliary_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/model/moa":{"get":{"summary":"Get Moa Models","description":"Return the configured Mixture-of-Agents provider/model slots.","operationId":"get_moa_models_api_model_moa_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Set Moa Models","description":"Persist the Mixture-of-Agents provider/model slots.","operationId":"set_moa_models_api_model_moa_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoaConfigPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/model/set":{"post":{"summary":"Set Model Assignment","description":"Assign a model to the main slot or an auxiliary task slot. Writes\n``~/.hermes/config.yaml`` — applies to **new** sessions only; a running chat\nPTY hot-swaps via the ``/model`` slash command instead.","operationId":"set_model_assignment_api_model_set_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelAssignment"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/env":{"get":{"summary":"Get Env Vars","operationId":"get_env_vars_api_env_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Set Env Var","operationId":"set_env_var_api_env_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvVarUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Remove Env Var","operationId":"remove_env_var_api_env_delete","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvVarDelete"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/custom-endpoints":{"get":{"summary":"List Custom Endpoints","description":"Return configured OpenAI-compatible custom endpoints for Desktop.\n\nScoped to the requested profile's config.yaml: the desktop settings UI\ntargets the active profile, so read/write must resolve that profile's home\nrather than the process-level HERMES_HOME (mirrors ``/api/config``).","operationId":"list_custom_endpoints_api_providers_custom_endpoints_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Upsert Custom Endpoint","description":"Create or update a v12+ ``providers`` custom endpoint entry.","operationId":"upsert_custom_endpoint_api_providers_custom_endpoints_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomEndpointUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/custom-endpoints/{endpoint_id}/activate":{"post":{"summary":"Activate Custom Endpoint","description":"Set a configured custom endpoint as the default model provider.","operationId":"activate_custom_endpoint_api_providers_custom_endpoints__endpoint_id__activate_post","parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/custom-endpoints/{endpoint_id}":{"delete":{"summary":"Delete Custom Endpoint","description":"Remove a configured custom endpoint from ``providers``.","operationId":"delete_custom_endpoint_api_providers_custom_endpoints__endpoint_id__delete","parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/custom-endpoints/validate":{"post":{"summary":"Validate Custom Endpoint","description":"Probe a custom endpoint by calling its OpenAI-compatible /models URL.","operationId":"validate_custom_endpoint_api_providers_custom_endpoints_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomEndpointUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/validate":{"post":{"summary":"Validate Provider Credential","description":"Live-probe a provider credential before it's saved.\n\nReturns {ok, reachable, message}. ok=True means the provider accepted the\nkey; ok=False + reachable=True means the key is bad (caller should block);\nreachable=False means the network probe couldn't run (caller may save with\na warning rather than hard-blocking offline users).","operationId":"validate_provider_credential_api_providers_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvVarUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/env/reveal":{"post":{"summary":"Reveal Env Var","description":"Return the real (unredacted) value of a single env var.\n\nProtected by the ephemeral session token (per server start, injected into\nthe SPA), rate limiting (max 5 reveals per 30s window) and audit logging.","operationId":"reveal_env_var_api_env_reveal_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvVarReveal"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messaging/whatsapp/onboarding/start":{"post":{"summary":"Start Whatsapp Onboarding","operationId":"start_whatsapp_onboarding_api_messaging_whatsapp_onboarding_start_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppOnboardingStart"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messaging/whatsapp/onboarding/{pairing_id}":{"get":{"summary":"Get Whatsapp Onboarding Status","operationId":"get_whatsapp_onboarding_status_api_messaging_whatsapp_onboarding__pairing_id__get","parameters":[{"name":"pairing_id","in":"path","required":true,"schema":{"type":"string","title":"Pairing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Cancel Whatsapp Onboarding","operationId":"cancel_whatsapp_onboarding_api_messaging_whatsapp_onboarding__pairing_id__delete","parameters":[{"name":"pairing_id","in":"path","required":true,"schema":{"type":"string","title":"Pairing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messaging/whatsapp/onboarding/{pairing_id}/apply":{"post":{"summary":"Apply Whatsapp Onboarding","operationId":"apply_whatsapp_onboarding_api_messaging_whatsapp_onboarding__pairing_id__apply_post","parameters":[{"name":"pairing_id","in":"path","required":true,"schema":{"type":"string","title":"Pairing Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppOnboardingApply"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messaging/telegram/onboarding/start":{"post":{"summary":"Start Telegram Onboarding","operationId":"start_telegram_onboarding_api_messaging_telegram_onboarding_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramOnboardingStart"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messaging/telegram/onboarding/{pairing_id}":{"get":{"summary":"Get Telegram Onboarding Status","operationId":"get_telegram_onboarding_status_api_messaging_telegram_onboarding__pairing_id__get","parameters":[{"name":"pairing_id","in":"path","required":true,"schema":{"type":"string","title":"Pairing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Cancel Telegram Onboarding","operationId":"cancel_telegram_onboarding_api_messaging_telegram_onboarding__pairing_id__delete","parameters":[{"name":"pairing_id","in":"path","required":true,"schema":{"type":"string","title":"Pairing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messaging/telegram/onboarding/{pairing_id}/apply":{"post":{"summary":"Apply Telegram Onboarding","operationId":"apply_telegram_onboarding_api_messaging_telegram_onboarding__pairing_id__apply_post","parameters":[{"name":"pairing_id","in":"path","required":true,"schema":{"type":"string","title":"Pairing Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramOnboardingApply"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messaging/platforms":{"get":{"summary":"Get Messaging Platforms","operationId":"get_messaging_platforms_api_messaging_platforms_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messaging/platforms/{platform_id}":{"put":{"summary":"Update Messaging Platform","operationId":"update_messaging_platform_api_messaging_platforms__platform_id__put","parameters":[{"name":"platform_id","in":"path","required":true,"schema":{"type":"string","title":"Platform Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingPlatformUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messaging/platforms/{platform_id}/test":{"post":{"summary":"Test Messaging Platform","operationId":"test_messaging_platform_api_messaging_platforms__platform_id__test_post","parameters":[{"name":"platform_id","in":"path","required":true,"schema":{"type":"string","title":"Platform Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messaging/relay":{"get":{"summary":"Get Relay Links","description":"Accounts linked to this instance per shared-bot platform, and each bot's DM link.","operationId":"get_relay_links_api_messaging_relay_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/messaging/relay/{platform}/link":{"post":{"summary":"Request Relay Link","description":"A one-time ``/link <code>`` for the account that sends it to the shared bot.","operationId":"request_relay_link_api_messaging_relay__platform__link_post","parameters":[{"name":"platform","in":"path","required":true,"schema":{"type":"string","title":"Platform"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messaging/relay/link/{code}":{"get":{"summary":"Get Relay Link State","operationId":"get_relay_link_state_api_messaging_relay_link__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messaging/relay/{platform}/accounts/{platform_user_id}":{"delete":{"summary":"Unlink Relay Account","operationId":"unlink_relay_account_api_messaging_relay__platform__accounts__platform_user_id__delete","parameters":[{"name":"platform","in":"path","required":true,"schema":{"type":"string","title":"Platform"}},{"name":"platform_user_id","in":"path","required":true,"schema":{"type":"string","title":"Platform User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/oauth":{"get":{"summary":"List Oauth Providers","description":"Every OAuth-capable provider with current status (token_preview is the last\nN chars, never the full token; disconnect_command only for external providers).","operationId":"list_oauth_providers_api_providers_oauth_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/oauth/{provider_id}":{"delete":{"summary":"Disconnect Oauth Provider","description":"Disconnect an OAuth provider. Token-protected (matches /env/reveal).","operationId":"disconnect_oauth_provider_api_providers_oauth__provider_id__delete","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/oauth/{provider_id}/start":{"post":{"summary":"Start Oauth Login","description":"Initiate an OAuth login flow. Token-protected.","operationId":"start_oauth_login_api_providers_oauth__provider_id__start_post","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/oauth/{provider_id}/submit":{"post":{"summary":"Submit Oauth Code","description":"Submit the auth code for PKCE flows. Token-protected.","operationId":"submit_oauth_code_api_providers_oauth__provider_id__submit_post","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthSubmitBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/oauth/{provider_id}/poll/{session_id}":{"get":{"summary":"Poll Oauth Session","description":"Poll a session's status (no auth — read-only state). One endpoint serves\nevery device-code flow: all report progress via the worker-updated ``status``.\nWith *wait* (seconds) it is a long-poll: it answers once the session leaves ``pending``.","operationId":"poll_oauth_session_api_providers_oauth__provider_id__poll__session_id__get","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","title":"Provider Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"wait","in":"query","required":false,"schema":{"type":"number","default":0,"title":"Wait"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/oauth/nous/handoff":{"get":{"summary":"Nous Handoff Status","description":"The profile's latest free-tier handoff (``guest_handoff.wire_status``). Token-protected. A\nlong-poll: given *since* (the ``updated_at`` the caller already shows) and *wait*, it answers once\nthe record changes. The keepalive retries a move in the background; this only reads.","operationId":"nous_handoff_status_api_providers_oauth_nous_handoff_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"wait","in":"query","required":false,"schema":{"type":"number","default":0,"title":"Wait"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers/oauth/sessions/{session_id}":{"delete":{"summary":"Cancel Oauth Session","description":"Cancel a pending OAuth session. Token-protected.\n\nMarks the session dict ``cancelled`` before popping it so a background\nworker still holding that dict (e.g. the Codex poller) stops\npolling/exchanging/saving instead of completing the login after the user\nbelieved it was aborted.","operationId":"cancel_oauth_session_api_providers_oauth_sessions__session_id__delete","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions/bulk-delete":{"post":{"summary":"Bulk Delete Sessions Endpoint","description":"Delete every session in ``body.ids`` in one transaction (POST: many\nclients refuse a DELETE body).\n\nPer ``SessionRepository.delete_many``: unknown ids are skipped (``deleted``\nreports what really happened), children are orphaned, active/archived rows\nARE deleted (hand-picked), on-disk cleanup is left to the next prune.\n\nCompression chains are deleted whole: the sessions list shows one row per\nlogical conversation carrying the chain *tip's* id, so deleting only that\nrow would leave the root to resurface as the previous chain link on the\nnext reload (#57543). ``deleted`` still counts the selected rows, not the\nexpanded chain links.","operationId":"bulk_delete_sessions_endpoint_api_sessions_bulk_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteSessions"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions/import":{"post":{"summary":"Import Sessions Endpoint","description":"Import sessions exported from the dashboard or CLI (session rows only —\n``/api/ops/import`` restores a whole backup archive).","operationId":"import_sessions_endpoint_api_sessions_import_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/sessions/empty/count":{"get":{"summary":"Count Empty Sessions Endpoint","description":"Count of empty, ended, non-archived sessions (the \"Delete empty (N)\" button).","operationId":"count_empty_sessions_endpoint_api_sessions_empty_count_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions/empty":{"delete":{"summary":"Delete Empty Sessions Endpoint","description":"Delete every empty, ended, non-archived session in one transaction.\n\n\"Empty\" means NO ``messages`` rows at all — a rewound/compacted chat reads\n``message_count == 0`` while its soft-archived rows are the only transcript\ncopy (see ``SessionRepository.delete_empty``).\n\n* Active sessions are skipped (``ended_at IS NULL``) so a live agent isn't yanked mid-handshake. *\nArchived sessions are skipped — the user explicitly chose to keep those rows. * Children of deleted\nparents are orphaned, not cascade-deleted. See #95868.","operationId":"delete_empty_sessions_endpoint_api_sessions_empty_delete","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions/stats":{"get":{"summary":"Get Session Stats","description":"Session-store statistics (mirrors `hermes sessions stats`).","operationId":"get_session_stats_api_sessions_stats_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions/{session_id}":{"get":{"summary":"Get Session Detail","operationId":"get_session_detail_api_sessions__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Session Endpoint","operationId":"delete_session_endpoint_api_sessions__session_id__delete","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"request_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"}},{"name":"expected_revision","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Revision"}},{"name":"expected_generation","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Generation"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Rename Session Endpoint","description":"Title and sidebar flags share one authoritative revision and receipt.","operationId":"rename_session_endpoint_api_sessions__session_id__patch","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionRename"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions/{session_id}/mutation-snapshot":{"get":{"summary":"Get Session Mutation Snapshot","operationId":"get_session_mutation_snapshot_api_sessions__session_id__mutation_snapshot_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions/{session_id}/latest-descendant":{"get":{"summary":"Get Session Latest Descendant","operationId":"get_session_latest_descendant_api_sessions__session_id__latest_descendant_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions/{session_id}/messages":{"get":{"summary":"Get Session Messages","operationId":"get_session_messages_api_sessions__session_id__messages_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order"}},{"name":"include_compacted","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Compacted"}},{"name":"inline_images","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Inline Images"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions/{session_id}/timeline":{"get":{"summary":"Get Session Timeline","description":"Prompt metadata only, including compacted display history (never rewind rows).\n\n``next_cursor`` is a stable logical first-row id; pass it as ``after_row_id``.\nEntry ``row_id`` addresses the current representative for /messages/around.","operationId":"get_session_timeline_api_sessions__session_id__timeline_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":500,"title":"Limit"}},{"name":"after_row_id","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"After Row Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions/{session_id}/messages/around":{"get":{"summary":"Get Session Messages Around","description":"Bounded display page starting at a timeline prompt; no intervening payloads.","operationId":"get_session_messages_around_api_sessions__session_id__messages_around_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"row_id","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"Row Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":120,"minimum":1,"default":120,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions/owner-backfill":{"post":{"summary":"Backfill Session Owner Profiles","description":"Stamp legacy ``profile_name = NULL`` rows with the serving-profile identity.\n\nA multi-connection Desktop fails closed on unowned rows.  Each ``state.db``\nbelongs to exactly one profile, so this is a single-match, idempotent\nbackfill (non-NULL owners are never overwritten).\n\nThat was fine while one backend served everything, but a Desktop with registry topology (≥2 registered\nconnections) fails closed on unowned rows by design — leaving every pre-campaign session unresumable\nwith no migration path. Each profile's ``state.db`` belongs to exactly one profile, so stamping that\nstore's own name is a single-match backfill, never a guess; the value written is the SAME\nserving-profile identity the list endpoints already stamp onto outgoing rows (``row_profile`` in\n``get_sessions``). See #95407.","operationId":"backfill_session_owner_profiles_api_sessions_owner_backfill_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionOwnerBackfill"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions/{session_id}/export":{"get":{"summary":"Export Session Endpoint","description":"Stream a single session (metadata + messages) as JSON.","operationId":"export_session_endpoint_api_sessions__session_id__export_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions/prune":{"post":{"summary":"Prune Sessions Endpoint","description":"Delete ended sessions matching filters without blocking the event loop.","operationId":"prune_sessions_endpoint_api_sessions_prune_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionPrune"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/logs":{"get":{"summary":"Get Logs","operationId":"get_logs_api_logs_get","parameters":[{"name":"file","in":"query","required":false,"schema":{"type":"string","default":"agent","title":"File"}},{"name":"lines","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Lines"}},{"name":"level","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level"}},{"name":"component","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Component"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/jobs":{"get":{"summary":"List Cron Jobs","operationId":"list_cron_jobs_api_cron_jobs_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Cron Job","operationId":"create_cron_job_api_cron_jobs_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CronJobCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/jobs/{job_id}":{"get":{"summary":"Get Cron Job","operationId":"get_cron_job_api_cron_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Cron Job","operationId":"update_cron_job_api_cron_jobs__job_id__put","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CronJobUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Cron Job","operationId":"delete_cron_job_api_cron_jobs__job_id__delete","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/jobs/{job_id}/runs":{"get":{"summary":"List Cron Job Runs","operationId":"list_cron_job_runs_api_cron_jobs__job_id__runs_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/delivery-targets":{"get":{"summary":"Get Cron Delivery Targets","description":"Delivery targets for the cron dropdown: implicit ``local`` plus the\nconfigured gateway platforms (a platform without a cron home channel is\nstill listed with ``home_target_set: false`` so the UI can say so).\n\n``cron_delivery_targets()`` reads each platform's home channel through\n``get_secret``, which fails closed once this process hosts more than one\nprofile home (the dashboard/desktop ``serve`` backend flips multi-profile\nhosting on the first ``?profile=`` request). The read must therefore run\ninside the profile scope, exactly like the sibling cron routes — otherwise\nthe poll raises ``UnscopedSecretError`` on every tick and the dropdown\nsilently loses every configured platform.","operationId":"get_cron_delivery_targets_api_cron_delivery_targets_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/jobs/{job_id}/pause":{"post":{"summary":"Pause Cron Job","operationId":"pause_cron_job_api_cron_jobs__job_id__pause_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/jobs/{job_id}/resume":{"post":{"summary":"Resume Cron Job","operationId":"resume_cron_job_api_cron_jobs__job_id__resume_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/jobs/{job_id}/trigger":{"post":{"summary":"Trigger Cron Job","operationId":"trigger_cron_job_api_cron_jobs__job_id__trigger_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/jobs/{job_id}/cancel":{"post":{"summary":"Cancel Cron Job","operationId":"cancel_cron_job_api_cron_jobs__job_id__cancel_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/fire":{"post":{"summary":"Cron Fire Webhook","description":"Chronos managed-cron fire webhook (NAS -> agent) — gateway forwarder.\n\nGated by the NAS-minted JWT (path is in ``PUBLIC_API_PATHS``), not the\ndashboard cookie. Execution belongs to the GATEWAY process (it owns the live\nplatform adapters relay-fronted and E2EE targets need), so the fire is\nforwarded to the gateway api_server's own ``/api/cron/fire`` on loopback\nand its response passed through (the gateway re-verifies the JWT). Gateway\nunreachable -> 503 so NAS retries; deliberately NO local-execution fallback.","operationId":"cron_fire_webhook_api_cron_fire_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/cron/blueprints":{"get":{"summary":"List Cron Blueprints","description":"Blueprint catalog (built-ins + the profile's plugin blueprints) as form schemas.","operationId":"list_cron_blueprints_api_cron_blueprints_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cron/blueprints/instantiate":{"post":{"summary":"Instantiate Blueprint","description":"Fill a blueprint's slots and create the cron job (form-submit path).","operationId":"instantiate_blueprint_api_cron_blueprints_instantiate_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"type":"string","default":"default","title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationBlueprintInstantiate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers":{"get":{"summary":"List Mcp Servers","operationId":"list_mcp_servers_api_mcp_servers_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Add Mcp Server","operationId":"add_mcp_server_api_mcp_servers_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPServerCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Replace Mcp Servers","description":"Replace the entire ``mcp_servers`` map (the mcp.json editor's save) —\nthe deep-merging ``/api/config`` can never delete a key or drop an\n``enabled: false``, so removals wouldn't persist through it.","operationId":"replace_mcp_servers_api_mcp_servers_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPServersReplace"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers/{name}":{"delete":{"summary":"Remove Mcp Server","operationId":"remove_mcp_server_api_mcp_servers__name__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers/{name}/test":{"post":{"summary":"Test Mcp Server","description":"Connect to the server, list its tools, disconnect.","operationId":"test_mcp_server_api_mcp_servers__name__test_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers/{name}/auth":{"post":{"summary":"Auth Mcp Server","description":"Start MCP OAuth and hand the authorization URL to the dashboard browser.","operationId":"auth_mcp_server_api_mcp_servers__name__auth_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/oauth/flows/{flow_id}":{"get":{"summary":"Mcp Oauth Flow Status","operationId":"mcp_oauth_flow_status_api_mcp_oauth_flows__flow_id__get","parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Cancel Mcp Oauth Flow","description":"Cancel an in-flight flow. mark_error unblocks the worker so it frees the\nper-server \"already in progress\" slot — otherwise a renderer that stops\npolling leaves the flow squatting until the 300s callback timeout and every\nretry 409s. Idempotent: a settled flow is left as-is.","operationId":"cancel_mcp_oauth_flow_api_mcp_oauth_flows__flow_id__delete","parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"string","title":"Flow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/oauth/callback/{server_name}":{"get":{"summary":"Mcp Oauth Callback","operationId":"mcp_oauth_callback_api_mcp_oauth_callback__server_name__get","parameters":[{"name":"server_name","in":"path","required":true,"schema":{"type":"string","title":"Server Name"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"iss","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Iss"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/servers/{name}/enabled":{"put":{"summary":"Set Mcp Server Enabled","description":"Toggle ``enabled`` (takes effect on next session/gateway); disabled\nservers stay in config so they can be re-enabled without re-entry.","operationId":"set_mcp_server_enabled_api_mcp_servers__name__enabled_put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPEnabledToggle"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/catalog":{"get":{"summary":"List Mcp Catalog","description":"Browse the Nous-approved MCP catalog (optional-mcps/ manifests), each\nentry annotated with installed/enabled state for ``profile``.","operationId":"list_mcp_catalog_api_mcp_catalog_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp/catalog/install":{"post":{"summary":"Install Mcp Catalog Entry","description":"Install a catalog MCP into config.yaml (declared env vars go to .env\nfirst; git-bootstrap entries run via the background CLI action path).","operationId":"install_mcp_catalog_entry_api_mcp_catalog_install_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPCatalogInstall"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pairing":{"get":{"summary":"List Pairing","operationId":"list_pairing_api_pairing_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pairing/approve":{"post":{"summary":"Approve Pairing","operationId":"approve_pairing_api_pairing_approve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PairingApprove"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pairing/revoke":{"post":{"summary":"Revoke Pairing","operationId":"revoke_pairing_api_pairing_revoke_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PairingRevoke"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pairing/clear-pending":{"post":{"summary":"Clear Pending Pairing","operationId":"clear_pending_pairing_api_pairing_clear_pending_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks":{"get":{"summary":"List Webhooks","operationId":"list_webhooks_api_webhooks_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Webhook","operationId":"create_webhook_api_webhooks_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/enable":{"post":{"summary":"Enable Webhooks","operationId":"enable_webhooks_api_webhooks_enable_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/{name}":{"delete":{"summary":"Delete Webhook","operationId":"delete_webhook_api_webhooks__name__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/{name}/enabled":{"put":{"summary":"Set Webhook Enabled","description":"Disabled routes stay on disk (re-enable later) but the gateway rejects\ntheir events with 403; it hot-reloads the file, so no restart is needed.","operationId":"set_webhook_enabled_api_webhooks__name__enabled_put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnabledToggle"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gateway/start":{"post":{"summary":"Start Gateway","operationId":"start_gateway_api_gateway_start_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gateway/stop":{"post":{"summary":"Stop Gateway","operationId":"stop_gateway_api_gateway_stop_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"interrupt","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Interrupt"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/credentials/pool":{"get":{"summary":"List Credential Pool","operationId":"list_credential_pool_api_credentials_pool_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Add Credential Pool Entry","operationId":"add_credential_pool_entry_api_credentials_pool_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialPoolAdd"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/credentials/pool/{provider}/{index}":{"delete":{"summary":"Remove Credential Pool Entry","description":"Remove a pool entry (``index`` is 1-based, as listed).\n\nRemoval must be sticky: ``load_pool()`` re-seeds entries from their backing\nsource (.env var, OAuth file, custom-provider config) on every call, so\ndeleting only the row silently reverts on the next refresh. Dispatch through\nthe same RemovalStep registry as ``hermes auth remove``: each source cleans\nits external state and suppresses ``(provider, source)`` so seeders skip it.\nManual entries have no step — nothing external, and they aren't re-seeded.\n\nSee #55217.","operationId":"remove_credential_pool_entry_api_credentials_pool__provider___index__delete","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"index","in":"path","required":true,"schema":{"type":"integer","title":"Index"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/memory":{"get":{"summary":"Get Memory Status","operationId":"get_memory_status_api_memory_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/memory/provider":{"put":{"summary":"Set Memory Provider","operationId":"set_memory_provider_api_memory_provider_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryProviderSelect"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/memory/reset":{"post":{"summary":"Reset Memory","operationId":"reset_memory_api_memory_reset_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryReset"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/doctor":{"post":{"summary":"Run Doctor","operationId":"run_doctor_api_ops_doctor_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/security-audit":{"post":{"summary":"Run Security Audit","operationId":"run_security_audit_api_ops_security_audit_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/backup":{"post":{"summary":"Run Backup","operationId":"run_backup_api_ops_backup_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/backup/download":{"get":{"summary":"Download Dashboard Backup","operationId":"download_dashboard_backup_api_ops_backup_download_get","parameters":[{"name":"archive","in":"query","required":true,"schema":{"type":"string","title":"Archive"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/import":{"post":{"summary":"Run Import","operationId":"run_import_api_ops_import_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/import-upload":{"post":{"summary":"Run Import Upload","operationId":"run_import_upload_api_ops_import_upload_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_run_import_upload_api_ops_import_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/hooks":{"get":{"summary":"List Hooks","description":"Configured shell hooks with consent (allowlist) status, whether the\nscript is currently executable, and the valid hook events for the form.","operationId":"list_hooks_api_ops_hooks_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Hook","description":"Add a shell hook to config.yaml and optionally record consent.\n\nShell hooks run arbitrary commands, so this is privileged: it writes the\n``hooks:`` block and, with ``approve``, records the allowlist entry so the\nhook actually fires. Takes effect on the next session / gateway restart.","operationId":"create_hook_api_ops_hooks_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Hook","description":"Remove a hook from config.yaml and revoke its consent allowlist entry.","operationId":"delete_hook_api_ops_hooks_delete","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookDelete"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/checkpoints":{"get":{"summary":"List Checkpoints","description":"/rollback shadow-store checkpoints (read-only): count + size per session\nso the UI can show what a prune reclaims; pruning itself is a spawned CLI\naction so the confirmation logic stays in one place.","operationId":"list_checkpoints_api_ops_checkpoints_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/checkpoints/prune":{"post":{"summary":"Prune Checkpoints","operationId":"prune_checkpoints_api_ops_checkpoints_prune_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/backup/chunk":{"get":{"summary":"Read Dashboard Backup Chunk","description":"One base64 slice of a backup this dashboard wrote.","operationId":"read_dashboard_backup_chunk_api_ops_backup_chunk_get","parameters":[{"name":"archive","in":"query","required":true,"schema":{"type":"string","title":"Archive"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"length","in":"query","required":false,"schema":{"type":"integer","default":8388608,"title":"Length"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/transfer/chunk":{"post":{"summary":"Append Transfer Chunk","description":"Append one base64 chunk to a transfer upload; ``upload_id`` empty at offset 0 starts one.","operationId":"append_transfer_chunk_api_ops_transfer_chunk_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ops/transfer/restore":{"post":{"summary":"Restore Transfer","description":"Restore a finished transfer upload with ``hermes import --keep-host --messaging-off``: the\nagent's bots arrive switched off, so the computer it came from keeps answering.","operationId":"restore_transfer_api_ops_transfer_restore_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/hub/install":{"post":{"summary":"Install Skill Hub","operationId":"install_skill_hub_api_skills_hub_install_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillInstallRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/hub/uninstall":{"post":{"summary":"Uninstall Skill Hub","operationId":"uninstall_skill_hub_api_skills_hub_uninstall_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillUninstallRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/hub/update":{"post":{"summary":"Update Skills Hub","operationId":"update_skills_hub_api_skills_hub_update_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SkillsUpdateRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/hub/updates":{"get":{"summary":"List Skill Hub Updates","description":"Hub-installed skills with an upstream update, scoped to ``profile`` (the\n``hermes skills check`` pass; fetches from each skill's recorded source).","operationId":"list_skill_hub_updates_api_skills_hub_updates_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/hub/official":{"get":{"summary":"List Official Skills","description":"The ENTIRE optional-skills catalog (local scan), marked installed for ``profile``.","operationId":"list_official_skills_api_skills_hub_official_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/hub/sources":{"get":{"summary":"List Skills Hub Sources","description":"Configured skill-hub sources + installed-skill provenance (scoped to\n``profile``), so the Browse-hub tab has something before a search runs.","operationId":"list_skills_hub_sources_api_skills_hub_sources_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/hub/search":{"get":{"summary":"Search Skills Hub","description":"Search the skill hub across all configured sources (network-bound).","operationId":"search_skills_hub_api_skills_hub_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Source"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/hub/preview":{"get":{"summary":"Preview Skill Hub","description":"A hub skill's SKILL.md + file manifest WITHOUT installing it; scoped to\n``profile`` so different hub taps resolve against THAT source router.","operationId":"preview_skill_hub_api_skills_hub_preview_get","parameters":[{"name":"identifier","in":"query","required":false,"schema":{"type":"string","default":"","title":"Identifier"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/hub/scan":{"get":{"summary":"Scan Skill Hub","description":"Install-time security scan of a hub skill WITHOUT installing it (the CLI's\n``scan_skill`` / ``should_allow_install`` pipeline on a quarantined bundle);\nscoped to ``profile`` so the bundle resolves where an install would.","operationId":"scan_skill_hub_api_skills_hub_scan_get","parameters":[{"name":"identifier","in":"query","required":false,"schema":{"type":"string","default":"","title":"Identifier"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profiles":{"get":{"summary":"List Profiles Endpoint","operationId":"list_profiles_endpoint_api_profiles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Profile Endpoint","operationId":"create_profile_endpoint_api_profiles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profiles/active":{"get":{"summary":"Get Active Profile Endpoint","description":"``active`` is the sticky default written by ``hermes profile use`` (what new CLI\ninvocations pick up); ``current`` is the profile this running dashboard is scoped to.","operationId":"get_active_profile_endpoint_api_profiles_active_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Set Active Profile Endpoint","description":"Set the sticky active profile (mirrors ``hermes profile use``); does not retarget the\nrunning dashboard, only subsequent CLI commands and gateways.","operationId":"set_active_profile_endpoint_api_profiles_active_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileActiveUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profiles/{name}/setup-command":{"get":{"summary":"Get Profile Setup Command","operationId":"get_profile_setup_command_api_profiles__name__setup_command_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profiles/{name}/open-terminal":{"post":{"summary":"Open Profile Terminal Endpoint","operationId":"open_profile_terminal_endpoint_api_profiles__name__open_terminal_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profiles/{name}":{"patch":{"summary":"Rename Profile Endpoint","operationId":"rename_profile_endpoint_api_profiles__name__patch","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileRename"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Profile Endpoint","description":"The dashboard collects the user's confirmation in its own dialog, so ``yes=True``\nalways skips the CLI's interactive prompt.\n\nA delete whose identity settlement stays pending answers ``ok`` with ``settlement_pending``\nand the retry command: the profile directory is already gone, and folding that state into\nthe generic 500 made a dashboard client read a completed delete as a failure (its retry\nthen 404'd).","operationId":"delete_profile_endpoint_api_profiles__name__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profiles/{name}/soul":{"get":{"summary":"Get Profile Soul","operationId":"get_profile_soul_api_profiles__name__soul_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Profile Soul","operationId":"update_profile_soul_api_profiles__name__soul_put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileSoulUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profiles/{name}/description":{"put":{"summary":"Update Profile Description Endpoint","description":"Set or clear a profile's role description (kanban routing signal), stored as\nuser-authored (``description_auto: false``) so the auto-describer won't overwrite it.","operationId":"update_profile_description_endpoint_api_profiles__name__description_put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileDescriptionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profiles/{name}/model":{"put":{"summary":"Update Profile Model Endpoint","description":"Set the main model for a specific profile's config.yaml without touching the dashboard's\nown profile — ``POST /api/model/set`` (main scope) via the HERMES_HOME override.","operationId":"update_profile_model_endpoint_api_profiles__name__model_put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileModelUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profiles/{name}/describe-auto":{"post":{"summary":"Describe Profile Auto Endpoint","description":"Auto-generate a profile's description via the auxiliary LLM (mirrors ``hermes profile\ndescribe <name> --auto``). A failed generation is ``ok: false`` with a reason rather than\nan HTTP error so the UI can surface it inline and let the operator retry.","operationId":"describe_profile_auto_endpoint_api_profiles__name__describe_auto_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileDescribeAuto"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profiles/{name}/export":{"post":{"summary":"Export Profile Endpoint","operationId":"export_profile_endpoint_api_profiles__name__export_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileExport"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profiles/import":{"post":{"summary":"Import Profile Endpoint","operationId":"import_profile_endpoint_api_profiles_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileImport"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profiles/{name}/desktop-overlay":{"get":{"summary":"Get Profile Desktop Overlay","description":"The desktop appearance/interface overlay bundled with an imported profile\n(``desktop.json`` at the profile root), or ``exists: false``.","operationId":"get_profile_desktop_overlay_api_profiles__name__desktop_overlay_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills":{"get":{"summary":"Get Skills","operationId":"get_skills_api_skills_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Skill","description":"Create a skill via the agent's ``skill_manage`` write path, minus the\nwrite-approval gate — an authenticated dashboard write IS the user.\nProfile from the body or ``?profile=``, like the rest of ``/api/skills``.","operationId":"create_skill_api_skills_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/lock":{"put":{"summary":"Lock Skill","description":"Lock/unlock a skill against AGENT edits (same record as ``hermes curator lock``).\nThe user's own edits (this dashboard's editor, their editor) stay allowed.","operationId":"lock_skill_api_skills_lock_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillLock"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/toggle":{"put":{"summary":"Toggle Skill","operationId":"toggle_skill_api_skills_toggle_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillToggle"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/skills/content":{"get":{"summary":"Get Skill Content","description":"Raw SKILL.md text for the dashboard editor.","operationId":"get_skill_content_api_skills_content_get","parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","title":"Name"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Skill Content","description":"Replace the SKILL.md of an existing skill (full rewrite) from the editor.","operationId":"update_skill_content_api_skills_content_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillContentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/toolsets":{"get":{"summary":"Get Toolsets","operationId":"get_toolsets_api_tools_toolsets_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/toolsets/{name}":{"put":{"summary":"Toggle Toolset","description":"Enable/disable a configurable toolset for its configuration platform\n(``platform_toolsets.cli`` for most; platform-restricted toolsets target\ntheir own platform) via the same ``_save_platform_tools`` the CLI uses.","operationId":"toggle_toolset_api_tools_toolsets__name__put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolsetToggle"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/toolsets/{name}/config":{"get":{"summary":"Get Toolset Config","description":"Provider matrix + key status for a toolset's config panel (the CLI picker\nrows, each env var annotated ``is_set``); no category -> ``has_category: false``.","operationId":"get_toolset_config_api_tools_toolsets__name__config_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/toolsets/{name}/models":{"get":{"summary":"Get Toolset Models","description":"Model catalog for a toolset backend (image/video gen) — the GUI\ncounterpart of the CLI model picker.  ``provider`` names a picker row\n(default: the active provider); no catalog -> ``has_models: false``.","operationId":"get_toolset_models_api_tools_toolsets__name__models_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/toolsets/{name}/model":{"put":{"summary":"Select Toolset Model","description":"Persist a backend model selection (``image_gen.model`` /\n``video_gen.model``), validated against the resolved backend's catalog.","operationId":"select_toolset_model_api_tools_toolsets__name__model_put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolsetModelSelect"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/toolsets/{name}/provider":{"put":{"summary":"Select Toolset Provider","description":"Persist a provider selection via ``apply_provider_selection`` (shared with\n``hermes tools``, so both write identical keys).\n\n``web`` only: ``capability`` ('search' | 'extract') writes\n``web.<capability>_backend`` (the override the dispatchers resolve first);\nomitted -> legacy ``web.backend``.  Managed Nous rows report Portal\nentitlement (``needs_nous_auth`` + ``feature``): the GUI has no inline\nlogin, so an unentitled selection would write config and never activate.","operationId":"select_toolset_provider_api_tools_toolsets__name__provider_put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolsetProviderSelect"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/toolsets/{name}/env":{"put":{"summary":"Save Toolset Env","description":"Persist API keys to ``.env`` via ``save_env_value``.  Keys are validated\nagainst the union of the category's visible-provider ``env_vars`` so this\ncan't write arbitrary env vars; a blank value means \"leave unchanged\".","operationId":"save_toolset_env_api_tools_toolsets__name__env_put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolsetEnvUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/toolsets/{name}/post-setup":{"post":{"summary":"Run Toolset Post Setup","description":"Spawn ``hermes tools post-setup <key>`` (long-running installs) as a\nbackground action tailed via ``GET /api/actions/tools-post-setup/status``;\n``profile`` is threaded so hooks see the drawer's HERMES_HOME.","operationId":"run_toolset_post_setup_api_tools_toolsets__name__post_setup_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolsetPostSetup"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/terminal/backends":{"get":{"summary":"Get Terminal Backends","description":"Terminal backend rows with health probes: ``status`` is ``ready`` /\n``needs_setup`` / ``unavailable``; a probe failure is a status, never an\nerror response.","operationId":"get_terminal_backends_api_tools_terminal_backends_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/terminal/backend":{"put":{"summary":"Select Terminal Backend","description":"Persist ``terminal.backend``.  A backend that still needs setup is\nallowed — the picker shows guidance instead of blocking, like the CLI.\nValidated inside the target profile's scope, like the GET: plugin backends\nare registered per profile.","operationId":"select_terminal_backend_api_tools_terminal_backend_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerminalBackendSelect"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/computer-use/status":{"get":{"summary":"Get Computer Use Status","description":"Computer Use readiness for the desktop card (payload shape: see\n``tools.computer_use.permissions.computer_use_status``).","operationId":"get_computer_use_status_api_tools_computer_use_status_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/computer-use/permissions/grant":{"post":{"summary":"Grant Computer Use Permissions","description":"Spawn ``hermes computer-use permissions grant`` (macOS-only: launches\nCuaDriver via LaunchServices so the TCC dialog is attributed correctly).\nThe frontend polls ``GET /api/actions/computer-use-grant/status``.","operationId":"grant_computer_use_permissions_api_tools_computer_use_permissions_grant_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/config/raw":{"get":{"summary":"Get Config Raw","description":"Raw config.yaml text plus its resolved path.\n\n``path`` is resolved inside ``_profile_scope`` so the Config page header\nshows the file the switched profile actually reads/writes — /api/status's\n``config_path`` is machine-global and always reports the dashboard\nprocess's own profile, which is wrong under the global profile switcher.","operationId":"get_config_raw_api_config_raw_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Config Raw","operationId":"update_config_raw_api_config_raw_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RawConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/usage":{"get":{"summary":"Get Usage Analytics","description":"``days`` is clamped to 1-365 (idea from #74778): huge or non-positive\nvalues would force expensive full-history SQL and InsightsEngine work, or\nproduce empty/inverted time windows. The UI only offers 7/30/90-day\npresets.","operationId":"get_usage_analytics_api_analytics_usage_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/models":{"get":{"summary":"Get Models Analytics","description":"Return model analytics without blocking the serving event loop.","operationId":"get_models_analytics_api_analytics_models_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/workspaces":{"get":{"summary":"Get Chat Workspaces","description":"Projects + discovered repos a fresh chat may start in; ``scan=1`` rescans the\nconfigured discovery roots on the host first (headless installs have no Desktop to do it).","operationId":"get_chat_workspaces_api_chat_workspaces_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},{"name":"scan","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Scan"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/themes":{"get":{"summary":"Get Dashboard Themes","description":"Available themes + the active one. Built-ins ship name/label/description only\n(the frontend owns their definitions in `web/src/themes/presets.ts`); user themes\nfrom `~/.hermes/dashboard-themes/*.yaml` ship their normalised `definition`.","operationId":"get_dashboard_themes_api_dashboard_themes_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/theme":{"put":{"summary":"Set Dashboard Theme","description":"Set the active dashboard theme (persists to config.yaml).","operationId":"set_dashboard_theme_api_dashboard_theme_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThemeSetBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/font":{"get":{"summary":"Get Dashboard Font","description":"Return the active font override (``\"theme\"`` = use the theme's font).","operationId":"get_dashboard_font_api_dashboard_font_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Set Dashboard Font","description":"Set the font override (config.yaml). Unknown ids coerce to ``\"theme\"`` rather than\n400 so a stale client can't wedge the picker.","operationId":"set_dashboard_font_api_dashboard_font_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontSetBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/plugins":{"get":{"summary":"Get Dashboard Plugins","description":"Return discovered dashboard plugins (excludes user-hidden and non-enabled ones).","operationId":"get_dashboard_plugins_api_dashboard_plugins_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/plugins/rescan":{"get":{"summary":"Rescan Dashboard Plugins","description":"Force re-scan of the selected profile's dashboard plugins (its own cache, PLG-3).","operationId":"rescan_dashboard_plugins_api_dashboard_plugins_rescan_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/plugins/hub":{"get":{"summary":"Get Plugins Hub","description":"Unified agent plugins + dashboard extension metadata (session protected).","operationId":"get_plugins_hub_api_dashboard_plugins_hub_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/plugins/catalog":{"get":{"summary":"Get Plugins Catalog","description":"Curated plugin catalog merged with installed state (session protected).","operationId":"get_plugins_catalog_api_dashboard_plugins_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/dashboard/agent-plugins/install":{"post":{"summary":"Post Agent Plugin Install","operationId":"post_agent_plugin_install_api_dashboard_agent_plugins_install_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_AgentPluginInstallBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/agent-plugins/update-all":{"post":{"summary":"Post Agent Plugins Update All","description":"Update every plugin with an update, unattended: a widened pin or a git update's caution scan comes back\n``needs_review`` (nothing changed) for the plugin's own Update action to walk.","operationId":"post_agent_plugins_update_all_api_dashboard_agent_plugins_update_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/dashboard/plugins/auto-update":{"get":{"summary":"Get Plugins Auto Update","operationId":"get_plugins_auto_update_api_dashboard_plugins_auto_update_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Put Plugins Auto Update","operationId":"put_plugins_auto_update_api_dashboard_plugins_auto_update_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_PluginAutoUpdateBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/agent-plugins/{name}/enable":{"post":{"summary":"Post Agent Plugin Enable","operationId":"post_agent_plugin_enable_api_dashboard_agent_plugins__name__enable_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/agent-plugins/{name}/disable":{"post":{"summary":"Post Agent Plugin Disable","operationId":"post_agent_plugin_disable_api_dashboard_agent_plugins__name__disable_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/agent-plugins/{name}/update":{"post":{"summary":"Post Agent Plugin Update","operationId":"post_agent_plugin_update_api_dashboard_agent_plugins__name__update_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/agent-plugins/{name}":{"delete":{"summary":"Delete Agent Plugin","operationId":"delete_agent_plugin_api_dashboard_agent_plugins__name__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/agent-plugins/activate":{"post":{"summary":"Post Agent Plugin Activate","description":"``hermes plugins install`` / ``enable`` in another process asks this backend to load the plugin\nfor ``home`` and hand its MCP servers and skills to that profile's open chats\n(``hermes_cli.plugins_activation.load_and_go_live``). ``home`` must be a profile this host serves.","operationId":"post_agent_plugin_activate_api_dashboard_agent_plugins_activate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/dashboard/plugin-providers":{"put":{"summary":"Put Plugin Providers","description":"Persist memory provider / context engine selection (writes config.yaml).","operationId":"put_plugin_providers_api_dashboard_plugin_providers_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_PluginProvidersPutBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dashboard/plugins/{name}/visibility":{"post":{"summary":"Post Plugin Visibility","description":"Toggle a plugin's sidebar visibility (persists to config.yaml dashboard.hidden_plugins).","operationId":"post_plugin_visibility_api_dashboard_plugins__name__visibility_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_PluginVisibilityBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard-plugins/@{profile}/{plugin_name}/{file_path}":{"get":{"summary":"Serve Profile Plugin Asset","description":"``serve_plugin_asset`` with the profile as a path segment (PLG-3): URLs relative to a stylesheet\nor bundle (``url(\"./icon.svg\")``, chunk imports) drop a query string but keep this prefix.","operationId":"serve_profile_plugin_asset_dashboard_plugins___profile___plugin_name___file_path__get","parameters":[{"name":"profile","in":"path","required":true,"schema":{"type":"string","title":"Profile"}},{"name":"plugin_name","in":"path","required":true,"schema":{"type":"string","title":"Plugin Name"}},{"name":"file_path","in":"path","required":true,"schema":{"type":"string","title":"File Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard-plugins/{plugin_name}/{file_path}":{"get":{"summary":"Serve Plugin Asset","description":"Serve static assets from a dashboard plugin's ``dashboard/`` directory.\n\nUnauthenticated on purpose: the SPA loads plugin JS via ``<script src>`` and CSS\nvia ``<link href>``, which cannot attach an auth header. Hence the suffix\nallowlist — user plugins ship a ``plugin_api.py`` backend the browser never\nfetches, and without it anyone on the loopback port could curl a private\nplugin's source. Path traversal is blocked via ``resolve().is_relative_to()``;\nuser plugins must be enabled (bundled ones not disabled) (GHSA-mcfc-hp25-cjv7) in the profile\nwhose copy these files are: a native ticket's, the ``?profile=`` the browser's plugin list used\n(PLG-3), else the launch profile. An unknown profile answers as an unknown plugin.\n\nSee #46435.","operationId":"serve_plugin_asset_dashboard_plugins__plugin_name___file_path__get","parameters":[{"name":"plugin_name","in":"path","required":true,"schema":{"type":"string","title":"Plugin Name"}},{"name":"file_path","in":"path","required":true,"schema":{"type":"string","title":"File Path"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webapp/window-ticket":{"post":{"summary":"Issue Window Ticket","operationId":"issue_window_ticket_api_webapp_window_ticket_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/webapp/socket-ticket":{"post":{"summary":"Issue Socket Ticket","description":"The browser's one-use ticket for one dial of *socket* on this same origin: ``gateway`` for\n``/api/ws`` (also offered as the ``hermes-gateway-ticket.`` subprotocol), ``host-terminal`` for\n``/api/host-terminal``, ``speak-stream`` and ``transcribe-stream`` for ``/api/audio/<name>``. The\nupgrade gate (``web_server_chat._consume_ws_ticket``) redeems it as this caller's login; it opens\nthat socket and nothing else, so the browser mints one per dial. Minted locally: the server that\nserves this page runs the socket's sessions. A ``gateway`` ticket minted with *profile* names\nit: that socket answers a request that names no profile for *profile*, as a native ticket does\n(``chat_ws.gateway_ws``), never for the gateway's launch profile.","operationId":"issue_socket_ticket_api_webapp_socket_ticket_post","parameters":[{"name":"socket","in":"query","required":false,"schema":{"type":"string","default":"","title":"Socket"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webapp/window-session":{"post":{"summary":"Redeem Window Ticket","operationId":"redeem_window_ticket_webapp_window_session_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webapp/launch":{"get":{"summary":"Launch Page","description":"Where the server's own browser-open lands: spends the one-use launch ticket from the\nfragment (never sent to the server), keeps the credential it receives in this tab's\nsessionStorage and enters the Webapp at an address that carries neither.","operationId":"launch_page_webapp_launch_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webapp/window":{"get":{"summary":"Child Window Page","operationId":"child_window_page_webapp_window_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/relay/{connection_id}/{path}":{"delete":{"summary":"Relay Http","operationId":"relay_http_api_relay__connection_id___path__delete","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"options":{"summary":"Relay Http","operationId":"relay_http_api_relay__connection_id___path__delete","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Relay Http","operationId":"relay_http_api_relay__connection_id___path__delete","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Relay Http","operationId":"relay_http_api_relay__connection_id___path__delete","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Relay Http","operationId":"relay_http_api_relay__connection_id___path__delete","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"head":{"summary":"Relay Http","operationId":"relay_http_api_relay__connection_id___path__delete","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Relay Http","operationId":"relay_http_api_relay__connection_id___path__delete","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shared-metrics/consent":{"get":{"summary":"Get Shared Metrics Consent","operationId":"get_shared_metrics_consent_api_shared_metrics_consent_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Put Shared Metrics Consent","operationId":"put_shared_metrics_consent_api_shared_metrics_consent_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentAnswer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/delegation/routing":{"get":{"summary":"Get Delegation Routing","description":"The profile's delegation backend (``configured``) and, when it cannot run here, why\n(``blocked_reason``, ``None`` when it runs: core fails closed, so subagents are refused until it is fixed), the registered\nbackends, both route blocks and the profiles a profile route may name.","operationId":"get_delegation_routing_api_delegation_routing_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/delegation/backend":{"put":{"summary":"Select Delegation Backend","description":"Persist ``delegation.backend`` through core's ``set_global_backend``: only ``default`` or a backend\nthat can run for this profile (core fails closed on any other, refusing every subagent).","operationId":"select_delegation_backend_api_delegation_backend_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DelegationBackendSelect"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/delegation/backends/model_map":{"put":{"summary":"Save Model Routes","description":"Replace ``delegation.backends.model_map`` (``options`` + ``default``) after validating every route.","operationId":"save_model_routes_api_delegation_backends_model_map_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DelegationModelMapUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/delegation/backends/profile_routes":{"put":{"summary":"Save Profile Routes","description":"Replace ``delegation.backends.profile_routes`` (``profiles`` + ``default``); every name must be an\nexisting profile.","operationId":"save_profile_routes_api_delegation_backends_profile_routes_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DelegationProfileRoutesUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webapp-access/status":{"get":{"summary":"Webapp Access Status","description":"``restart_failure``: the newest restart of this gateway exited without replacing it, and why;\nthe pane waiting on that restart stops and says so instead of timing out. ``start_progress``:\nthe Start for this gateway (``step``, ``started_at`` in epoch seconds) from its request's arrival\nuntil a gateway serves the config it wrote (or its restart failed), else None.\nThe pane polls this, so the status (a control-socket round trip) runs outside the skills lock,\nas in ``_restart``.","operationId":"webapp_access_status_api_webapp_access_status_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webapp-access/start":{"post":{"summary":"Start Webapp Access","operationId":"start_webapp_access_api_webapp_access_start_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webapp-access/stop":{"post":{"summary":"Stop Webapp Access","operationId":"stop_webapp_access_api_webapp_access_stop_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webapp-access/restart":{"post":{"summary":"Restart Webapp Access","description":"Apply the saved config to a gateway that has not restarted onto it yet: restart that gateway\nand nothing else (no Portal registration, no build, no config write).","operationId":"restart_webapp_access_api_webapp_access_restart_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ui-preferences":{"get":{"summary":"Get Ui Preferences","operationId":"get_ui_preferences_api_ui_preferences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Ui Preferences Api Ui Preferences Get"}}}}}},"patch":{"summary":"Patch Ui Preferences","operationId":"patch_ui_preferences_api_ui_preferences_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferencesPatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Patch Ui Preferences Api Ui Preferences Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gateway-connections":{"get":{"summary":"List Connections","operationId":"list_connections_api_gateway_connections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Connections Api Gateway Connections Get"}}}}}},"post":{"summary":"Save Connection","operationId":"save_connection_api_gateway_connections_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Save Connection Api Gateway Connections Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gateway-connections/{connection_id}":{"delete":{"summary":"Remove Connection","operationId":"remove_connection_api_gateway_connections__connection_id__delete","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Connection Api Gateway Connections  Connection Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gateway-connections/launch-mode":{"post":{"summary":"Set Launch Mode","operationId":"set_launch_mode_api_gateway_connections_launch_mode_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Set Launch Mode Api Gateway Connections Launch Mode Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gateway-connections/last-used":{"post":{"summary":"Set Last Used","operationId":"set_last_used_api_gateway_connections_last_used_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Set Last Used Api Gateway Connections Last Used Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gateway-connections/{connection_id}/primary":{"post":{"summary":"Set Primary","operationId":"set_primary_api_gateway_connections__connection_id__primary_post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Primary Api Gateway Connections  Connection Id  Primary Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gateway-connections/{connection_id}/test":{"post":{"summary":"Test Connection","operationId":"test_connection_api_gateway_connections__connection_id__test_post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Test Connection Api Gateway Connections  Connection Id  Test Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gateway-connections/{connection_id}/oauth":{"get":{"summary":"Oauth Status","operationId":"oauth_status_api_gateway_connections__connection_id__oauth_get","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Oauth Status Api Gateway Connections  Connection Id  Oauth Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Oauth Sign Out","operationId":"oauth_sign_out_api_gateway_connections__connection_id__oauth_delete","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Oauth Sign Out Api Gateway Connections  Connection Id  Oauth Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gateway-connections/{connection_id}/oauth/start":{"post":{"summary":"Oauth Start","operationId":"oauth_start_api_gateway_connections__connection_id__oauth_start_post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"default":{},"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Oauth Start Api Gateway Connections  Connection Id  Oauth Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gateway-connections/{connection_id}/oauth/complete":{"post":{"summary":"Oauth Complete","operationId":"oauth_complete_api_gateway_connections__connection_id__oauth_complete_post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Oauth Complete Api Gateway Connections  Connection Id  Oauth Complete Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webapp/gateway-connections/oauth/callback":{"get":{"summary":"Oauth Callback","description":"The loopback redirect the remote sends the browser to. Answers a page only: the tokens stay\non this server.","operationId":"oauth_callback_webapp_gateway_connections_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"error","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error"}},{"name":"error_description","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error Description"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/gateway-connections/{connection_id}/ssh":{"get":{"summary":"Ssh Status","operationId":"ssh_status_api_gateway_connections__connection_id__ssh_get","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ssh Status Api Gateway Connections  Connection Id  Ssh Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Ssh Connect","operationId":"ssh_connect_api_gateway_connections__connection_id__ssh_post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ssh Connect Api Gateway Connections  Connection Id  Ssh Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Ssh Disconnect","operationId":"ssh_disconnect_api_gateway_connections__connection_id__ssh_delete","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ssh Disconnect Api Gateway Connections  Connection Id  Ssh Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/hermes-achievements/achievements":{"get":{"summary":"Achievements","operationId":"achievements_api_plugins_hermes_achievements_achievements_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/hermes-achievements/scan-status":{"get":{"summary":"Scan Status","operationId":"scan_status_api_plugins_hermes_achievements_scan_status_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/hermes-achievements/recent-unlocks":{"get":{"summary":"Recent Unlocks","operationId":"recent_unlocks_api_plugins_hermes_achievements_recent_unlocks_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/hermes-achievements/sessions/{session_id}/badges":{"get":{"summary":"Session Badges","operationId":"session_badges_api_plugins_hermes_achievements_sessions__session_id__badges_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/hermes-achievements/rescan":{"post":{"summary":"Rescan","operationId":"rescan_api_plugins_hermes_achievements_rescan_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/hermes-achievements/reset-state":{"post":{"summary":"Reset State","operationId":"reset_state_api_plugins_hermes_achievements_reset_state_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/board":{"get":{"summary":"Get Board Endpoint","operationId":"get_board_endpoint_api_plugins_kanban_board_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter to a single tenant","title":"Tenant"},"description":"Filter to a single tenant"},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Kanban board slug (omit for current)","title":"Board"},"description":"Kanban board slug (omit for current)"},{"name":"workflow_template_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Restrict to tasks using this workflow template id","title":"Workflow Template Id"},"description":"Restrict to tasks using this workflow template id"},{"name":"current_step_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Restrict to tasks at this workflow step key","title":"Current Step Key"},"description":"Restrict to tasks at this workflow step key"},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/tasks/{task_id}":{"get":{"summary":"Get Task","operationId":"get_task_api_plugins_kanban_tasks__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"run_state_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"With run_state_name: filter runs by column 'status' or 'outcome'","title":"Run State Type"},"description":"With run_state_name: filter runs by column 'status' or 'outcome'"},{"name":"run_state_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"With run_state_type: exact value for that run column","title":"Run State Name"},"description":"With run_state_type: exact value for that run column"},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Update Task","operationId":"update_task_api_plugins_kanban_tasks__task_id__patch","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTaskBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Task","operationId":"delete_task_api_plugins_kanban_tasks__task_id__delete","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/tasks":{"post":{"summary":"Create Task","operationId":"create_task_api_plugins_kanban_tasks_post","parameters":[{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTaskBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/tasks/{task_id}/attachments":{"get":{"summary":"List Task Attachments","operationId":"list_task_attachments_api_plugins_kanban_tasks__task_id__attachments_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Upload Task Attachment","description":"Store an upload under ``attachments_root(board)/<task_id>/`` (sanitised,\ncollision-resolved name; ``_safe_attachment_name`` ValueError → 400) and record it.","operationId":"upload_task_attachment_api_plugins_kanban_tasks__task_id__attachments_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_task_attachment_api_plugins_kanban_tasks__task_id__attachments_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/attachments/{attachment_id}":{"get":{"summary":"Download Attachment","operationId":"download_attachment_api_plugins_kanban_attachments__attachment_id__get","parameters":[{"name":"attachment_id","in":"path","required":true,"schema":{"type":"integer","title":"Attachment Id"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Remove Attachment","operationId":"remove_attachment_api_plugins_kanban_attachments__attachment_id__delete","parameters":[{"name":"attachment_id","in":"path","required":true,"schema":{"type":"integer","title":"Attachment Id"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/tasks/{task_id}/comments":{"post":{"summary":"Add Comment","operationId":"add_comment_api_plugins_kanban_tasks__task_id__comments_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/links":{"post":{"summary":"Add Link","operationId":"add_link_api_plugins_kanban_links_post","parameters":[{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Link","operationId":"delete_link_api_plugins_kanban_links_delete","parameters":[{"name":"parent_id","in":"query","required":true,"schema":{"type":"string","title":"Parent Id"}},{"name":"child_id","in":"query","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/tasks/bulk":{"post":{"summary":"Bulk Update","description":"Apply the same patch to every id. Independent iteration — per-task\nfailures don't abort siblings; returns per-id outcome for partials.","operationId":"bulk_update_api_plugins_kanban_tasks_bulk_post","parameters":[{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkTaskBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/diagnostics":{"get":{"summary":"List Diagnostics","description":"Tasks with an active diagnostic, highest severity first then most recent; also\nconsumed by ``hermes kanban diagnostics`` when the dashboard runs.","operationId":"list_diagnostics_api_plugins_kanban_diagnostics_get","parameters":[{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Kanban board slug (omit for current)","title":"Board"},"description":"Kanban board slug (omit for current)"},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by severity: warning|error|critical","title":"Severity"},"description":"Filter by severity: warning|error|critical"},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/workers/active":{"get":{"summary":"List Active Workers","description":"Every running worker: an open ``task_runs`` row with a ``worker_pid`` whose\ntask is ``running``. Returns ``{workers, count, checked_at}``.","operationId":"list_active_workers_api_plugins_kanban_workers_active_get","parameters":[{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Kanban board slug (omit for current)","title":"Board"},"description":"Kanban board slug (omit for current)"},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/runs/{run_id}":{"get":{"summary":"Get Run Endpoint","description":"``{run: {...}}`` with the same serialisation as ``GET /tasks/{id}``; 404 if unknown.","operationId":"get_run_endpoint_api_plugins_kanban_runs__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Kanban board slug (omit for current)","title":"Board"},"description":"Kanban board slug (omit for current)"},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/runs/{run_id}/inspect":{"get":{"summary":"Inspect Run Endpoint","description":"Live psutil stats for a run's worker; ``{alive: false, reason}`` when unavailable and\naccess-denied reported inline rather than as a 500.","operationId":"inspect_run_endpoint_api_plugins_kanban_runs__run_id__inspect_get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Kanban board slug (omit for current)","title":"Board"},"description":"Kanban board slug (omit for current)"},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/runs/{run_id}/terminate":{"post":{"summary":"Terminate Run Endpoint","description":"Terminate an in-flight run via ``reclaim_task`` (same SIGTERM->SIGKILL flow, bookkeeping\nand events as ``POST /tasks/{id}/reclaim``); 409 if already ended / not reclaimable.\n\nCloses the gap left by PR #28432, which shipped the read-only sibling endpoints (``/workers/active``,\n``/runs/{run_id}``, ``/runs/{run_id}/inspect``) but no termination control surface.","operationId":"terminate_run_endpoint_api_plugins_kanban_runs__run_id__terminate_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Kanban board slug (omit for current)","title":"Board"},"description":"Kanban board slug (omit for current)"},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerminateRunBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/tasks/{task_id}/reclaim":{"post":{"summary":"Reclaim Task Endpoint","description":"Release an active worker claim without waiting for the claim TTL\n(``hermes kanban reclaim <task_id> --reason ...``).","operationId":"reclaim_task_endpoint_api_plugins_kanban_tasks__task_id__reclaim_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReclaimBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/tasks/{task_id}/specify":{"post":{"summary":"Specify Task Endpoint","description":"Flesh out a triage task via the auxiliary LLM (``hermes kanban specify``). Non-OK is NOT\nan HTTP error — the UI renders the reason inline. Sync ``def`` → runs in the threadpool.","operationId":"specify_task_endpoint_api_plugins_kanban_tasks__task_id__specify_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpecifyBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/tasks/{task_id}/reassign":{"post":{"summary":"Reassign Task Endpoint","description":"Reassign to another profile, optionally reclaiming first\n(``hermes kanban reassign <task_id> <profile> [--reclaim]``).","operationId":"reassign_task_endpoint_api_plugins_kanban_tasks__task_id__reassign_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReassignBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/estimate":{"post":{"summary":"Estimate Text Endpoint","description":"Estimate from raw title/body (create dialog, before a task exists).","operationId":"estimate_text_endpoint_api_plugins_kanban_estimate_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/tasks/{task_id}/estimate":{"post":{"summary":"Estimate Task Endpoint","description":"Estimate for an existing task; ``{ok, est_tokens, complexity, rationale, model}``.","operationId":"estimate_task_endpoint_api_plugins_kanban_tasks__task_id__estimate_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/config":{"get":{"summary":"Get Config","description":"Kanban dashboard preferences from the ``dashboard.kanban`` config section.","operationId":"get_config_api_plugins_kanban_config_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/home-channels":{"get":{"summary":"Get Home Channels","description":"Every platform with a home channel plus whether *task_id* (if given) is\nsubscribed to it; without ``task_id`` every ``subscribed`` is false.","operationId":"get_home_channels_api_plugins_kanban_home_channels_get","parameters":[{"name":"task_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/tasks/{task_id}/home-subscribe/{platform}":{"post":{"summary":"Subscribe Home","description":"Subscribe *task_id* to *platform*'s home channel. Idempotent at the DB\nlayer; 404 when the platform has no home or the task doesn't exist.","operationId":"subscribe_home_api_plugins_kanban_tasks__task_id__home_subscribe__platform__post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"platform","in":"path","required":true,"schema":{"type":"string","title":"Platform"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Unsubscribe Home","description":"Remove any notify subscription on *task_id* matching *platform*'s home.","operationId":"unsubscribe_home_api_plugins_kanban_tasks__task_id__home_subscribe__platform__delete","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"platform","in":"path","required":true,"schema":{"type":"string","title":"Platform"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/stats":{"get":{"summary":"Get Stats","description":"Per-status + per-assignee counts + oldest-ready age (HUD and router profiles).","operationId":"get_stats_api_plugins_kanban_stats_get","parameters":[{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/assignees":{"get":{"summary":"Get Assignees","description":"Union of on-disk profiles and assignees used on the board, so a fresh\nprofile appears in the picker before it has any task.","operationId":"get_assignees_api_plugins_kanban_assignees_get","parameters":[{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/tasks/{task_id}/log":{"get":{"summary":"Get Task Log","description":"Worker stdout/stderr log. ``tail`` caps the response bytes; 404 if the\ntask never spawned. On-disk log rotates at 2 MiB with one ``.log.1`` kept.","operationId":"get_task_log_api_plugins_kanban_tasks__task_id__log_get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"tail","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2000000,"minimum":1},{"type":"null"}],"title":"Tail"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/dispatch":{"post":{"summary":"Dispatch","description":"Dispatch nudge so the UI doesn't wait out the 60 s dispatcher tick.","operationId":"dispatch_api_plugins_kanban_dispatch_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"max","in":"query","required":false,"schema":{"type":"integer","default":8,"title":"Max"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/model-options":{"get":{"summary":"Model Options","description":"Providers + curated models for the override dropdown via ``inventory.build_models_payload``\n(same substrate as the Models page) so it can't offer a pair Hermes rejects. Skips pricing\nand custom-provider probes: a slow/offline local endpoint must not hang the drawer.","operationId":"model_options_api_plugins_kanban_model_options_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/projects":{"get":{"summary":"List Kanban Projects","description":"Live (non-archived) projects available for board scoping.","operationId":"list_kanban_projects_api_plugins_kanban_projects_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/boards":{"get":{"summary":"List Boards","description":"Every board on disk with task counts and the active slug.","operationId":"list_boards_api_plugins_kanban_boards_get","parameters":[{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Board Endpoint","description":"Create a board. Idempotent — ``slug`` collision returns the existing one.","operationId":"create_board_endpoint_api_plugins_kanban_boards_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBoardBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/boards/{slug}":{"patch":{"summary":"Rename Board","description":"Update display metadata / default workdir / project scope (slug is immutable).","operationId":"rename_board_api_plugins_kanban_boards__slug__patch","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameBoardBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Board","description":"Archive (default) or hard-delete a board.","operationId":"delete_board_api_plugins_kanban_boards__slug__delete","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"delete","in":"query","required":false,"schema":{"type":"boolean","description":"Hard-delete instead of archive","default":false,"title":"Delete"},"description":"Hard-delete instead of archive"},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/boards/{slug}/export":{"post":{"summary":"Export Board Endpoint","description":"Write ``slug`` to a portable archive; return the path written.","operationId":"export_board_endpoint_api_plugins_kanban_boards__slug__export_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportBoardBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/boards/import":{"post":{"summary":"Import Board Endpoint","description":"Import a board archive as a NEW board; return the landed board.","operationId":"import_board_endpoint_api_plugins_kanban_boards_import_post","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportBoardBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/boards/{slug}/switch":{"post":{"summary":"Switch Board","description":"Persist ``slug`` as the active board for CLI / slash-command parity\n(dashboard users pick boards client-side via localStorage).","operationId":"switch_board_api_plugins_kanban_boards__slug__switch_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/profiles":{"get":{"summary":"List Profile Roster","description":"Every installed profile with its description (profiles without one are\nstill routable on name alone, just less precisely).","operationId":"list_profile_roster_api_plugins_kanban_profiles_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/profiles/{profile_name}":{"patch":{"summary":"Update Profile Description","description":"Set (``description_auto: false`` so the auto-describer won't overwrite it\nwithout ``--overwrite``) or clear (empty string) a profile's description.","operationId":"update_profile_description_api_plugins_kanban_profiles__profile_name__patch","parameters":[{"name":"profile_name","in":"path","required":true,"schema":{"type":"string","title":"Profile Name"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DescribeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/profiles/{profile_name}/describe-auto":{"post":{"summary":"Auto Describe Profile","description":"``hermes profile describe <name> --auto``: persist with ``description_auto: true``.\nNon-OK outcomes are NOT HTTP errors — the UI renders the reason inline.","operationId":"auto_describe_profile_api_plugins_kanban_profiles__profile_name__describe_auto_post","parameters":[{"name":"profile_name","in":"path","required":true,"schema":{"type":"string","title":"Profile Name"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DescribeAutoBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/tasks/{task_id}/decompose":{"post":{"summary":"Decompose Task Endpoint","description":"Fan a triage task out into child tasks via the auxiliary LLM (``hermes kanban decompose``).\nNon-OK is NOT an HTTP error. Sync ``def`` → runs in the threadpool.","operationId":"decompose_task_endpoint_api_plugins_kanban_tasks__task_id__decompose_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"board","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Board"}},{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecomposeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/workflow":{"get":{"summary":"Get Workflow","description":"Board columns (order, label, icon, drag target) and the manual move\nallow-list. Every board uses the default workflow today; per-board\nworkflows (``board.json``) arrive in a later phase behind this same shape.","operationId":"get_workflow_api_plugins_kanban_workflow_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/kanban/orchestration":{"get":{"summary":"Get Orchestration Settings","description":"Current orchestration knobs from config.yaml plus the resolved effective\nvalues. An unset/unknown profile resolves to the active profile here; the\ndecomposer prefers the root card's assignee in that case and uses the active\nprofile only for cards with no assignee.","operationId":"get_orchestration_settings_api_plugins_kanban_orchestration_get","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Set Orchestration Settings","description":"Update orchestration knobs in config.yaml. Only fields explicitly passed\nare written; empty profile strings clear the override.","operationId":"set_orchestration_settings_api_plugins_kanban_orchestration_put","parameters":[{"name":"profile","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrchestrationSettingsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/login":{"get":{"summary":"Login Page","operationId":"login_page_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/providers":{"get":{"summary":"Auth Providers","operationId":"auth_providers_api_auth_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Auth Providers Api Auth Providers Get"}}}}}}},"/auth/login":{"get":{"summary":"Auth Login","operationId":"auth_login_auth_login_get","parameters":[{"name":"provider","in":"query","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"next","in":"query","required":false,"schema":{"type":"string","default":"","title":"Next"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/native/authorize":{"get":{"summary":"Auth Native Authorize","description":"Begin an RFC 8252 native-app login: stash a pending broker authorization keyed by an\nopaque ``broker_state`` riding in the gateway's own PKCE cookie (the desktop's\nchallenge/state never touch it), then run the normal upstream round trip. Password providers\ngo to the ``/login`` form instead.","operationId":"auth_native_authorize_auth_native_authorize_get","parameters":[{"name":"provider","in":"query","required":false,"schema":{"type":"string","default":"","title":"Provider"}},{"name":"code_challenge","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code Challenge"}},{"name":"code_challenge_method","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code Challenge Method"}},{"name":"redirect_uri","in":"query","required":false,"schema":{"type":"string","default":"","title":"Redirect Uri"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/callback":{"get":{"summary":"Auth Callback","operationId":"auth_callback_auth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"error","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error"}},{"name":"error_description","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error Description"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/password-login":{"post":{"summary":"Auth Password Login","description":"Authenticate a username/password against a password provider.\n\nReturns ``{\"ok\": true, \"next\": <path>}`` (the form POSTs via fetch, which follows a 302\nopaquely) and sets the session cookies; with a native ``broker`` handle in the PKCE cookie,\n``next`` is the desktop's loopback redirect and NO cookies are set. Failures are deliberately\ngeneric (no username/provider oracle): unknown/non-password provider 404, bad credentials\n401, store unreachable 503, rate limited 429.","operationId":"auth_password_login_auth_password_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_PasswordLoginBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"post":{"summary":"Auth Logout","operationId":"auth_logout_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/me":{"get":{"summary":"Auth Me","description":"Return the verified session as JSON.\n\nGated mode: the auth middleware attached a verified Session — return it.\nLoopback mode (``auth_required`` False): there is no OAuth Session, but the\nlegacy ``_SESSION_TOKEN`` middleware has already validated the bearer\ntoken for non-public ``/api/`` routes. Report the loopback identity\nhonestly instead of 401-ing (GH #66223). Belt-and-braces: re-verify the\ntoken so the handler stays safe even if this route were ever allowlisted.","operationId":"auth_me_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/ws-ticket":{"post":{"summary":"Auth Ws Ticket","description":"Mint a 30s single-use ticket for a WS upgrade (browsers cannot set\n``Authorization`` on the upgrade); one ticket per WS.","operationId":"auth_ws_ticket_api_auth_ws_ticket_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/native/token":{"post":{"summary":"Auth Native Token","description":"Exchange a loopback gateway code + PKCE verifier for bearer tokens. The code is consumed\non every path (no verifier oracle, no replay); any failure is a generic 400. Tokens go in\nthe JSON body; no cookie is set.","operationId":"auth_native_token_auth_native_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_NativeTokenBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/native/refresh":{"post":{"summary":"Auth Native Refresh","description":"Rotate a desktop-held refresh token (mirrors the gate's ``_attempt_refresh``): every\nprovider rejecting the RT -> 401 ``session_expired`` (desktop re-logs); none rotated and one\nunreachable -> 503. On the gateway's Webapp behind the gate it renews only refresh tokens\nthis listener gave a native app's sign-in (``webapp_sign_in.token_works_alone``).","operationId":"auth_native_refresh_auth_native_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/_NativeRefreshBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/assets/{filename}.css":{"get":{"summary":"Serve Css","operationId":"serve_css_assets__filename__css_get","parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/assets/webapp-preview.html":{"get":{"summary":"Preview Document","operationId":"preview_document_assets_webapp_preview_html_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/assets/webapp-guest.html":{"get":{"summary":"Guest Document","operationId":"guest_document_assets_webapp_guest_html_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/assets/webapp-preview.js":{"get":{"summary":"Preview Loader","operationId":"preview_loader_assets_webapp_preview_js_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/{full_path}":{"get":{"summary":"Serve Spa","operationId":"serve_spa__full_path__get","parameters":[{"name":"full_path","in":"path","required":true,"schema":{"type":"string","title":"Full Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AudioTranscriptionRequest":{"properties":{"data_url":{"type":"string","title":"Data Url"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"}},"type":"object","required":["data_url"],"title":"AudioTranscriptionRequest"},"AutomationBlueprintInstantiate":{"properties":{"blueprint":{"type":"string","title":"Blueprint"},"values":{"additionalProperties":true,"type":"object","title":"Values","default":{}}},"type":"object","required":["blueprint"],"title":"AutomationBlueprintInstantiate"},"BackupRequest":{"properties":{"output":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output"}},"type":"object","title":"BackupRequest"},"Body_run_import_upload_api_ops_import_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"force":{"type":"boolean","title":"Force","default":false}},"type":"object","required":["file"],"title":"Body_run_import_upload_api_ops_import_upload_post"},"Body_upload_chat_file_api_chat_file_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_chat_file_api_chat_file_upload_post"},"Body_upload_managed_file_stream_api_files_upload_stream_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"path":{"type":"string","title":"Path"},"overwrite":{"type":"boolean","title":"Overwrite","default":true}},"type":"object","required":["file","path"],"title":"Body_upload_managed_file_stream_api_files_upload_stream_post"},"Body_upload_task_attachment_api_plugins_kanban_tasks__task_id__attachments_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"uploaded_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uploaded By"}},"type":"object","required":["file"],"title":"Body_upload_task_attachment_api_plugins_kanban_tasks__task_id__attachments_post"},"BrowsedDownloadBody":{"properties":{"repo":{"type":"string","title":"Repo"},"paths":{"items":{"type":"string"},"type":"array","title":"Paths"}},"type":"object","required":["repo","paths"],"title":"BrowsedDownloadBody"},"BulkDeleteSessions":{"properties":{"ids":{"items":{"type":"string"},"type":"array","title":"Ids"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["ids"],"title":"BulkDeleteSessions"},"BulkTaskBody":{"properties":{"ids":{"items":{"type":"string"},"type":"array","title":"Ids"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"assignee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"archive":{"type":"boolean","title":"Archive","default":false},"result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"reclaim_first":{"type":"boolean","title":"Reclaim First","default":false},"model_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Override"},"provider_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Override"},"clear_model_override":{"type":"boolean","title":"Clear Model Override","default":false},"reasoning_effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Effort"},"clear_reasoning_effort":{"type":"boolean","title":"Clear Reasoning Effort","default":false}},"type":"object","required":["ids"],"title":"BulkTaskBody"},"ChatImageUpload":{"properties":{"data_url":{"type":"string","title":"Data Url"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"}},"type":"object","required":["data_url"],"title":"ChatImageUpload"},"CommentBody":{"properties":{"body":{"type":"string","title":"Body"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author","default":"dashboard"}},"type":"object","required":["body"],"title":"CommentBody"},"ConfigUpdate":{"properties":{"config":{"additionalProperties":true,"type":"object","title":"Config"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["config"],"title":"ConfigUpdate"},"ConsentAnswer":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"send":{"type":"boolean","title":"Send","default":false}},"type":"object","required":["enabled"],"title":"ConsentAnswer"},"CreateBoardBody":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"default_workdir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Workdir"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"switch":{"type":"boolean","title":"Switch","default":false}},"type":"object","required":["slug"],"title":"CreateBoardBody"},"CreateTaskBody":{"properties":{"title":{"type":"string","title":"Title"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"assignee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee"},"tenant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"},"priority":{"type":"integer","title":"Priority","default":0},"workspace_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Kind"},"workspace_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Path"},"parents":{"items":{"type":"string"},"type":"array","title":"Parents"},"triage":{"type":"boolean","title":"Triage","default":false},"idempotency_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency Key"},"max_runtime_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Runtime Seconds"},"skills":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Skills"},"goal_mode":{"type":"boolean","title":"Goal Mode","default":false},"goal_max_turns":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Goal Max Turns"},"model_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Override"},"provider_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Override"},"reasoning_effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Effort"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["title"],"title":"CreateTaskBody"},"CredentialPoolAdd":{"properties":{"provider":{"type":"string","title":"Provider"},"api_key":{"type":"string","title":"Api Key"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["provider","api_key"],"title":"CredentialPoolAdd"},"CronJobCreate":{"properties":{"paused":{"type":"boolean","title":"Paused","default":false},"paused_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paused Reason"},"prompt":{"type":"string","title":"Prompt","default":""},"schedule":{"type":"string","title":"Schedule"},"name":{"type":"string","title":"Name","default":""},"deliver":{"type":"string","title":"Deliver","default":"local"},"repeat":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Repeat"},"skills":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Skills"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url"},"script":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Script"},"context_from":{"anyOf":[{},{"type":"null"}],"title":"Context From"},"enabled_toolsets":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Enabled Toolsets"},"workdir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workdir"},"no_agent":{"type":"boolean","title":"No Agent","default":false},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"grace_minutes":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Grace Minutes"},"catch_up":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Catch Up"},"wrap_response":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Wrap Response"}},"type":"object","required":["schedule"],"title":"CronJobCreate"},"CronJobUpdate":{"properties":{"updates":{"additionalProperties":true,"type":"object","title":"Updates"}},"type":"object","required":["updates"],"title":"CronJobUpdate"},"CuratorPause":{"properties":{"paused":{"type":"boolean","title":"Paused"}},"type":"object","required":["paused"],"title":"CuratorPause"},"CustomEndpointModelDetail":{"properties":{"id":{"type":"string","title":"Id"},"canonical_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canonical Model"},"reasoning_effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Effort"}},"type":"object","required":["id"],"title":"CustomEndpointModelDetail","description":"One ``/v1/models`` row with the routing metadata a gateway may advertise on a\nreasoning alias (``gpt-5.6-sol-high`` → ``gpt-5.6-sol`` @ ``high``). See #93622."},"CustomEndpointUpdate":{"properties":{"id":{"type":"string","title":"Id","default":""},"name":{"type":"string","title":"Name"},"base_url":{"type":"string","title":"Base Url"},"model":{"type":"string","title":"Model"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"},"api_mode":{"anyOf":[{"type":"string","enum":["","chat_completions","codex_responses","anthropic_messages"]},{"type":"null"}],"title":"Api Mode"},"context_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Length"},"discover_models":{"type":"boolean","title":"Discover Models","default":true},"make_default":{"type":"boolean","title":"Make Default","default":false},"models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Models"},"model_details":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomEndpointModelDetail"},"type":"array"},{"type":"null"}],"title":"Model Details"}},"type":"object","required":["name","base_url","model"],"title":"CustomEndpointUpdate"},"DebugShareRequest":{"properties":{"consent":{"type":"boolean","title":"Consent","default":false},"redact":{"type":"boolean","title":"Redact","default":true},"lines":{"type":"integer","title":"Lines","default":200}},"type":"object","title":"DebugShareRequest"},"DecomposeBody":{"properties":{"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"}},"type":"object","title":"DecomposeBody"},"DelegationBackendSelect":{"properties":{"backend":{"type":"string","title":"Backend"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["backend"],"title":"DelegationBackendSelect"},"DelegationModelMapUpdate":{"properties":{"options":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Options"},"default":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["options"],"title":"DelegationModelMapUpdate"},"DelegationProfileRoutesUpdate":{"properties":{"profiles":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Profiles"},"default":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["profiles"],"title":"DelegationProfileRoutesUpdate"},"DescribeAutoBody":{"properties":{"overwrite":{"type":"boolean","title":"Overwrite","default":false}},"type":"object","title":"DescribeAutoBody"},"DescribeBody":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"DescribeBody"},"EnvVarDelete":{"properties":{"key":{"type":"string","title":"Key"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["key"],"title":"EnvVarDelete"},"EnvVarReveal":{"properties":{"key":{"type":"string","title":"Key"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["key"],"title":"EnvVarReveal"},"EnvVarUpdate":{"properties":{"key":{"type":"string","title":"Key"},"value":{"type":"string","title":"Value"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"},"api_key":{"type":"string","title":"Api Key","default":""},"provider_setup":{"type":"boolean","title":"Provider Setup","default":false}},"type":"object","required":["key","value"],"title":"EnvVarUpdate"},"EstimateBody":{"properties":{"title":{"type":"string","title":"Title","default":""},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"}},"type":"object","title":"EstimateBody"},"ExportBoardBody":{"properties":{"output":{"type":"string","title":"Output","default":""},"attachments":{"type":"boolean","title":"Attachments","default":true},"logs":{"type":"boolean","title":"Logs","default":false}},"type":"object","title":"ExportBoardBody"},"FileTicketRequest":{"properties":{"route":{"type":"string","enum":["download","stream"],"title":"Route"},"path":{"type":"string","title":"Path"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},"type":"object","required":["route","path"],"title":"FileTicketRequest","description":"POST /api/files/ticket — the exact query the ticketed download/stream URL carries."},"FontSetBody":{"properties":{"font":{"type":"string","title":"Font"}},"type":"object","required":["font"],"title":"FontSetBody"},"FsWriteText":{"properties":{"path":{"type":"string","title":"Path"},"content":{"type":"string","title":"Content"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},"type":"object","required":["path","content"],"title":"FsWriteText"},"GitBranchSwitchBody":{"properties":{"path":{"type":"string","title":"Path"},"branch":{"type":"string","title":"Branch"}},"type":"object","required":["path","branch"],"title":"GitBranchSwitchBody"},"GitCommitBody":{"properties":{"path":{"type":"string","title":"Path"},"message":{"type":"string","title":"Message"},"push":{"type":"boolean","title":"Push","default":false}},"type":"object","required":["path","message"],"title":"GitCommitBody"},"GitFileBody":{"properties":{"path":{"type":"string","title":"Path"},"file":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File"}},"type":"object","required":["path"],"title":"GitFileBody"},"GitPathBody":{"properties":{"path":{"type":"string","title":"Path"}},"type":"object","required":["path"],"title":"GitPathBody"},"GitPrListBody":{"properties":{"path":{"type":"string","title":"Path"},"branches":{"items":{"type":"string"},"type":"array","title":"Branches","default":[]},"numbers":{"items":{"type":"integer"},"type":"array","title":"Numbers","default":[]}},"type":"object","required":["path"],"title":"GitPrListBody"},"GitWorktreeAddBody":{"properties":{"path":{"type":"string","title":"Path"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch"},"base":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base"},"existingBranch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Existingbranch"}},"type":"object","required":["path"],"title":"GitWorktreeAddBody"},"GitWorktreeRemoveBody":{"properties":{"path":{"type":"string","title":"Path"},"worktreePath":{"type":"string","title":"Worktreepath"},"force":{"type":"boolean","title":"Force","default":false}},"type":"object","required":["path","worktreePath"],"title":"GitWorktreeRemoveBody"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HookCreate":{"properties":{"event":{"type":"string","title":"Event"},"command":{"type":"string","title":"Command"},"matcher":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matcher"},"timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeout"},"approve":{"type":"boolean","title":"Approve","default":true}},"type":"object","required":["event","command"],"title":"HookCreate"},"HookDelete":{"properties":{"event":{"type":"string","title":"Event"},"command":{"type":"string","title":"Command"}},"type":"object","required":["event","command"],"title":"HookDelete"},"ImportBoardBody":{"properties":{"archive":{"type":"string","title":"Archive"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"switch":{"type":"boolean","title":"Switch","default":false}},"type":"object","required":["archive"],"title":"ImportBoardBody"},"ImportRequest":{"properties":{"archive":{"type":"string","title":"Archive"},"force":{"type":"boolean","title":"Force","default":false},"keep_host":{"type":"boolean","title":"Keep Host","default":false}},"type":"object","required":["archive"],"title":"ImportRequest"},"JobIdBody":{"properties":{"job_id":{"type":"string","title":"Job Id"}},"type":"object","required":["job_id"],"title":"JobIdBody"},"LearningNodeEdit":{"properties":{"id":{"type":"string","title":"Id"},"content":{"type":"string","title":"Content"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["id","content"],"title":"LearningNodeEdit"},"LearningNodeRef":{"properties":{"id":{"type":"string","title":"Id"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["id"],"title":"LearningNodeRef"},"LinkBody":{"properties":{"parent_id":{"type":"string","title":"Parent Id"},"child_id":{"type":"string","title":"Child Id"}},"type":"object","required":["parent_id","child_id"],"title":"LinkBody"},"MCPCatalogInstall":{"properties":{"name":{"type":"string","title":"Name"},"env":{"additionalProperties":{"type":"string"},"type":"object","title":"Env","default":{}},"enable":{"type":"boolean","title":"Enable","default":true},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["name"],"title":"MCPCatalogInstall"},"MCPEnabledToggle":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["enabled"],"title":"MCPEnabledToggle"},"MCPServerCreate":{"properties":{"name":{"type":"string","title":"Name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"command":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Command"},"args":{"items":{"type":"string"},"type":"array","title":"Args","default":[]},"env":{"additionalProperties":{"type":"string"},"type":"object","title":"Env","default":{}},"auth":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth"},"bearer_token":{"anyOf":[{"type":"string","format":"password","writeOnly":true},{"type":"null"}],"title":"Bearer Token"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["name"],"title":"MCPServerCreate"},"MCPServersReplace":{"properties":{"servers":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Servers","default":{}},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","title":"MCPServersReplace"},"ManagedDirectoryCreate":{"properties":{"path":{"type":"string","title":"Path"}},"type":"object","required":["path"],"title":"ManagedDirectoryCreate"},"ManagedFileDelete":{"properties":{"path":{"type":"string","title":"Path"},"recursive":{"type":"boolean","title":"Recursive","default":false}},"type":"object","required":["path"],"title":"ManagedFileDelete"},"ManagedFileUpload":{"properties":{"path":{"type":"string","title":"Path"},"data_url":{"type":"string","title":"Data Url"},"overwrite":{"type":"boolean","title":"Overwrite","default":true}},"type":"object","required":["path","data_url"],"title":"ManagedFileUpload"},"MemoryProviderConfigUpdate":{"properties":{"values":{"additionalProperties":true,"type":"object","title":"Values","default":{}}},"type":"object","title":"MemoryProviderConfigUpdate"},"MemoryProviderSelect":{"properties":{"provider":{"type":"string","title":"Provider"}},"type":"object","required":["provider"],"title":"MemoryProviderSelect"},"MemoryProviderSetupRequest":{"properties":{"values":{"additionalProperties":true,"type":"object","title":"Values","default":{}}},"type":"object","title":"MemoryProviderSetupRequest"},"MemoryReset":{"properties":{"target":{"type":"string","title":"Target","default":"all"}},"type":"object","title":"MemoryReset"},"MessagingPlatformUpdate":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"env":{"additionalProperties":{"type":"string"},"type":"object","title":"Env","default":{}},"clear_env":{"items":{"type":"string"},"type":"array","title":"Clear Env","default":[]},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","title":"MessagingPlatformUpdate"},"MoaConfigPayload":{"properties":{"reference_timeout":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reference Timeout"},"degraded_reference_policy":{"type":"string","enum":["loud","silent"],"title":"Degraded Reference Policy","default":"loud"},"default_preset":{"type":"string","title":"Default Preset","default":"default"},"active_preset":{"type":"string","title":"Active Preset","default":""},"presets":{"additionalProperties":{"$ref":"#/components/schemas/MoaPresetPayload"},"type":"object","title":"Presets","default":{}},"reference_models":{"items":{"$ref":"#/components/schemas/MoaModelSlot"},"type":"array","title":"Reference Models","default":[]},"aggregator":{"$ref":"#/components/schemas/MoaModelSlot","default":{"provider":"","model":"","enabled":true}},"reference_temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reference Temperature"},"aggregator_temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Aggregator Temperature"},"fanout":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fanout"},"enabled":{"type":"boolean","title":"Enabled","default":true},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","title":"MoaConfigPayload"},"MoaModelSlot":{"properties":{"provider":{"type":"string","title":"Provider","default":""},"model":{"type":"string","title":"Model","default":""},"reasoning_effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Effort"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","title":"MoaModelSlot"},"MoaPresetPayload":{"properties":{"reference_timeout":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reference Timeout"},"degraded_reference_policy":{"type":"string","enum":["loud","silent"],"title":"Degraded Reference Policy","default":"loud"},"reference_models":{"items":{"$ref":"#/components/schemas/MoaModelSlot"},"type":"array","title":"Reference Models","default":[]},"aggregator":{"$ref":"#/components/schemas/MoaModelSlot","default":{"provider":"","model":"","enabled":true}},"reference_temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Reference Temperature"},"aggregator_temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Aggregator Temperature"},"fanout":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fanout"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","title":"MoaPresetPayload"},"ModelActivateBody":{"properties":{"model_id":{"type":"string","title":"Model Id"}},"type":"object","required":["model_id"],"title":"ModelActivateBody"},"ModelAssignment":{"properties":{"scope":{"type":"string","title":"Scope"},"provider":{"type":"string","title":"Provider"},"model":{"type":"string","title":"Model"},"task":{"type":"string","title":"Task","default":""},"reasoning_effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Effort"},"base_url":{"type":"string","title":"Base Url","default":""},"api_key":{"type":"string","title":"Api Key","default":""},"confirm_expensive_model":{"type":"boolean","title":"Confirm Expensive Model","default":false},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["scope","provider","model"],"title":"ModelAssignment","description":"POST /api/model/set — assign a provider/model to a slot.\n\nscope=\"main\" → model.provider + model.default; scope=\"auxiliary\" → auxiliary.<task>.*\n(task=\"\" = every auxiliary slot, task=\"__reset__\" = reset every slot to provider=\"auto\")."},"ModelDownloadBody":{"properties":{"model_id":{"type":"string","title":"Model Id"}},"type":"object","required":["model_id"],"title":"ModelDownloadBody"},"ModelEjectBody":{"properties":{"model_id":{"type":"string","title":"Model Id"}},"type":"object","required":["model_id"],"title":"ModelEjectBody"},"OAuthSubmitBody":{"properties":{"session_id":{"type":"string","title":"Session Id"},"code":{"type":"string","title":"Code"}},"type":"object","required":["session_id","code"],"title":"OAuthSubmitBody"},"OrchestrationSettingsBody":{"properties":{"orchestrator_profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Orchestrator Profile"},"default_assignee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Assignee"},"auto_decompose":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Decompose"},"auto_promote_children":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Promote Children"}},"type":"object","title":"OrchestrationSettingsBody"},"PairingApprove":{"properties":{"platform":{"type":"string","title":"Platform"},"code":{"type":"string","title":"Code","default":""},"request_id":{"type":"string","title":"Request Id","default":""},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["platform"],"title":"PairingApprove"},"PairingRevoke":{"properties":{"platform":{"type":"string","title":"Platform"},"user_id":{"type":"string","title":"User Id"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["platform","user_id"],"title":"PairingRevoke"},"PreferencesPatch":{"properties":{"values":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Values"},"seed":{"type":"boolean","title":"Seed","default":false}},"type":"object","title":"PreferencesPatch"},"ProfileActiveUpdate":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"ProfileActiveUpdate"},"ProfileCreate":{"properties":{"name":{"type":"string","title":"Name"},"soul":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Soul"},"clone_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clone From"},"clone_from_default":{"type":"boolean","title":"Clone From Default","default":false},"clone_all":{"type":"boolean","title":"Clone All","default":false},"clone_channels":{"type":"boolean","title":"Clone Channels","default":false},"no_skills":{"type":"boolean","title":"No Skills","default":false},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"mcp_servers":{"items":{"$ref":"#/components/schemas/MCPServerCreate"},"type":"array","title":"Mcp Servers","default":[]},"keep_skills":{"items":{"type":"string"},"type":"array","title":"Keep Skills","default":[]},"mirror_credentials":{"type":"boolean","title":"Mirror Credentials","default":true},"share_auth":{"type":"boolean","title":"Share Auth","default":true},"hub_skills":{"items":{"type":"string"},"type":"array","title":"Hub Skills","default":[]}},"type":"object","required":["name"],"title":"ProfileCreate"},"ProfileDescribeAuto":{"properties":{"overwrite":{"type":"boolean","title":"Overwrite","default":false}},"type":"object","title":"ProfileDescribeAuto"},"ProfileDescriptionUpdate":{"properties":{"description":{"type":"string","title":"Description","default":""}},"type":"object","title":"ProfileDescriptionUpdate"},"ProfileExport":{"properties":{"extra_files":{"additionalProperties":{"type":"string"},"type":"object","title":"Extra Files","default":{}},"output":{"type":"string","title":"Output","default":""}},"type":"object","title":"ProfileExport"},"ProfileImport":{"properties":{"archive":{"type":"string","title":"Archive"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["archive"],"title":"ProfileImport"},"ProfileModelUpdate":{"properties":{"provider":{"type":"string","title":"Provider"},"model":{"type":"string","title":"Model"}},"type":"object","required":["provider","model"],"title":"ProfileModelUpdate"},"ProfileRename":{"properties":{"new_name":{"type":"string","title":"New Name"}},"type":"object","required":["new_name"],"title":"ProfileRename"},"ProfileSoulUpdate":{"properties":{"content":{"type":"string","title":"Content"}},"type":"object","required":["content"],"title":"ProfileSoulUpdate"},"QuickstartBody":{"properties":{"model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Id"}},"type":"object","title":"QuickstartBody"},"RawConfigUpdate":{"properties":{"yaml_text":{"type":"string","title":"Yaml Text"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["yaml_text"],"title":"RawConfigUpdate"},"ReassignBody":{"properties":{"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"},"reclaim_first":{"type":"boolean","title":"Reclaim First","default":false},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"ReassignBody"},"ReclaimBody":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"ReclaimBody"},"RenameBoardBody":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"default_workdir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Workdir"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},"type":"object","title":"RenameBoardBody"},"RuntimeInstallBody":{"properties":{"backend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Backend"}},"type":"object","title":"RuntimeInstallBody"},"STTLeaseRequest":{"properties":{"lease":{"type":"string","title":"Lease"},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["lease"],"title":"STTLeaseRequest","description":"POST /api/audio/stt-lease: ``lease`` names the voice-input session\n(``desktop:voice-input:<renderer>``); ``active`` True pre-loads the local STT model,\nFalse is a no-op. Unlike TTS, nothing unloads (shared engine)."},"ServerActionBody":{"properties":{"action":{"type":"string","title":"Action"}},"type":"object","required":["action"],"title":"ServerActionBody"},"SessionOwnerBackfill":{"properties":{"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","title":"SessionOwnerBackfill","description":"POST /api/sessions/owner-backfill (legacy migration). ``profile`` scopes WHICH state.db is\nstamped; the stamped value is always that store's own serving-profile identity — the caller\ncannot inject an arbitrary owner."},"SessionPrScanBody":{"properties":{"ids":{"items":{"type":"string"},"type":"array","title":"Ids","default":[]}},"type":"object","title":"SessionPrScanBody"},"SessionPrune":{"properties":{"older_than_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Older Than Days","default":90},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"},"started_before":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Started Before"},"started_after":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Started After"},"title_like":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title Like"},"end_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Reason"},"cwd_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cwd Prefix"},"min_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Messages"},"max_messages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Messages"},"model_like":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Like"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"chat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Id"},"chat_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Type"},"branch_like":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch Like"},"min_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Tokens"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens"},"min_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Cost"},"max_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Cost"},"min_tool_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Tool Calls"},"max_tool_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tool Calls"},"include_archived":{"type":"boolean","title":"Include Archived","default":false},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"type":"object","title":"SessionPrune"},"SessionRename":{"properties":{"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"expected_revision":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Expected Revision"},"expected_generation":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Expected Generation"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Archived"},"hidden":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hidden"},"pinned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pinned"},"unread":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unread"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","title":"SessionRename"},"SideloadBody":{"properties":{"path":{"type":"string","title":"Path"}},"type":"object","required":["path"],"title":"SideloadBody"},"SkillContentUpdate":{"properties":{"name":{"type":"string","title":"Name"},"content":{"type":"string","title":"Content"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["name","content"],"title":"SkillContentUpdate"},"SkillCreate":{"properties":{"name":{"type":"string","title":"Name"},"content":{"type":"string","title":"Content"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["name","content"],"title":"SkillCreate"},"SkillInstallRequest":{"properties":{"identifier":{"type":"string","title":"Identifier"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["identifier"],"title":"SkillInstallRequest"},"SkillLock":{"properties":{"name":{"type":"string","title":"Name"},"locked":{"type":"boolean","title":"Locked"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["name","locked"],"title":"SkillLock"},"SkillToggle":{"properties":{"name":{"type":"string","title":"Name"},"enabled":{"type":"boolean","title":"Enabled"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["name","enabled"],"title":"SkillToggle"},"SkillUninstallRequest":{"properties":{"name":{"type":"string","title":"Name"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["name"],"title":"SkillUninstallRequest"},"SkillsUpdateRequest":{"properties":{"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","title":"SkillsUpdateRequest"},"SpecifyBody":{"properties":{"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"}},"type":"object","title":"SpecifyBody","description":"Only the author is configurable; model + prompt come from\n``auxiliary.triage_specifier`` in config.yaml, same as the CLI."},"StartBody":{"properties":{"mode":{"type":"string","title":"Mode"},"public_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Url"}},"type":"object","required":["mode"],"title":"StartBody"},"TTSLeaseRequest":{"properties":{"lease":{"type":"string","title":"Lease"},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["lease"],"title":"TTSLeaseRequest","description":"POST /api/audio/tts-lease: ``lease`` names the toggle/surface holding the lease\n(``desktop:read-aloud``, ``desktop:conversation``); ``active`` True acquires + warms, False releases."},"TTSSpeakRequest":{"properties":{"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"TTSSpeakRequest"},"TelegramOnboardingApply":{"properties":{"allowed_user_ids":{"items":{"type":"string"},"type":"array","title":"Allowed User Ids"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["allowed_user_ids"],"title":"TelegramOnboardingApply"},"TelegramOnboardingStart":{"properties":{"bot_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Name"}},"type":"object","title":"TelegramOnboardingStart"},"TerminalBackendSelect":{"properties":{"backend":{"type":"string","title":"Backend"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["backend"],"title":"TerminalBackendSelect"},"TerminateRunBody":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"TerminateRunBody"},"ThemeSetBody":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"ThemeSetBody"},"ToolsetEnvUpdate":{"properties":{"env":{"additionalProperties":{"type":"string"},"type":"object","title":"Env"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["env"],"title":"ToolsetEnvUpdate"},"ToolsetModelSelect":{"properties":{"model":{"type":"string","title":"Model"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["model"],"title":"ToolsetModelSelect"},"ToolsetPostSetup":{"properties":{"key":{"type":"string","title":"Key"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["key"],"title":"ToolsetPostSetup"},"ToolsetProviderSelect":{"properties":{"provider":{"type":"string","title":"Provider"},"capability":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capability"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["provider"],"title":"ToolsetProviderSelect"},"ToolsetToggle":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","required":["enabled"],"title":"ToolsetToggle"},"UpdateTaskBody":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"assignee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result"},"block_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Block Reason"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"model_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Override"},"provider_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Override"},"clear_model_override":{"type":"boolean","title":"Clear Model Override","default":false},"reasoning_effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Effort"},"clear_reasoning_effort":{"type":"boolean","title":"Clear Reasoning Effort","default":false}},"type":"object","title":"UpdateTaskBody"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VoiceLiveSessionRequest":{"properties":{"sdp":{"type":"string","title":"Sdp"},"history":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"History"}},"type":"object","required":["sdp"],"title":"VoiceLiveSessionRequest","description":"POST /api/audio/voice-live/session: the renderer's WebRTC SDP offer plus optional prior\ntext turns (``{\"type\":\"message\",\"role\":..,\"content\":[..]}``) to seed the live voice model."},"WebhookCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"events":{"items":{"type":"string"},"type":"array","title":"Events","default":[]},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"script":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Script"},"skills":{"items":{"type":"string"},"type":"array","title":"Skills","default":[]},"deliver":{"type":"string","title":"Deliver","default":"log"},"deliver_only":{"type":"boolean","title":"Deliver Only","default":false},"deliver_chat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deliver Chat Id"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret"},"signature":{"anyOf":[{"type":"string","enum":["generic","github","gitlab","linear"]},{"type":"null"}],"title":"Signature"}},"type":"object","required":["name"],"title":"WebhookCreate"},"WebhookEnabledToggle":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"WebhookEnabledToggle"},"WhatsAppOnboardingApply":{"properties":{"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"},"allowed_users":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Allowed Users"},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"}},"type":"object","title":"WhatsAppOnboardingApply"},"WhatsAppOnboardingStart":{"properties":{"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode","default":"bot"},"allowed_users":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Allowed Users","default":""},"profile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile"},"reset_session":{"type":"boolean","title":"Reset Session","default":false}},"type":"object","title":"WhatsAppOnboardingStart"},"_AgentPluginInstallBody":{"properties":{"identifier":{"type":"string","title":"Identifier"},"force":{"type":"boolean","title":"Force","default":false},"enable":{"type":"boolean","title":"Enable","default":true},"catalog_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Catalog Name"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref"}},"type":"object","required":["identifier"],"title":"_AgentPluginInstallBody"},"_NativeRefreshBody":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"},"provider":{"type":"string","title":"Provider","default":""}},"type":"object","required":["refresh_token"],"title":"_NativeRefreshBody"},"_NativeTokenBody":{"properties":{"code":{"type":"string","title":"Code"},"code_verifier":{"type":"string","title":"Code Verifier"}},"type":"object","required":["code","code_verifier"],"title":"_NativeTokenBody"},"_PasswordLoginBody":{"properties":{"provider":{"type":"string","maxLength":128,"title":"Provider"},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"next":{"type":"string","title":"Next","default":""}},"type":"object","required":["provider","username","password"],"title":"_PasswordLoginBody"},"_PluginAutoUpdateBody":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"_PluginAutoUpdateBody"},"_PluginProvidersPutBody":{"properties":{"memory_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memory Provider"},"context_engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Engine"}},"type":"object","title":"_PluginProvidersPutBody"},"_PluginVisibilityBody":{"properties":{"hidden":{"type":"boolean","title":"Hidden"}},"type":"object","required":["hidden"],"title":"_PluginVisibilityBody"}}}}