跳转到内容

HTTP API 参考

HTTP API 参考--由生成的 OpenAPI 规格自动生成。

本文件由 bun run docs:api 从生成的 OpenAPI 规格生成。禁止手写编辑——下次 CI 运行会覆盖。

Authentication

设置 OPENCORVUS_SERVER_PASSWORD 后,全部端点受保护。客户端必须使用 HTTP Basic Auth:用户名为 OPENCORVUS_SERVER_USERNAME,未设置时默认为 opencorvus;密码为 OPENCORVUS_SERVER_PASSWORD

目录作用域

OpenAPI 只会给项目作用域操作标注 directory query 参数。单个 Task 记录读取以 taskID 为主键,不需要 directoryGET /task/{taskID}/status/board/progress/events/brief/transcript/interactions/bindings/operator-model-context 以及 Task conversation 读取路由。项目任务列表、创建 Task、Task 写操作、browser preview 路由和项目归档下载仍属于项目作用域。

端点列表

Global

Method路径说明operationId
GET/eventSubscribe to eventsevent.subscribe
GET/global/agentsList primary assistants for global configurationglobal.agents.list
GET/global/automationsList scheduled automations 错误: BadRequestError.global.automations.list
POST/global/automationsCreate a scheduled automation 请求体: executionMode, model, name, prompt, reasoningEffort, recurrence, target; 错误: BadRequestError, LogFileNotFoundError, NotFoundError.global.automations.create
DELETE/global/automations/{id}Delete a scheduled automation 错误: BadRequestError, LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.global.automations.delete
PATCH/global/automations/{id}Update a scheduled automation 请求体: executionMode, model, name, prompt, reasoningEffort, recurrence, status, target; 错误: BadRequestError, LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.global.automations.update
POST/global/automations/{id}/runRun a scheduled automation now 错误: BadRequestError, LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.global.automations.run
GET/global/automations/{id}/runsList scheduled automation runs 错误: BadRequestError, LogFileNotFoundError, NotFoundError.global.automations.runs
POST/global/chatCreate Chat in a temporary project 请求体: model; 错误: BadRequestError.global.chat.create
GET/global/composer-expert-squadsSearch global Composer expert squads 错误: BadRequestError, UnknownError.global.composerExpertSquads
GET/global/composer-referencesList global Composer references 错误: UnknownError.global.composerReferences
GET/global/configGet global configuration 错误: NonCanonicalConfigFileError.global.config.get
PATCH/global/configUpdate global configuration 错误: AuthReadError, BadRequestError, NonCanonicalConfigFileError.global.config.update
GET/global/db/mysql/exportExport MySQL transfer snapshotglobal.db.mysql.export
POST/global/db/mysql/importImport MySQL transfer snapshot 请求体: snapshot; 错误: BadRequestError, OwnedPromptControllersError.global.db.mysql.import
GET/global/db/mysql/schemaExport MySQL staging schemaglobal.db.mysql.schema
POST/global/disposeDispose instance 错误: OwnedPromptControllersError.global.dispose
GET/global/eventGet global eventsglobal.event
GET/global/healthGet healthglobal.health
POST/global/projects/anonymousCreate an anonymous projectglobal.projects.anonymous
GET/global/projects/discoverDiscover local OpenCorvus projects 错误: BadRequestError, UnknownError.global.projects.discover
GET/global/providersList providers for a new global taskglobal.providers.list
GET/global/providers/authGet global Provider auth methodsglobal.providers.auth
POST/global/providers/discover-modelsDiscover global Provider models 请求体: api, apiKey, providerID; 错误: AuthReadError, BadRequestError.global.providers.discover.models
POST/global/providers/models/refreshRefresh global configured provider model lists 错误: AuthReadError.global.providers.models.refresh
POST/global/providers/refreshRefresh the global provider registryglobal.providers.refresh
DELETE/global/providers/{providerID}Delete a global provider 错误: AuthReadError, BadRequestError.global.providers.remove
GET/global/providers/{providerID}/account-usageGet global Provider account usage 错误: AuthReadError.global.providers.account.usage
POST/global/providers/{providerID}/auth/executeExecute global Provider auth 请求体: inputs, method; 错误: AuthReadError, BadRequestError.global.providers.auth.execute
POST/global/providers/{providerID}/auth/promptsGet global Provider auth prompts 请求体: inputs, method; 错误: BadRequestError.global.providers.auth.prompts
POST/global/providers/{providerID}/oauth/authorizeAuthorize a global Provider subscription 请求体: inputs, method; 错误: BadRequestError.global.providers.oauth.authorize
POST/global/providers/{providerID}/oauth/callbackComplete global Provider subscription authorization 请求体: code, method; 错误: AuthReadError, BadRequestError.global.providers.oauth.callback
POST/global/providers/{providerID}/testTest a global Provider connection 请求体: modelID; 错误: AuthReadError, BadRequestError.global.providers.test
POST/global/skill/installInstall a global Skill market source 请求体: kind, policy, value; 错误: BadRequestError.global.skill.install
GET/global/skill/marketList the global Skill marketglobal.skill.market
GET/global/tasksList tasks across projectstask.global.list
POST/global/tasksCreate a task in an implicit project 请求体: artifactSources, attachments, budget, channelBinding, checks, directory, expectedPackageDigest, metadata, model, priority, productPillar, project, promptProfile, request, requestID, source, title; 错误: BadRequestError, ExternalChildTaskLineageError, LogFileNotFoundError, NotFoundError, TaskCreationIdempotencyConflictError, TaskCreatorAuthorityError, TaskCreatorSessionError, TaskExpectedPackageDigestConflictError, TaskPackageRevisionBindingError.task.global.create
GET/global/usageGet natural-period Provider usage 错误: BadRequestError.global.usage
POST/global/workCreate Work in a temporary project 请求体: model; 错误: BadRequestError.global.work.create
POST/instance/disposeDispose instance 错误: OwnedPromptControllersError.instance.dispose
GET/logRead logs 错误: BadRequestError, LogFileNotFoundError, NotFoundError.log.read
POST/logWrite log batch 请求体: entries; 错误: BadRequestError, LogFileNotFoundError, NotFoundError.app.log
GET/log/exportExport log support bundlelog.export
GET/log/filesList log fileslog.files
GET/log/tailRead recent logs 错误: LogFileNotFoundError, NotFoundError.log.tail
POST/restartRestart the serverserver.restart
POST/shutdownShutdown the serverserver.shutdown

Authentication

Method路径说明operationId
DELETE/auth/{providerID}Remove auth credentials 错误: AuthReadError, BadRequestError.auth.remove
PUT/auth/{providerID}Set auth credentials 错误: AuthReadError, BadRequestError.auth.set

Configuration

Method路径说明operationId
GET/commandList commands 错误: UnknownError.command.list
GET/configGet configuration 错误: AuthReadError, NonCanonicalConfigFileError.config.get
PATCH/configUpdate configuration (JSON Merge Patch) 错误: AuthReadError, BadRequestError, NonCanonicalConfigFileError.config.update
GET/config/promptList prompt catalog 错误: AuthReadError.config.prompt
GET/config/providersList config providers 错误: AuthReadError.config.providers
POST/config/proxy/testTest network proxy 错误: NetworkProxyTestResponse.config.proxy.test
GET/formatterGet formatter statusformatter.status
GET/pathGet pathspath.get

Project

Method路径说明operationId
GET/projectList all projectsproject.list
DELETE/project/currentDelete current project 请求体: reason, surface; 错误: BadRequestError, LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.project.current.delete
GET/project/currentGet current projectproject.current
PATCH/project/currentUpdate current project 请求体: name; 错误: BadRequestError, LogFileNotFoundError, NotFoundError.project.current.update
GET/project/current/cleanup-candidatesInspect current project cleanup candidates 错误: BadRequestError, LogFileNotFoundError, NotFoundError, WorktreeOwnershipObservationError.project.current.cleanupCandidates
POST/project/current/init-gitInitialize git in current directory 错误: BadRequestError, LogFileNotFoundError, NotFoundError.project.current.initGit
POST/project/current/promote-anonymousConvert current anonymous project to a named project 请求体: destinationParent, name; 错误: BadRequestError, LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.project.current.promoteAnonymous
DELETE/project/current/worktreesDelete a current project worktree 错误: BadRequestError, LogFileNotFoundError, NotFoundError, WorktreeOwnershipObservationError.project.current.worktrees.delete
GET/project/current/worktreesList current project worktrees 错误: BadRequestError, LogFileNotFoundError, NotFoundError.project.current.worktrees
PATCH/project/{projectID}Update project 请求体: commands, icon, name; 错误: BadRequestError, LogFileNotFoundError, NotFoundError.project.update
GET/vcsGet VCS info 错误: UnknownError.vcs.get
POST/vcs/branchSwitch local VCS branch 请求体: branch; 错误: UnknownError, VcsPrerequisiteError.vcs.switchBranch
GET/vcs/branchesList local VCS branches 错误: UnknownError, VcsPrerequisiteError.vcs.branches
POST/vcs/commitCommit current VCS changes 请求体: message; 错误: UnknownError, VcsPrerequisiteError.vcs.commit
POST/vcs/commit-message/streamGenerate a Git commit message with streaming AI 请求体: sessionID, taskID; 错误: UnknownError.vcs.commitMessage.stream
GET/vcs/diffGet VCS diff 错误: UnknownError, VcsPrerequisiteError.vcs.diff
POST/vcs/pushPush current VCS branch 错误: UnknownError, VcsPrerequisiteError.vcs.push

Task / Orchestrator

Method路径说明operationId
DELETE/goal/{goalID}Delete goal 错误: LogFileNotFoundError, NotFoundError.goal.delete
PATCH/goal/{goalID}Update goal title 请求体: title; 错误: LogFileNotFoundError, NotFoundError.goal.updateTitle
POST/interaction/{interactionID}/rejectReject interaction 请求体: message; 错误: BadRequestError, LogFileNotFoundError, NotFoundError.interaction.reject
POST/interaction/{interactionID}/replyReply to interaction 请求体: answers, decision, message; 错误: BadRequestError, LogFileNotFoundError, NotFoundError.interaction.reply
DELETE/mailboxDelete selected mailbox items 请求体: messageIDs; 错误: BadRequestError, LogFileNotFoundError, NotFoundError.mailbox.deleteMany
GET/mailboxList the global mailbox 错误: BadRequestError.mailbox.list
PATCH/mailbox/read-allMark all active mailbox items as readmailbox.readAll
DELETE/mailbox/{messageID}Delete a mailbox item 错误: BadRequestError, LogFileNotFoundError, NotFoundError.mailbox.delete
PATCH/mailbox/{messageID}Update a mailbox item 请求体: action; 错误: BadRequestError, LogFileNotFoundError, NotFoundError.mailbox.acknowledge
GET/missionList Missionsmission.list
POST/mission/draftCreate a Mission draft 请求体: expertSquadIDs, productPillar, request, title; 错误: BadRequestError.mission.createDraft
POST/mission/wakeWake the Mission agent 请求体: attachments, expertSquadIDs, missionID, model, productPillar, text; 错误: AuthReadError, BadRequestError, MissionExecutionClosingError, MissionExpertSquadSnapshotMismatchError.mission.wake
DELETE/mission/{missionID}Delete a Mission 请求体: reason, surface; 错误: BadRequestError, LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.mission.delete
POST/mission/{missionID}/abortAbort a Mission 请求体: reason, surface; 错误: BadRequestError, LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.mission.abort
GET/mission/{missionID}/activity-cursorGet Mission durable activity cursor 错误: LogFileNotFoundError, NotFoundError.mission.activityCursor
PATCH/mission/{missionID}/archiveArchive or restore a Mission 请求体: archived, reason, surface; 错误: BadRequestError, LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.mission.setArchived
POST/mission/{missionID}/dispatchDispatch a Mission draft 请求体: model; 错误: AuthReadError, BadRequestError, LogFileNotFoundError, MissionExecutionClosingError, NotFoundError.mission.dispatch
GET/mission/{missionID}/project-archiveDownload Mission project archive 错误: LogFileNotFoundError, NotFoundError.mission.projectArchive
GET/mission/{missionID}/statusGet Mission status 错误: LogFileNotFoundError, NotFoundError.mission.status
PATCH/mission/{missionID}/titleRename a Mission 请求体: title; 错误: LogFileNotFoundError, NotFoundError.mission.rename
POST/taskCreate task 请求体: artifactSources, attachments, budget, channelBinding, checks, directory, expectedPackageDigest, metadata, model, priority, productPillar, project, promptProfile, request, requestID, source, title; 错误: BadRequestError, ExternalChildTaskLineageError, LogFileNotFoundError, NotFoundError, TaskCreationIdempotencyConflictError, TaskCreatorAuthorityError, TaskCreatorSessionError, TaskExpectedPackageDigestConflictError, TaskPackageRevisionBindingError.task.create
DELETE/task/{taskID}Delete task 请求体: reason, surface; 错误: BadRequestError, LogFileNotFoundError, NotFoundError, TaskArtifactDeletionCommittedError, TaskCancellationIncompleteError, UnknownError.task.delete
GET/task/{taskID}Get task 错误: LogFileNotFoundError, NotFoundError.task.get
PATCH/task/{taskID}/archiveArchive or restore task 请求体: archived, reason, surface; 错误: BadRequestError, LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.task.setArchived
POST/task/{taskID}/artifact-readRead one exact Task deliverable Artifact chunk 请求体: byte_offset, locator, max_bytes; 错误: BadRequestError, LogFileNotFoundError, NotFoundError, UnknownError.task.readConversationArtifact
GET/task/{taskID}/bindingsList channel bindings for a tasktask.bindings
GET/task/{taskID}/boardGet task board 错误: LogFileNotFoundError, NotFoundError.task.board
GET/task/{taskID}/briefGet task brief 错误: LogFileNotFoundError, NotFoundError.task.brief
GET/task/{taskID}/browser-previewResolve task browser preview target 错误: BadRequestError, BrowserPreviewEvidenceCorruptionError, BrowserPreviewTargetCorruptionError, LogFileNotFoundError, NotFoundError.browserPreview.taskTarget
POST/task/{taskID}/browser-preview/captureCapture browser preview verification evidence 请求体: targetID, viewportIDs; 错误: BadRequestError, BrowserPreviewTargetCorruptionError, LogFileNotFoundError, NotFoundError.browserPreview.captureTaskTarget
POST/task/{taskID}/browser-preview/compareCompare browser preview regions against source visual evidence 请求体: inlineBindings, output, targetID; 错误: BadRequestError, BrowserPreviewTargetCorruptionError, LogFileNotFoundError, NotFoundError.browserPreview.compareTaskTargetRegions
GET/task/{taskID}/browser-preview/evidence/{evidenceID}Read browser preview verification evidence 错误: BadRequestError, BrowserPreviewEvidenceCorruptionError, LogFileNotFoundError, NotFoundError.browserPreview.readTaskEvidence
GET/task/{taskID}/browser-preview/evidence/{evidenceID}/artifact/{artifactName}Read browser preview region comparison artifact 错误: BrowserPreviewEvidenceCorruptionError, LogFileNotFoundError, NotFoundError.browserPreview.readTaskEvidenceArtifact
GET/task/{taskID}/browser-preview/evidence/{evidenceID}/capture.pngRead browser preview evidence screenshot 错误: BrowserPreviewEvidenceCorruptionError, LogFileNotFoundError, NotFoundError.browserPreview.readTaskEvidenceCapture
PUT/task/{taskID}/browser-preview/targetSet task browser preview target 请求体: targetID, url, viewports; 错误: BrowserPreviewTargetCorruptionError, LogFileNotFoundError, NotFoundError.browserPreview.selectTaskTarget
PATCH/task/{taskID}/budgetUpdate task budget 请求体: budget; 错误: LogFileNotFoundError, NotFoundError.task.updateBudget
GET/task/{taskID}/build-observation/{artifactID}/contentRead an exact Build observation content range 错误: BadRequestError, LogFileNotFoundError, NotFoundError.task.buildObservationContent
POST/task/{taskID}/cancelCancel task 请求体: reason, surface; 错误: BadRequestError, LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.task.cancel
GET/task/{taskID}/conversationHydrate task conversation state 错误: LogFileNotFoundError, NotFoundError.task.conversation
GET/task/{taskID}/conversation/eventsPage task conversation replay events 错误: LogFileNotFoundError, NotFoundError.task.conversation.events
GET/task/{taskID}/conversation/historyPage older task conversation transcript 错误: LogFileNotFoundError, NotFoundError.task.conversation.history
GET/task/{taskID}/conversation/session/{sessionID}Get one task conversation session transcript 错误: LogFileNotFoundError, NotFoundError.task.conversation.session
GET/task/{taskID}/debug/task-root-ingressesGet Task-root ingress debug projection 错误: LogFileNotFoundError, NotFoundError.task.debug.taskRootIngresses
GET/task/{taskID}/eventsSubscribe to task eventstask.events
POST/task/{taskID}/injectInject message into running task 请求体: message; 错误: BadRequestError, LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.task.inject
GET/task/{taskID}/interactionsList task interactions 错误: LogFileNotFoundError, NotFoundError.task.interactions
POST/task/{taskID}/messageHandle task message 请求体: attachments, channel, metadata, model, resolvedRole, source, text, user_id; 错误: BadRequestError, LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError, TaskPackageRevisionBindingError.task.message
GET/task/{taskID}/operator-model-contextGet task operator model context 错误: BadRequestError, LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.task.operatorModelContext
GET/task/{taskID}/progressGet task progress 错误: LogFileNotFoundError, NotFoundError.task.progress
GET/task/{taskID}/project-archiveDownload task project archive 错误: LogFileNotFoundError, NotFoundError.task.projectArchive
POST/task/{taskID}/rewindRewind the visible Task conversation timeline 请求体: anchor, reason; 错误: LogFileNotFoundError, NotFoundError.task.rewind
POST/task/{taskID}/rewind/clearClear the Task conversation visibility cursor 错误: LogFileNotFoundError, NotFoundError.task.clearRewindCursor
POST/task/{taskID}/session/{sessionID}/cancelCancel a task agent session 错误: BadRequestError, LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.task.session.cancel
POST/task/{taskID}/session/{sessionID}/operator-steerSteer a task agent session through operator coordination 请求体: message; 错误: BadRequestError, LogFileNotFoundError, NotFoundError, OperatorSteerTargetError, TaskCancellationIncompleteError.task.session.operatorSteer
GET/task/{taskID}/statusGet task status 错误: LogFileNotFoundError, NotFoundError.task.status
PATCH/task/{taskID}/titleUpdate task title 请求体: title; 错误: BadRequestError, LogFileNotFoundError, NotFoundError.task.updateTitle
GET/task/{taskID}/traceGet task AgentTrace events (all sessions) 错误: LogFileNotFoundError, NotFoundError.task.trace
GET/task/{taskID}/transcriptGet task transcript 错误: LogFileNotFoundError, NotFoundError.task.transcript
GET/task/{taskID}/turn-artifactsProject terminal artifacts onto the owning Task turn 错误: LogFileNotFoundError, NotFoundError.task.turnArtifacts
GET/tasksList project taskstask.list
GET/work-ledgerList Work Ledger rows 错误: BadRequestError.workLedger.list
GET/work-ledger/archiveList archived Work Ledger rows 错误: BadRequestError.workLedger.listArchived
GET/work-ledger/eventsSubscribe to Work Ledger change notificationsworkLedger.events
PATCH/work-ledger/item/{kind}/{itemID}/pinPin or unpin a Work Ledger item 请求体: pinned; 错误: BadRequestError, LogFileNotFoundError, NotFoundError.workLedger.setItemPinned
PATCH/work-ledger/project/{projectID}/pinPin or unpin a Work Ledger project 请求体: pinned; 错误: BadRequestError, LogFileNotFoundError, NotFoundError.workLedger.setProjectPinned

Session

Method路径说明operationId
GET/sessionList sessionssession.list
POST/sessionCreate session 请求体: kind, metadata, parentID, permission, title; 错误: BadRequestError, MissionSessionAuthorityError.session.create
GET/session/globalList sessions across projects 错误: BadRequestError.session.listGlobal
GET/session/statusGet session status 错误: BadRequestError.session.status
DELETE/session/{sessionID}Delete session 错误: BadRequestError, LogFileNotFoundError, MissionSessionAuthorityError, NotFoundError, TaskArtifactDeletionCommittedError, TaskBoundSessionDeletionError, TaskCancellationIncompleteError, UnknownError.session.delete
GET/session/{sessionID}Get session 错误: BadRequestError, LogFileNotFoundError, NotFoundError.session.get
PATCH/session/{sessionID}Update session 请求体: time, title; 错误: BadRequestError, LogFileNotFoundError, MissionSessionAuthorityError, NotFoundError.session.update
POST/session/{sessionID}/abortAbort session 错误: BadRequestError, LogFileNotFoundError, MissionSessionAuthorityError, NotFoundError, TaskCancellationIncompleteError.session.abort
GET/session/{sessionID}/childrenGet session children 错误: BadRequestError, LogFileNotFoundError, NotFoundError.session.children
POST/session/{sessionID}/commandSend command 请求体: agent, arguments, command, messageID, model, parts, variant; 错误: BadRequestError, LogFileNotFoundError, MissionSessionAuthorityError, NotFoundError.session.command
GET/session/{sessionID}/configGet session effective configuration 错误: AuthReadError, BadRequestError, LogFileNotFoundError, NotFoundError.session.config.get
PATCH/session/{sessionID}/configUpdate session configuration overlay 请求体: agent, expert_squads, model, prompt, prompt_profile, runtime_templates, skill_mounts; 错误: AuthReadError, BadRequestError, LogFileNotFoundError, NotFoundError, TaskPackageRevisionBindingError, TaskPromptProfileImmutableError.session.config.update
GET/session/{sessionID}/conversationHydrate session conversation state 错误: LogFileNotFoundError, NotFoundError.session.conversation
GET/session/{sessionID}/conversation/historyPage older session conversation transcript 错误: LogFileNotFoundError, NotFoundError.session.conversation.history
GET/session/{sessionID}/diffGet message diffsession.diff
GET/session/{sessionID}/eventsSubscribe to session eventssession.events
POST/session/{sessionID}/forkFork session 请求体: messageID; 错误: MissionSessionAuthorityError.session.fork
POST/session/{sessionID}/initInitialize session 请求体: messageID, modelID, providerID; 错误: BadRequestError, LogFileNotFoundError, MissionSessionAuthorityError, NotFoundError.session.init
GET/session/{sessionID}/interactive-artifact/{artifactID}Read session interactive artifact 错误: BadRequestError, InteractiveArtifactCorruptionError, LogFileNotFoundError, NotFoundError.interactiveArtifact.readSessionArtifact
GET/session/{sessionID}/interactive-artifact/{artifactID}/mcp-app/eventsSubscribe to MCP App capability changes 错误: BadRequestError, LogFileNotFoundError, NotFoundError.interactiveArtifact.eventsMcpApp
POST/session/{sessionID}/interactive-artifact/{artifactID}/mcp-app/requestForward an MCP App request 错误: BadRequestError, LogFileNotFoundError, McpAppHostForbiddenError, NotFoundError, UnknownError.interactiveArtifact.requestMcpApp
GET/session/{sessionID}/messageGet session messages 错误: BadRequestError, LogFileNotFoundError, NotFoundError.session.messages
POST/session/{sessionID}/messageSend message 请求体: agent, format, messageID, model, parts, variant; 错误: AuthReadError, BadRequestError, LogFileNotFoundError, NotFoundError, PublicSessionPromptIdentityConflictError.session.prompt
DELETE/session/{sessionID}/message/{messageID}Delete message 错误: BadRequestError, LogFileNotFoundError, NotFoundError.session.deleteMessage
GET/session/{sessionID}/message/{messageID}Get message 错误: BadRequestError, LogFileNotFoundError, NotFoundError.session.message
DELETE/session/{sessionID}/message/{messageID}/part/{partID}(无说明) 错误: BadRequestError, LogFileNotFoundError, NotFoundError.part.delete
PATCH/session/{sessionID}/message/{messageID}/part/{partID}(无说明) 错误: BadRequestError, LogFileNotFoundError, NotFoundError.part.update
POST/session/{sessionID}/shellRun shell command 请求体: agent, command, model; 错误: BadRequestError, LogFileNotFoundError, MissionSessionAuthorityError, NotFoundError.session.shell
POST/session/{sessionID}/summarizeSummarize session 请求体: auto, focus, modelID, providerID; 错误: BadRequestError, LogFileNotFoundError, MissionSessionAuthorityError, NotFoundError.session.summarize
GET/session/{sessionID}/todoGet session todos 错误: BadRequestError, LogFileNotFoundError, NotFoundError.session.todo
GET/session/{sessionID}/traceGet session AgentTrace eventssession.trace
GET/session/{sessionID}/turn-artifactsProject Mission child Task artifacts onto their owning turns 错误: LogFileNotFoundError, NotFoundError.session.turnArtifacts

Coding

Method路径说明operationId
POST/coding/chat/sessionCreate right sidebar Chat session 请求体: model; 错误: AuthReadError.coding.chat.session.create
DELETE/coding/chat/session/{sessionID}Delete right sidebar Chat session 错误: LogFileNotFoundError, NotFoundError.coding.chat.session.delete
GET/coding/chat/session/{sessionID}Claim right sidebar Chat session 错误: LogFileNotFoundError, NotFoundError.coding.chat.session.get
PATCH/coding/chat/session/{sessionID}Update right sidebar Chat session 请求体: title; 错误: LogFileNotFoundError, NotFoundError.coding.chat.session.update
POST/coding/chat/session/{sessionID}/abortAbort right sidebar Chat session 错误: LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.coding.chat.session.abort
PATCH/coding/chat/session/{sessionID}/archiveArchive or restore right sidebar Chat session 请求体: archived; 错误: LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.coding.chat.session.setArchived
PATCH/coding/chat/session/{sessionID}/selectionUpdate right sidebar Chat task selection 请求体: taskID; 错误: LogFileNotFoundError, NotFoundError.coding.chat.session.selection.update
GET/coding/chat/sessionsList right sidebar Chat sessions 错误: BadRequestError.coding.chat.sessions.list
POST/coding/cli/openOpen coding CLI 请求体: cliID, cwd, terminalProfileID; 错误: BadRequestError.coding.cli.open
GET/coding/cli/profilesList installed coding CLIs 错误: BadRequestError.coding.cli.profiles
POST/coding/work/sessionCreate right sidebar Work session 请求体: model; 错误: AuthReadError.coding.work.session.create
DELETE/coding/work/session/{sessionID}Delete right sidebar Work session 错误: LogFileNotFoundError, NotFoundError.coding.work.session.delete
GET/coding/work/session/{sessionID}Claim right sidebar Work session 错误: LogFileNotFoundError, NotFoundError.coding.work.session.get
PATCH/coding/work/session/{sessionID}Update right sidebar Work session 请求体: title; 错误: LogFileNotFoundError, NotFoundError.coding.work.session.update
POST/coding/work/session/{sessionID}/abortAbort right sidebar Work session 错误: LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.coding.work.session.abort
PATCH/coding/work/session/{sessionID}/archiveArchive or restore right sidebar Work session 请求体: archived; 错误: LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.coding.work.session.setArchived
PATCH/coding/work/session/{sessionID}/selectionUpdate right sidebar Work task selection 请求体: taskID; 错误: LogFileNotFoundError, NotFoundError.coding.work.session.selection.update
GET/coding/work/sessionsList right sidebar Work sessions 错误: BadRequestError.coding.work.sessions.list

Channel

Method路径说明operationId
GET/channelList channelschannel.list
POST/channel/attachmentCreate a temporary channel attachment URL 请求体: data, filename, mime; 错误: BadRequestError.channel.attachment.create
GET/channel/attachment/{id}Read a temporary channel attachment 错误: LogFileNotFoundError, NotFoundError.channel.attachment.get
POST/channel/messageHandle channel message 请求体: allow_create, allow_session_mutation, attachments, bind, channel, model, platform, request_id, source, task_id, text, thread, user_id.channel.message
GET/channel/runtimeGet managed channel runtimechannel.runtime
POST/channel/runtime/restartRestart managed channel runtimechannel.runtime.restart

Gateway

Method路径说明operationId
GET/gateway/capabilitiesList gateway capabilitiesgateway.capabilities
POST/gateway/channel/{platform}/messageHandle gateway channel message 请求体: allow_create, allow_session_mutation, attachments, bind, channel, model, platform, request_id, source, task_id, text, thread, user_id.gateway.channel.message
POST/gateway/control/actionRun gateway control action 请求体: acceptance_specs, action, allow_create, artifact_locator_ref, artifact_transport_version, artifact_types, byte_offset, channel, checks, created_at_or_after_ms, created_before_ms, delivery, directory, evidence_read_refs, expectedPackageDigest, goalID, goal_ids, id, import_source_task_ids, includeInteractions, interactionID, kinds, labels, match, max_bytes, media_types, message, metadata, model, page_number, platform, producer_agent_ids, producer_session_ids, producer_squad_ids, productPillar, promptProfile, query, reason, reply, request, request_id, sessionID, sort, source, sources, summary, taskID, taskIDs, task_acceptances, terminal_lifecycle_reference, text, thread, title, user_id, version_scope, workflowCursor.gateway.control.action
POST/gateway/control/messageHandle gateway control message 请求体: allow_create, attachments, channel, model, request_id, sessionID, source, surface, taskID, text, thread, user_id.gateway.control.message
GET/gateway/statsGet gateway statsgateway.stats

Attachment

Method路径说明operationId
POST/attachmentUpload a conversation attachmentattachment.create
POST/attachment/directory-referenceReference a local directory 请求体: path.attachment.createDirectoryReference
GET/attachment/{projectID}/{name}Fetch a task attachmentattachment.get

Panel

Method路径说明operationId
GET/panel/capabilitiesList panel capabilitiespanel.capabilities
GET/panel/knowledge/memoryList memory files for current projectpanel.knowledge.memory.list
POST/panel/knowledge/memory/searchSearch memories 请求体: limit, query.panel.knowledge.memory.search
DELETE/panel/knowledge/memory/{id}Delete memory file 错误: LogFileNotFoundError, NotFoundError.panel.knowledge.memory.delete
GET/panel/knowledge/memory/{id}Get memory file content (all chunks) 错误: LogFileNotFoundError, NotFoundError.panel.knowledge.memory.get
POST/panel/messageHandle desktop panel message 请求体: allow_create, attachments, channel, model, request_id, sessionID, source, surface, taskID, text, thread, user_id; 错误: MissionSessionAuthorityError.panel.message
POST/panel/message/streamHandle desktop panel message with streaming 请求体: allow_create, attachments, channel, model, request_id, sessionID, source, surface, taskID, text, thread, user_id; 错误: MissionSessionAuthorityError.panel.message.stream

Expert Squad

Method路径说明operationId
GET/expert-squad/catalogResolve the active expert-squad capability projection 错误: AuthReadError, BadRequestError, NotFoundError, UnknownError.expertSquad.catalog
GET/expert-squad/configurationGet expert squad configuration 错误: ExpertSquadPackageError.expertSquad.configuration.get
PUT/expert-squad/configurationUpdate expert squad configuration 请求体: id, installationScope, updates; 错误: ExpertSquadPackageError.expertSquad.configuration.update
GET/expert-squad/diagnosticsPage Expert Squad discovery diagnostics 错误: BadRequestError, UnknownError.expertSquad.diagnostics
POST/expert-squad/evolution-authorizationAuthorize an expert squad evolution mutation 请求体: confirmationText, intent, sessionID, taskID; 错误: ExpertSquadPackageError.expertSquad.evolutionAuthorization
GET/expert-squad/evolution-historyRead expert squad evolution history 错误: ExpertSquadPackageError.expertSquad.evolutionHistory
POST/expert-squad/evolution-history/detailRead one exact expert squad evolution campaign 请求体: campaignLocator, campaignTaskID, candidateLocator, catalogRevisionUpper, comparisonLocator, id, installationScope, namespace; 错误: EvolutionHistoryAuthorityError, ExpertSquadPackageError.expertSquad.evolutionHistoryDetail
POST/expert-squad/evolution-mutationExecute an authorized expert squad evolution mutation 请求体: authorization, campaignSpecLocator, candidateRevisionLocator, comparisonResultLocator, expectedCurrentPackageDigest, operation, priorReceiptLocator, restorePackageDigest; 错误: ExpertSquadPackageError, ExpertSquadPackageMutationConflictError.expertSquad.evolutionMutation
POST/expert-squad/exportExport an expert squad ZIP archive 请求体: id, installationScope; 错误: ExpertSquadPackageError.expertSquad.export
POST/expert-squad/import-exact-fileImport an exact hosted expert squad ZIP revision 请求体: archiveBase64, expectedCurrentPackageDigest, expectedID, expectedNamespace, expectedPackageDigest, expectedVersion, filename, installationScope; 错误: ExpertSquadPackageError, ExpertSquadPackageMutationConflictError.expertSquad.importExactFile
POST/expert-squad/import-fileImport an expert squad ZIP archive 请求体: archiveBase64, expectedCurrentPackageDigest, filename, installationScope; 错误: ExpertSquadPackageError, ExpertSquadPackageMutationConflictError.expertSquad.importFile
POST/expert-squad/import-folderImport an expert squad folder 请求体: expectedCurrentPackageDigest, installationScope, sourceDirectory; 错误: ExpertSquadPackageError, ExpertSquadPackageMutationConflictError.expertSquad.importFolder
GET/expert-squad/inspectInspect one expert-squad declaration 错误: BadRequestError, NotFoundError, UnknownError.expertSquad.inspect
POST/expert-squad/install-payloadInstall one bundled expert squad 请求体: id, installationScope; 错误: ExpertSquadPackageError, ExpertSquadPackageMutationConflictError.expertSquad.installPayload
GET/expert-squad/inventory-statusGet expert-squad inventory status 错误: BadRequestError, UnknownError.expertSquad.inventoryStatus
GET/expert-squad/marketBrowse bundled expert squads 错误: ExpertSquadPackageError.expertSquad.market
GET/expert-squad/market/detailInspect one bundled expert squad 错误: ExpertSquadPackageError, NotFoundError.expertSquad.marketDetail
POST/expert-squad/multica/previewPreview a Multica squad import 请求体: mapping, squadID; 错误: ExpertSquadPackageError.expertSquad.multicaPreview
GET/expert-squad/multica/squadsList Multica squads with expert-squad installation status 错误: ExpertSquadPackageError.expertSquad.multicaSquads
POST/expert-squad/release-payloadRelease bundled expert-squad packages 错误: ExpertSquadPackageError, ExpertSquadPackageMutationConflictError.expertSquad.releasePayload
GET/expert-squad/searchSearch expert-squad declarations 错误: BadRequestError, UnknownError.expertSquad.search
GET/expert-squad/settings/detailLoad one full expert-squad settings declaration 错误: BadRequestError, NotFoundError, UnknownError.expertSquad.settingsDetail
POST/expert-squad/uninstallUninstall an expert squad package 请求体: id, installationScope, replacementID; 错误: AuthReadError, ExpertSquadPackageError.expertSquad.uninstall
POST/expert-squad/updateUpdate an installed expert squad 请求体: expectedCurrentPackageDigest, id, installationScope, source; 错误: ExpertSquadPackageError, ExpertSquadPackageMutationConflictError.expertSquad.update
POST/expert-squad/validate-folderValidate an expert squad source folder 请求体: sourceDirectory; 错误: ExpertSquadPackageError.expertSquad.validateFolder

Mission Skill

Method路径说明operationId
GET/mission-skill/catalogList Mission Skills 错误: BadRequestError, LogFileNotFoundError, NotFoundError, UnknownError.missionSkill.catalog
POST/mission-skill/directoryPrepare Mission Skill Directory 请求体: source; 错误: BadRequestError, LogFileNotFoundError, NotFoundError, UnknownError.missionSkill.directory
GET/mission-skill/settingsInspect Mission Skill Settings 错误: BadRequestError, LogFileNotFoundError, NotFoundError, UnknownError.missionSkill.settings

对话能力

Method路径说明operationId
GET/chat/capabilityInspect native Chat capabilities 错误: UnknownError.chat.capability.get
PATCH/chat/capabilityUpdate native Chat capability assignments 错误: BadRequestError, UnknownError.chat.capability.update
GET/work/capabilityInspect native Work capabilities 错误: UnknownError.work.capability.get
PATCH/work/capabilityUpdate native Work capability assignments 错误: BadRequestError, UnknownError.work.capability.update

Skill

Method路径说明operationId
GET/agentList primary assistantsapp.agents
GET/skillList skillsapp.skills
GET/skill/directoriesGet skill directoriesskill.directories
POST/skill/import-fileImport a dropped skill source 请求体: archiveBase64, content, filename, files, policy, sourceName.skill.importFile
POST/skill/installInstall or import a skill source 请求体: kind, policy, value.skill.install
GET/skill/installedList installed skillsskill.installed
GET/skill/issuesList Skill catalog issuesskill.issues
GET/skill/marketList skill marketsskill.market
PATCH/skill/mountSet a qualified skill mount override 请求体: agentID, defaultSkillRef, expertSquadID, override, scope, sessionID.skill.setMountOverride
GET/skill/mountsList agent skill mountsskill.mounts
POST/skill/policySet skill permission policy 请求体: action, name.skill.policy
POST/skill/removeRemove a skill source 请求体: kind, source.skill.remove
POST/skill/updateUpdate an installed skill 请求体: name, source.skill.update

Export

Method路径说明operationId
GET/export/session/{sessionID}Export session messages 错误: LogFileNotFoundError, NotFoundError.export.session

QuickNote

Method路径说明operationId
POST/api/v1/notesCreate QuickNote 错误: BadRequestError.quicknote.create

Computer

Method路径说明operationId
POST/computer/returnReturn the current desktop to Agent automation 请求体: computerID, displayID, sessionID; 错误: BadRequestError, UnknownError.computer.return
POST/computer/statusGet Computer desktop ownership 请求体: computerID, displayID, sessionID; 错误: BadRequestError, UnknownError.computer.status
POST/computer/takeoverTake over the current desktop 请求体: computerID, displayID, sessionID; 错误: BadRequestError, UnknownError.computer.takeover

MCP

Method路径说明operationId
DELETE/mcpRemove project MCP servers 错误: BadRequestError, LogFileNotFoundError, NotFoundError, UnknownError.mcp.remove
GET/mcpGet MCP statusmcp.status
POST/mcpAdd MCP server 请求体: config, credentialSecret, name; 错误: BadRequestError.mcp.add
GET/mcp/projectGet project-owned MCP statusmcp.project.status
DELETE/mcp/{name}/authRemove MCP OAuth 错误: LogFileNotFoundError, NotFoundError, UnknownError.mcp.auth.remove
POST/mcp/{name}/authStart MCP OAuth 错误: BadRequestError, LogFileNotFoundError, NotFoundError, UnknownError.mcp.auth.start
POST/mcp/{name}/auth/authenticateAuthenticate MCP OAuth 错误: BadRequestError, LogFileNotFoundError, NotFoundError, UnknownError.mcp.auth.authenticate
POST/mcp/{name}/auth/callbackComplete MCP OAuth 请求体: code, state; 错误: BadRequestError, LogFileNotFoundError, MCPOAuthStateError, NotFoundError, UnknownError.mcp.auth.callback
POST/mcp/{name}/connect(无说明) 错误: LogFileNotFoundError, NotFoundError, UnknownError.mcp.connect
POST/mcp/{name}/disconnect(无说明) 错误: LogFileNotFoundError, NotFoundError.mcp.disconnect

Permission

Method路径说明operationId
GET/permissionList durable pending permission requestspermission.list
GET/permission/grantsList active permission grantspermission.grants
POST/permission/grants/{grantID}/revokeRevoke an active permission grant 错误: LogFileNotFoundError, NotFoundError.permission.revoke
GET/permission/historyList permission ledger historypermission.history
POST/permission/{requestID}/replyDecide a pending permission request 请求体: actorID, decision, message; 错误: BadRequestError, LogFileNotFoundError, NotFoundError.permission.reply

Provider

Method路径说明operationId
GET/providerList providersprovider.list
GET/provider/authGet provider auth methodsprovider.auth
POST/provider/discover-modelsDiscover OpenAI-compatible provider models 请求体: api, apiKey, providerID; 错误: AuthReadError, BadRequestError.provider.discover.models
POST/provider/models/refreshRefresh configured provider model lists 错误: AuthReadError.provider.models.refresh
POST/provider/refreshRefresh the provider registryprovider.refresh
DELETE/provider/{providerID}Delete a project provider 错误: AuthReadError, BadRequestError.provider.remove
GET/provider/{providerID}/account-usageGet Provider account usage 错误: AuthReadError.provider.account.usage
POST/provider/{providerID}/auth/executeExecute auth method 请求体: inputs, method; 错误: AuthReadError, BadRequestError.provider.auth.execute
POST/provider/{providerID}/auth/promptsGet auth prompts 请求体: inputs, method; 错误: BadRequestError.provider.auth.prompts
POST/provider/{providerID}/oauth/authorizeOAuth authorize 请求体: inputs, method; 错误: BadRequestError.provider.oauth.authorize
POST/provider/{providerID}/oauth/callbackOAuth callback 请求体: code, method; 错误: AuthReadError, BadRequestError.provider.oauth.callback
POST/provider/{providerID}/testTest provider connection 请求体: modelID; 错误: AuthReadError, BadRequestError.provider.test

Question

Method路径说明operationId
GET/questionList pending questionsquestion.list
POST/question/{requestID}/rejectReject question request 错误: BadRequestError, LogFileNotFoundError, NotFoundError.question.reject
POST/question/{requestID}/replyReply to question request 请求体: answers; 错误: BadRequestError, LogFileNotFoundError, NotFoundError.question.reply

PTY

Method路径说明operationId
GET/ptyList PTY sessionspty.list
POST/ptyCreate PTY session 请求体: cwd, profileID, title; 错误: BadRequestError.pty.create
DELETE/pty/{ptyID}Remove PTY session 错误: LogFileNotFoundError, NotFoundError.pty.remove
GET/pty/{ptyID}Get PTY session 错误: LogFileNotFoundError, NotFoundError.pty.get
PUT/pty/{ptyID}Update PTY session 请求体: size, title; 错误: BadRequestError, LogFileNotFoundError, NotFoundError.pty.update
POST/pty/{ptyID}/inputWrite PTY input 请求体: data; 错误: LogFileNotFoundError, NotFoundError.pty.input
GET/pty/{ptyID}/outputStream PTY output 错误: LogFileNotFoundError, NotFoundError.pty.output
POST/terminal/openOpen system terminal 请求体: cwd, profileID; 错误: BadRequestError.terminal.open
GET/terminal/profilesList system terminal profiles 错误: BadRequestError.terminal.profiles
Method路径说明operationId
GET/fileList filesfile.list
GET/file/contentRead file 错误: FileNotFoundError, UnknownError.file.read
PATCH/file/contentWrite file 请求体: content, path; 错误: BadRequestError, LogFileNotFoundError, NotFoundError, UnknownError.file.write
DELETE/file/itemDelete file item 错误: BadRequestError, LogFileNotFoundError, NotFoundError.file.delete
PATCH/file/itemMove file item 请求体: newPath, path; 错误: BadRequestError, LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.file.move
POST/file/itemCreate file item 请求体: content, path, type; 错误: BadRequestError, LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.file.create
POST/file/item/copyCopy file item 请求体: newPath, path; 错误: BadRequestError, LogFileNotFoundError, NotFoundError, TaskCancellationIncompleteError.file.copy
GET/file/source-contentRead an absolute source file 错误: BadRequestError, FileInvalidPathError, FileNotFoundError, UnknownError.file.readSource
GET/file/statusGet file statusfile.status
POST/file/uploadUpload files 请求体: files, targetDir; 错误: BadRequestError, TaskCancellationIncompleteError.file.upload
GET/findFind text 错误: UnknownError.find.text
GET/find/fileFind files 错误: UnknownError.find.files
GET/find/symbolFind symbolsfind.symbols
GET/lspGet LSP statuslsp.status

Experimental

Method路径说明operationId
GET/experimental/event-scheduleList event-triggered tasks 错误: BadRequestError.experimental.eventschedule.list
POST/experimental/event-scheduleCreate event-triggered task 请求体: cooldownMs, eventType, match, name, oneShot, prompt, sessionId; 错误: BadRequestError, LogFileNotFoundError, NotFoundError.experimental.eventschedule.create
DELETE/experimental/event-schedule/{id}Cancel event-triggered task 错误: BadRequestError, LogFileNotFoundError, NotFoundError.experimental.eventschedule.delete
GET/experimental/memoryGet the Session MEMORY.MD document 错误: LogFileNotFoundError, NotFoundError.experimental.memory.get
GET/experimental/project-memoryGet the organized Project MEMORY.MD contextexperimental.projectMemory.get
POST/experimental/project-memory/notice/acknowledgeAcknowledge a Project MEMORY.MD notice 请求体: generation.experimental.projectMemory.acknowledgeNotice
POST/experimental/project-memory/organizeRequest Project MEMORY.MD organizationexperimental.projectMemory.organize
GET/experimental/resourceGet MCP resources 错误: UnknownError.experimental.resource.list
GET/experimental/task-planList tasks for a session 错误: LogFileNotFoundError, NotFoundError.experimental.taskplan.list
GET/experimental/toolList tools 错误: BadRequestError.tool.list
GET/experimental/tool/idsList tool IDs 错误: BadRequestError.tool.ids
GET/experimental/workspaceList workspacesexperimental.workspace.list
DELETE/experimental/workspace/{id}Remove workspace 错误: BadRequestError, LogFileNotFoundError, NotFoundError.experimental.workspace.remove
POST/experimental/workspace/{id}Create workspace 错误: BadRequestError.experimental.workspace.create
DELETE/experimental/worktreeRemove worktree 错误: BadRequestError, LogFileNotFoundError, NotFoundError, WorktreeOwnershipObservationError.worktree.remove
GET/experimental/worktreeList worktreesworktree.list
POST/experimental/worktreeCreate worktree 错误: BadRequestError.worktree.create
POST/experimental/worktree/resetReset worktree 错误: BadRequestError, LogFileNotFoundError, NotFoundError.worktree.reset