openapi: 3.1.0 info: description: Loopback-only HTTP surface served by the Go daemon. Generated from Go (code-first) — do not edit by hand; run `go generate ./...`. title: Agent Orchestrator HTTP daemon version: 0.1.0-route-shell servers: - description: Local daemon (loopback only) url: http://127.0.0.1:3001 paths: /api/v1/agents: get: operationId: listAgents responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListAgentsResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Return cached supported and locally installed agent adapters tags: - agents /api/v1/agents/{agent}/auth: post: operationId: startAgentAuth parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string responses: "201": content: application/json: schema: $ref: '#/components/schemas/StartAgentAuthResponse' description: Created "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Open the fixed native authentication flow for one agent tags: - agents /api/v1/agents/{agent}/auth/operations: post: operationId: startAgentUILogin parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/StartAgentUILoginRequest' required: true responses: "202": content: application/json: schema: $ref: '#/components/schemas/AgentLoginSnapshot' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Start a fixed native login in the background without exposing a terminal tags: - agents /api/v1/agents/{agent}/auth/operations/{operationId}: delete: operationId: cancelAgentUILogin parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string - in: path name: operationId required: true schema: type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/AgentLoginSnapshot' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Cancel a background login and wait for its native process to stop tags: - agents get: operationId: getAgentUILogin parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string - in: path name: operationId required: true schema: type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/AgentLoginSnapshot' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Read recognized login prompts and background process state tags: - agents /api/v1/agents/{agent}/auth/operations/{operationId}/actions: post: operationId: actOnAgentUILogin parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string - in: path name: operationId required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/AgentLoginActionRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/AgentLoginSnapshot' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Send a fixed action to a recognized native login menu tags: - agents /api/v1/agents/{agent}/auth/operations/{operationId}/code: post: operationId: submitAgentUILoginCode parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string - in: path name: operationId required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SubmitAgentUILoginCodeRequest' required: true responses: "202": content: application/json: schema: $ref: '#/components/schemas/AgentLoginSnapshot' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Submit a one-time Claude sign-in code to the existing native login tags: - agents /api/v1/agents/{agent}/auth/providers: get: operationId: listAgentCatalogProviders parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListCatalogProvidersResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List the key-only providers in an agent's own provider catalog on this device tags: - agents /api/v1/agents/{agent}/auth/providers/{provider}/models: get: operationId: listAgentCatalogModels parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string - description: Provider ID from the harness's catalog. in: path name: provider required: true schema: description: Provider ID from the harness's catalog. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListCatalogModelsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List the model IDs an agent's own catalog offers for one provider tags: - agents /api/v1/agents/{agent}/auth/signed-in: post: operationId: recordAgentSignIn parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/RecordAgentSignInResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Apply a sign-in completed in an agent's own terminal login tags: - agents /api/v1/agents/{agent}/chat/prewarm: post: operationId: prewarmChatAgent parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string responses: "202": content: application/json: schema: $ref: '#/components/schemas/PrewarmChatAgentResponse' description: Accepted "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Run an agent's Chat readiness check in the background so a later switch to it skips it tags: - conversations /api/v1/agents/{agent}/install: get: operationId: getAgentInstallStatus parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/InstallJob' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Get the current or last install job for one agent harness tags: - agents post: operationId: startAgentInstall parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/StartAgentInstallRequest' responses: "202": content: application/json: schema: $ref: '#/components/schemas/InstallJob' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Start an asynchronous install, reinstall, or update for one fixed agent harness tags: - agents /api/v1/agents/{agent}/install/cancel: post: operationId: cancelAgentInstall parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/InstallJob' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Cancel an update that is waiting for the harness's sessions to be idle tags: - agents /api/v1/agents/{agent}/logout: post: operationId: logoutAgent parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string responses: "201": content: application/json: schema: $ref: '#/components/schemas/StartAgentAuthResponse' description: Created "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Open the fixed native logout flow for one agent tags: - agents /api/v1/agents/{agent}/models: get: operationId: getAgentModels parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string - description: Return catalog facts without reading session history for model recency. Cached catalogs are served while discovery refreshes in the background. in: query name: catalogOnly schema: description: Return catalog facts without reading session history for model recency. Cached catalogs are served while discovery refreshes in the background. type: boolean - description: 'Optional cloud credential scope. Any other value, including a project identifier, is ignored: model catalogs are cached per device, not per project.' in: query name: projectId schema: description: 'Optional cloud credential scope. Any other value, including a project identifier, is ignored: model catalogs are cached per device, not per project.' type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/AgentModelsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Return the cached model picker for one agent, discovering it on first use tags: - agents /api/v1/agents/{agent}/models/refresh: post: operationId: refreshAgentModels parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string - description: Refresh the Harness Settings browsing catalog without session-history enrichment; FX includes all connections in a separate cache. in: query name: catalogOnly schema: description: Refresh the Harness Settings browsing catalog without session-history enrichment; FX includes all connections in a separate cache. type: boolean - description: 'Optional cloud credential scope. Any other value, including a project identifier, is ignored: model catalogs are cached per device, not per project.' in: query name: projectId schema: description: 'Optional cloud credential scope. Any other value, including a project identifier, is ignored: model catalogs are cached per device, not per project.' type: string - description: When true, compare executable and config metadata before running discovery. in: query name: revalidate schema: description: When true, compare executable and config metadata before running discovery. type: boolean responses: "200": content: application/json: schema: $ref: '#/components/schemas/AgentModelsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Refresh and cache the model picker for one agent tags: - agents /api/v1/agents/{agent}/probe: post: operationId: probeAgent parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ProbeAgentResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Ensure launch-fresh readiness for one agent adapter tags: - agents /api/v1/agents/{agent}/skills: get: operationId: listAgentSkills parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string - description: Project whose skill folders are read before the user's. Omitted scans only the user's own skills. in: query name: projectId schema: description: Project whose skill folders are read before the user's. Omitted scans only the user's own skills. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ConversationSkillsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: List the skills an agent offers in a project, read from its skill folders without a session tags: - agents /api/v1/agents/{agent}/update-advisory: get: operationId: getAgentUpdateAdvisory parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string - description: Re-probe the installed binary, ownership and latest release instead of reusing cached advisory evidence. in: query name: refresh schema: description: Re-probe the installed binary, ownership and latest release instead of reusing cached advisory evidence. type: boolean responses: "200": content: application/json: schema: $ref: '#/components/schemas/AgentUpdateAdvisory' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Compare an installed harness version with its known package source tags: - agents /api/v1/agents/{agent}/verify: post: operationId: verifyAgentInstall parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string responses: "202": content: application/json: schema: $ref: '#/components/schemas/InstallJob' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Verify an installed harness without reinstalling or probing authentication tags: - agents /api/v1/agents/accounts: get: operationId: listAgentAccounts parameters: - description: Read identity and limits again even when the last reading is fresh. in: query name: refresh schema: description: Read identity and limits again even when the last reading is fresh. type: boolean responses: "200": content: application/json: schema: $ref: '#/components/schemas/AgentAccountsResponse' description: OK "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List Claude Code and Codex accounts with their limits tags: - agents /api/v1/agents/accounts/{accountId}: delete: operationId: removeAgentAccount parameters: - description: Agent account identifier; device-claude and device-codex are this computer's own logins. in: path name: accountId required: true schema: description: Agent account identifier; device-claude and device-codex are this computer's own logins. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/AgentAccountsResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Sign an account out and remove it tags: - agents /api/v1/agents/accounts/{accountId}/api-key: put: operationId: replaceAgentAccountAPIKey parameters: - description: Agent account identifier; device-claude and device-codex are this computer's own logins. in: path name: accountId required: true schema: description: Agent account identifier; device-claude and device-codex are this computer's own logins. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ControllersReplaceAgentAccountAPIKeyRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/AgentAccountsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Save a new key for an API key account, once the provider accepts it tags: - agents /api/v1/agents/accounts/{accountId}/default: post: operationId: setDefaultAgentAccount parameters: - description: Agent account identifier; device-claude and device-codex are this computer's own logins. in: path name: accountId required: true schema: description: Agent account identifier; device-claude and device-codex are this computer's own logins. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/AgentAccountsResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Make an account the default for new sessions of its provider tags: - agents /api/v1/agents/accounts/{accountId}/login: post: operationId: signInAgentAccountAgain parameters: - description: Agent account identifier; device-claude and device-codex are this computer's own logins. in: path name: accountId required: true schema: description: Agent account identifier; device-claude and device-codex are this computer's own logins. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ControllersSignInAgentAccountAgainRequest' responses: "202": content: application/json: schema: $ref: '#/components/schemas/StartAgentAccountLoginResponse' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Sign a saved account in again, in its own folder tags: - agents /api/v1/agents/accounts/{accountId}/reset-credit: post: operationId: consumeAgentAccountResetCredit parameters: - description: Agent account identifier; device-claude and device-codex are this computer's own logins. in: path name: accountId required: true schema: description: Agent account identifier; device-claude and device-codex are this computer's own logins. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ConsumeAgentAccountResetCreditRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ConsumeAgentAccountResetCreditResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Spend one Codex usage-limit reset of an account tags: - agents /api/v1/agents/accounts/api-keys: post: operationId: addAgentAccountAPIKey requestBody: content: application/json: schema: $ref: '#/components/schemas/ControllersAddAgentAccountAPIKeyRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/AgentAccountsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Add an account that runs the provider's CLI with an API key, once the provider accepts the key tags: - agents /api/v1/agents/accounts/login: post: operationId: startAgentAccountLogin requestBody: content: application/json: schema: $ref: '#/components/schemas/StartAgentAccountLoginRequest' required: true responses: "202": content: application/json: schema: $ref: '#/components/schemas/StartAgentAccountLoginResponse' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Add an account by running the provider's own sign-in, in the background or in a terminal tags: - agents /api/v1/agents/accounts/login/{operationId}/cancel: post: operationId: cancelAgentAccountLogin parameters: - description: Agent account sign-in operation identifier. in: path name: operationId required: true schema: description: Agent account sign-in operation identifier. type: string responses: "204": description: No Content "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Stop a sign-in and remove its unsaved folder tags: - agents /api/v1/agents/accounts/login/{operationId}/verify: post: operationId: verifyAgentAccountLogin parameters: - description: Agent account sign-in operation identifier. in: path name: operationId required: true schema: description: Agent account sign-in operation identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/VerifyAgentAccountLoginResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Check a sign-in and save the account when it finished tags: - agents /api/v1/agents/accounts/sessions/{sessionId}: get: operationId: getSessionAgentAccounts parameters: - description: AO session identifier. in: path name: sessionId required: true schema: description: AO session identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionAgentAccountsResponse' description: OK "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Read the account a session uses per provider tags: - agents put: operationId: switchSessionAgentAccount parameters: - description: AO session identifier. in: path name: sessionId required: true schema: description: AO session identifier. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SwitchSessionAgentAccountRequest' required: true responses: "202": content: application/json: schema: $ref: '#/components/schemas/StartSessionInterfaceTransitionResponse' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Start moving a session to another account through the durable controller handoff tags: - agents /api/v1/agents/accounts/usage: get: operationId: getAgentAccountUsage parameters: - description: Days of usage to sum, today included. Defaults to 30. in: query name: days schema: description: Days of usage to sum, today included. Defaults to 30. maximum: 90 minimum: 1 type: integer responses: "200": content: application/json: schema: $ref: '#/components/schemas/AgentAccountUsageResponse' description: OK "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Sum each account's model usage in AO sessions tags: - agents /api/v1/agents/auth-plans: get: operationId: listAgentAuthPlans responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListAgentAuthPlansResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Return display-safe native authentication plans for supported agents tags: - agents /api/v1/agents/chat/permission-modes: get: operationId: listChatPermissionModes parameters: - description: Comma-separated agent adapter identifiers. in: query name: agents schema: description: Comma-separated agent adapter identifiers. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ChatPermissionModesResponse' description: OK "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List the permission modes each agent can run a chat in, strictest first tags: - conversations /api/v1/agents/chat/unavailable: get: operationId: listUnavailableChatAgents parameters: - description: Comma-separated agent adapter identifiers. in: query name: agents schema: description: Comma-separated agent adapter identifiers. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/UnavailableChatAgentsResponse' description: OK "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List which agents cannot run a chat because an adapter they need is not installed tags: - conversations /api/v1/agents/codex/account-switches: post: operationId: startCodexAccountSwitch requestBody: content: application/json: schema: $ref: '#/components/schemas/StartCodexAccountSwitchRequest' required: true responses: "202": content: application/json: schema: $ref: '#/components/schemas/CodexAccountSwitchResponse' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Start a global AO Codex account switch tags: - agents /api/v1/agents/codex/account-switches/{switchId}: get: operationId: getCodexAccountSwitch parameters: - description: Durable Codex account switch identifier. in: path name: switchId required: true schema: description: Durable Codex account switch identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/CodexAccountSwitchResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Read one durable Codex account switch tags: - agents /api/v1/agents/codex/accounts: get: operationId: getCodexAccounts responses: "200": content: application/json: schema: $ref: '#/components/schemas/CodexAccountsResponse' description: OK "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Return cached AO Codex accounts and active-account state tags: - agents /api/v1/agents/codex/accounts/{accountId}: delete: operationId: deleteCodexAccount parameters: - description: AO Codex account identifier. in: path name: accountId required: true schema: description: AO Codex account identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/CodexAccountsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Delete one inactive signed-out Codex account tags: - agents /api/v1/agents/codex/accounts/{accountId}/login-terminal: post: operationId: openCodexAccountReauthenticationTerminal parameters: - description: AO Codex account identifier. in: path name: accountId required: true schema: description: AO Codex account identifier. type: string responses: "202": content: application/json: schema: $ref: '#/components/schemas/OpenCodexAccountLoginTerminalResponse' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Open native Codex sign-in for one retained account tags: - agents /api/v1/agents/codex/accounts/{accountId}/logout: post: operationId: logoutCodexAccount parameters: - description: AO Codex account identifier. in: path name: accountId required: true schema: description: AO Codex account identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/CodexAccountsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Log out one retained Codex account tags: - agents /api/v1/agents/codex/accounts/{accountId}/reset-credit/consume: post: operationId: consumeCodexAccountResetCredit parameters: - description: AO Codex account identifier. in: path name: accountId required: true schema: description: AO Codex account identifier. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ConsumeCodexAccountResetCreditRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/CodexAccountsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Consume one provider-reported Codex usage-limit reset credit tags: - agents /api/v1/agents/codex/accounts/ensure: post: operationId: ensureCodexAccounts requestBody: content: application/json: schema: $ref: '#/components/schemas/EnsureCodexAccountsRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/CodexAccountsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Discover Codex accounts and ensure authentication, capacity, and optional usage tags: - agents /api/v1/agents/codex/accounts/events: get: operationId: streamCodexAccounts responses: "200": content: text/event-stream: schema: $ref: '#/components/schemas/CodexAccountsResponse' description: OK "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Stream cached and live Codex account state tags: - agents /api/v1/agents/codex/accounts/login-operations/{operationId}/cancel: post: operationId: cancelCodexAccountLogin parameters: - description: In-memory Codex account login operation identifier. in: path name: operationId required: true schema: description: In-memory Codex account login operation identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/CodexAccountLoginResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Cancel one native Codex account login operation tags: - agents /api/v1/agents/codex/accounts/login-operations/{operationId}/verify: post: operationId: verifyCodexAccountLogin parameters: - description: In-memory Codex account login operation identifier. in: path name: operationId required: true schema: description: In-memory Codex account login operation identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/CodexAccountLoginResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Verify one native Codex account login operation tags: - agents /api/v1/agents/codex/accounts/login-terminal: post: operationId: openCodexAccountLoginTerminal responses: "202": content: application/json: schema: $ref: '#/components/schemas/OpenCodexAccountLoginTerminalResponse' description: Accepted "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Open an inline native login terminal for a new AO Codex account tags: - agents /api/v1/agents/install-jobs: get: operationId: listAgentInstallJobs responses: "200": content: application/json: schema: $ref: '#/components/schemas/AgentInstallJobsResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Return the latest durable install job for every agent harness tags: - agents /api/v1/agents/installers: get: operationId: listAgentInstallers responses: "200": content: application/json: schema: $ref: '#/components/schemas/AgentInstallerCatalogResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Resolve the safe installation plan for every supported agent harness tags: - agents /api/v1/agents/provider-keys: get: operationId: listProviderKeys responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListProviderKeysResponse' description: OK "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: List reviewed provider keys with display-safe saved state; values are never returned tags: - agents /api/v1/agents/provider-keys/{name}: delete: operationId: removeProviderKey parameters: - description: Provider environment variable, such as ANTHROPIC_API_KEY. in: path name: name required: true schema: description: Provider environment variable, such as ANTHROPIC_API_KEY. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ProviderKey' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Remove a provider key from AO and from the OS user environment when AO published it tags: - agents put: operationId: saveProviderKey parameters: - description: Provider environment variable, such as ANTHROPIC_API_KEY. in: path name: name required: true schema: description: Provider environment variable, such as ANTHROPIC_API_KEY. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SaveProviderKeyRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ProviderKey' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Save a provider key for AO sessions and set whether it is published to the OS user environment tags: - agents /api/v1/agents/provider-keys/{name}/check: post: operationId: checkProviderKey parameters: - description: Provider environment variable, such as ANTHROPIC_API_KEY. in: path name: name required: true schema: description: Provider environment variable, such as ANTHROPIC_API_KEY. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/CheckProviderKeyRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ProviderKeyCheck' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Ask the provider whether it accepts a key and list the models it offers tags: - agents /api/v1/agents/readiness: get: operationId: getAgentReadiness responses: "200": content: application/json: schema: $ref: '#/components/schemas/AgentReadinessResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Return cached normalized agent readiness without running native checks tags: - agents /api/v1/agents/readiness/ensure: post: operationId: ensureAgentReadiness requestBody: content: application/json: schema: $ref: '#/components/schemas/EnsureAgentReadinessRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/AgentReadinessResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Ensure normalized readiness for selected agent adapters tags: - agents /api/v1/agents/refresh: post: operationId: refreshAgents responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListAgentsResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Refresh the cached local agent adapter catalog tags: - agents /api/v1/attachment-uploads: post: operationId: uploadAttachment requestBody: content: application/octet-stream: {} required: true responses: "201": content: application/json: schema: $ref: '#/components/schemas/AttachmentUploadResponse' description: Created "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Stream a file to disk for a later attachment to name by uploadId tags: - sessions /api/v1/automations: get: operationId: listAutomations parameters: - in: query name: projectId schema: type: string - in: query name: enabled schema: type: - "null" - boolean - in: query name: limit schema: maximum: 100 minimum: 1 type: integer - in: query name: cursor schema: type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListAutomationsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List recurring automations tags: - automations post: operationId: createAutomation requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateAutomationRequest' required: true responses: "201": content: application/json: schema: $ref: '#/components/schemas/AutomationEnvelope' description: Created "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Create a recurring automation tags: - automations /api/v1/automations/{automationId}: delete: operationId: deleteAutomation parameters: - description: Automation identifier. in: path name: automationId required: true schema: description: Automation identifier. type: string responses: "204": description: No Content "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Delete an automation and its run history tags: - automations get: operationId: getAutomation parameters: - description: Automation identifier. in: path name: automationId required: true schema: description: Automation identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/AutomationEnvelope' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Get one recurring automation tags: - automations patch: operationId: updateAutomation parameters: - description: Automation identifier. in: path name: automationId required: true schema: description: Automation identifier. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateAutomationRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/AutomationEnvelope' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Update a recurring automation tags: - automations /api/v1/automations/{automationId}/runs: get: operationId: listAutomationRuns parameters: - description: Automation identifier. in: path name: automationId required: true schema: description: Automation identifier. type: string - in: query name: limit schema: maximum: 100 minimum: 1 type: integer - in: query name: cursor schema: type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListAutomationRunsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List durable automation run history tags: - automations /api/v1/awake: get: operationId: getAwake responses: "200": content: application/json: schema: $ref: '#/components/schemas/AwakeState' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Manage desktop Stay Awake tags: - settings /api/v1/awake/downloads: post: operationId: awakeDownloads requestBody: content: application/json: schema: $ref: '#/components/schemas/AwakeDownloadsRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/AwakeState' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Manage desktop Stay Awake tags: - settings /api/v1/awake/history: delete: operationId: clearAwakeHistory responses: "200": content: application/json: schema: $ref: '#/components/schemas/AwakeState' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Manage desktop Stay Awake tags: - settings /api/v1/awake/low-power/authorize: post: operationId: authorizeAwakeLowPower responses: "200": content: application/json: schema: $ref: '#/components/schemas/AwakeState' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Manage desktop Stay Awake tags: - settings /api/v1/awake/low-power/revoke: post: operationId: revokeAwakeLowPower responses: "200": content: application/json: schema: $ref: '#/components/schemas/AwakeState' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Manage desktop Stay Awake tags: - settings /api/v1/awake/observations: get: operationId: observeAwake responses: "200": content: application/json: schema: $ref: '#/components/schemas/AwakeState' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Manage desktop Stay Awake tags: - settings /api/v1/awake/recover: post: operationId: recoverAwake responses: "200": content: application/json: schema: $ref: '#/components/schemas/AwakeState' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Manage desktop Stay Awake tags: - settings /api/v1/awake/resume: post: operationId: resumeAwake responses: "200": content: application/json: schema: $ref: '#/components/schemas/AwakeState' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Manage desktop Stay Awake tags: - settings /api/v1/awake/rules: put: operationId: setAwakeRules requestBody: content: application/json: schema: $ref: '#/components/schemas/AwakeRulesRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/AwakeState' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Manage desktop Stay Awake tags: - settings /api/v1/awake/sessions: post: operationId: startAwake requestBody: content: application/json: schema: $ref: '#/components/schemas/StartAwakeRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/AwakeState' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Manage desktop Stay Awake tags: - settings /api/v1/awake/sessions/{awakeId}/end: post: operationId: endAwake parameters: - in: path name: awakeId required: true schema: type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/AwakeState' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Manage desktop Stay Awake tags: - settings /api/v1/awake/sessions/{awakeId}/extend: post: operationId: extendAwake parameters: - in: path name: awakeId required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ExtendAwakeRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/AwakeState' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Manage desktop Stay Awake tags: - settings /api/v1/awake/settings: put: operationId: setAwakeSettings requestBody: content: application/json: schema: $ref: '#/components/schemas/AwakeSettings' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/AwakeState' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Manage desktop Stay Awake tags: - settings /api/v1/awake/stop: post: operationId: stopAwake responses: "200": content: application/json: schema: $ref: '#/components/schemas/AwakeState' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Manage desktop Stay Awake tags: - settings /api/v1/browser/chrome: delete: operationId: removeBrowserChrome responses: "200": content: application/json: schema: $ref: '#/components/schemas/ControllersBrowserChromeStatusResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: 'Disable Chrome mode: unregister AO''s native host and remove the installed extension bundle' tags: - browser get: operationId: getBrowserChrome responses: "200": content: application/json: schema: $ref: '#/components/schemas/ControllersBrowserChromeStatusResponse' description: OK "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: 'Report Chrome mode: native host registration, extension bundle, and connection' tags: - browser post: operationId: setupBrowserChrome responses: "200": content: application/json: schema: $ref: '#/components/schemas/ControllersBrowserChromeStatusResponse' description: OK "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: 'Enable Chrome mode: install the AO extension bundle and register AO''s native host with Chrome' tags: - browser /api/v1/browser/commands: post: operationId: executeBrowserCommand parameters: - description: Opaque browser capability injected into the owning AO worker. in: header name: X-AO-Browser-Capability schema: description: Opaque browser capability injected into the owning AO worker. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/BrowserCommandRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/BrowserCommandResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable "504": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Gateway Timeout summary: Execute a target-scoped command in a session's desktop browser tags: - browser /api/v1/browser/status: get: operationId: getBrowserStatus parameters: - description: AO session identifier. in: query name: sessionId schema: description: AO session identifier. type: string - description: Opaque browser capability injected into the owning AO worker. in: header name: X-AO-Browser-Capability schema: description: Opaque browser capability injected into the owning AO worker. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/BrowserStatusResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Check whether the desktop browser runtime is connected for a session tags: - browser /api/v1/computer-use/agent-tools: get: operationId: listComputerUseAgentTools responses: "200": content: application/json: schema: $ref: '#/components/schemas/ComputerUseAgentToolsResponse' description: OK "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List the Cua Driver tools AO offers agents as MCP tools, with their input schemas tags: - computer-use /api/v1/computer-use/call: post: operationId: callComputerUseTool requestBody: content: application/json: schema: $ref: '#/components/schemas/ComputerUseCallRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ComputerUseCallResult' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Run one Cua Driver tool; screenshots are saved to files and returned as paths tags: - computer-use /api/v1/computer-use/daemon/start: post: operationId: startComputerUseDaemon responses: "200": content: application/json: schema: $ref: '#/components/schemas/ComputerUseStatus' description: OK "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Start Cua Driver's background service and wait briefly for it to answer tags: - computer-use /api/v1/computer-use/doctor: get: operationId: getComputerUseDoctor responses: "200": content: application/json: schema: $ref: '#/components/schemas/ComputerUseDoctorResponse' description: OK "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Run Cua Driver's environment report tags: - computer-use /api/v1/computer-use/permissions/grant: post: operationId: grantComputerUsePermissions responses: "202": content: application/json: schema: $ref: '#/components/schemas/ComputerUseStatus' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Ask macOS for Cua Driver's Accessibility and Screen Recording permissions; progress shows in status tags: - computer-use /api/v1/computer-use/status: get: operationId: getComputerUseStatus responses: "200": content: application/json: schema: $ref: '#/components/schemas/ComputerUseStatus' description: OK "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Report whether Cua Driver is installed, its version and update, its background service, and macOS permissions tags: - computer-use /api/v1/conversations/{conversationId}/find: get: operationId: findConversation parameters: - in: path name: conversationId required: true schema: type: string - description: Case-insensitive literal substring in displayed message text (maximum 512 characters). in: query name: query schema: description: Case-insensitive literal substring in displayed message text (maximum 512 characters). type: string - description: Opaque continuation bound to query and transcript revision. in: query name: cursor schema: description: Opaque continuation bound to query and transcript revision. type: string - description: Start at or after this visible message when cursor is absent. in: query name: anchorMessageId schema: description: Start at or after this visible message when cursor is absent. type: string - in: query name: anchorBlock schema: minimum: 0 type: integer - in: query name: anchorOffset schema: minimum: 0 type: integer - description: Fallback position when the anchor message was removed. in: query name: anchorSequence schema: description: Fallback position when the anchor message was removed. format: int64 minimum: 0 type: integer - description: Choose the preceding match if a removed anchor has no following match. in: query name: fallbackToPrevious schema: description: Choose the preceding match if a removed anchor has no following match. type: boolean responses: "200": content: application/json: schema: $ref: '#/components/schemas/ConversationFindResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Find literal occurrences in the active conversation branch tags: - conversations /api/v1/conversations/{conversationId}/find-window: get: operationId: findConversationWindow parameters: - in: path name: conversationId required: true schema: type: string - in: query name: sequence required: true schema: format: int64 minimum: 1 type: integer responses: "200": content: application/json: schema: $ref: '#/components/schemas/ConversationSnapshotResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Load a read-only transcript page around a find result tags: - conversations /api/v1/conversations/search: get: operationId: searchConversations parameters: - description: Words to find in chat messages, matched by word form. in: query name: query required: true schema: description: Words to find in chat messages, matched by word form. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ConversationSearchResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Search visible chat messages across conversations tags: - conversations /api/v1/cues/{cueId}: delete: operationId: deleteCue parameters: - description: Cue identifier. in: path name: cueId required: true schema: description: Cue identifier. type: string responses: "204": description: No Content "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Delete a cue tags: - cues get: operationId: getCue parameters: - description: Cue identifier. in: path name: cueId required: true schema: description: Cue identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/CueEnvelope' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Get a cue tags: - cues patch: operationId: updateCue parameters: - description: Cue identifier. in: path name: cueId required: true schema: description: Cue identifier. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/CueDefinitionRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/CueEnvelope' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "413": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Request Entity Too Large "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Replace a cue's definition tags: - cues /api/v1/cues/{cueId}/invoke: post: operationId: invokeCue parameters: - description: Cue identifier. in: path name: cueId required: true schema: description: Cue identifier. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/InvokeCueRequest' responses: "200": content: application/json: schema: $ref: '#/components/schemas/InvokeCueResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "413": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Request Entity Too Large "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Dispatch an agent cue to a session or send a command cue to a scoped shell terminal tags: - cues /api/v1/desktop/sessions/{sessionId}/artifacts: get: operationId: getDesktopSessionArtifacts parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/DesktopArtifactLocationResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Resolve a session artifact directory for the loopback desktop supervisor tags: - sessions /api/v1/desktop/sessions/{sessionId}/workspace: get: operationId: getDesktopSessionWorkspace parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/DesktopWorkspaceLocationResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Resolve a session workspace for the loopback desktop supervisor tags: - sessions /api/v1/dev/import-projects: post: operationId: runDevImportProjects requestBody: content: application/json: schema: $ref: '#/components/schemas/DevImportProjectsRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/DevImportProjectsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Run the developer project-registry import through the daemon store tags: - dev /api/v1/devices: get: operationId: getDeviceStatus responses: "200": content: application/json: schema: $ref: '#/components/schemas/DeviceStatusResponse' description: OK "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: 'Report device support: opt-in, platform availability, simulators and emulators, and leases' tags: - devices /api/v1/devices/availability: put: operationId: setDeviceAvailability requestBody: content: application/json: schema: $ref: '#/components/schemas/DeviceAvailabilityRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/DeviceAvailabilityResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Turn devices on or off for every client; the desktop app sends its Developer mode, and devices start off on every daemon boot tags: - devices /api/v1/devices/setup: post: operationId: setupDevices responses: "202": content: application/json: schema: $ref: '#/components/schemas/DeviceStatusResponse' description: Accepted "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: 'Turn device support on: install the pinned device tools and start the device hub' tags: - devices /api/v1/endpoints: get: operationId: getEndpoints responses: "200": content: application/json: schema: $ref: '#/components/schemas/EndpointsResponse' description: OK "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List the ways this daemon can currently be reached tags: - identity /api/v1/events: get: operationId: streamEvents parameters: - description: Replay events after a non-negative sequence, or use latest to start at the current head. Last-Event-ID overrides latest on reconnect. in: query name: after schema: description: Replay events after a non-negative sequence, or use latest to start at the current head. Last-Event-ID overrides latest on reconnect. type: - "null" - string responses: "200": content: text/event-stream: schema: type: string description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Stream CDC events with durable replay tags: - events /api/v1/fs/dirs: get: operationId: listDirs parameters: - description: Absolute directory on the daemon host to list. When omitted, the daemon user's home directory. in: query name: path schema: description: Absolute directory on the daemon host to list. When omitted, the daemon user's home directory. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListDirsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: List the subdirectories of a directory on the daemon host tags: - fs /api/v1/github/pat: delete: operationId: deleteGitHubPAT responses: "200": content: application/json: schema: additionalProperties: type: string type: object description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Remove the stored GitHub personal access token tags: - github put: operationId: putGitHubPAT requestBody: content: application/json: schema: $ref: '#/components/schemas/PutGitHubPATRequest' required: true responses: "200": content: application/json: schema: additionalProperties: type: string type: object description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Store a GitHub personal access token locally tags: - github /api/v1/github/repos: get: operationId: listGitHubRepos responses: "200": content: application/json: schema: additionalProperties: items: $ref: '#/components/schemas/GitHubRepo' type: array type: object description: OK "401": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unauthorized "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: List repositories accessible with the stored GitHub token tags: - github /api/v1/github/status: get: operationId: getGitHubStatus responses: "200": content: application/json: schema: $ref: '#/components/schemas/GitHubStatusResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Report whether a GitHub token is stored and the GitHub username AO is signed in as tags: - github /api/v1/identity: get: operationId: getIdentity responses: "200": content: application/json: schema: $ref: '#/components/schemas/IdentityResponse' description: OK "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Identify the daemon so a client can confirm which machine answered tags: - identity /api/v1/import: get: operationId: getImportStatus responses: "200": content: application/json: schema: $ref: '#/components/schemas/ImportStatusResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Check whether a legacy AO install is available to import tags: - import post: operationId: runImport responses: "200": content: application/json: schema: $ref: '#/components/schemas/ImportRunResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Run the legacy AO project import through the daemon store tags: - import /api/v1/imports/github-availability: get: operationId: checkImportGitHubAvailability parameters: - description: GitHub user or organization the repository would be created under. in: query name: owner schema: description: GitHub user or organization the repository would be created under. type: string - description: Repository name to check. in: query name: name schema: description: Repository name to check. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ImporterGitHubAvailabilityResult' description: OK "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Check whether a GitHub repository name is free to create for a project import tags: - import /api/v1/imports/github-owners: get: operationId: listImportGitHubOwners responses: "200": content: application/json: schema: $ref: '#/components/schemas/ImporterGitHubOwnersResult' description: OK "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List the GitHub accounts gh on this machine can create a project's repository under tags: - import /api/v1/imports/prepare-git: post: operationId: prepareImportGit requestBody: content: application/json: schema: $ref: '#/components/schemas/GitPreparationInput' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/GitPreparationResult' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Run approved Git preparation actions for project import onboarding tags: - import /api/v1/imports/validate: post: operationId: validateImport requestBody: content: application/json: schema: $ref: '#/components/schemas/ImportValidationInput' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ImportValidationResult' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Validate a selected folder for project import onboarding tags: - import /api/v1/kept-artifacts: get: operationId: listKeptArtifacts responses: "200": content: application/json: schema: $ref: '#/components/schemas/ControllersListKeptArtifactsResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: 'List the artifacts no session or project lists: those of sessions deleted with their artifacts kept, and of sessions in removed projects' tags: - sessions /api/v1/link-preview: get: operationId: getLinkPreview parameters: - description: Absolute http(s) URL of the page to preview. in: query name: url schema: description: Absolute http(s) URL of the page to preview. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/LinkPreviewResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "502": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Gateway summary: Fetch link-preview metadata (Open Graph) for an external URL tags: - link-preview /api/v1/mobile/browser-control: post: operationId: setMobileBrowserRemoteAccess requestBody: content: application/json: schema: $ref: '#/components/schemas/SetBrowserRemoteAccessRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/MobileStatusResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Allow or deny paired-device access to the desktop browser tags: - mobile /api/v1/mobile/devices: get: operationId: listMobileDevices responses: "200": content: application/json: schema: $ref: '#/components/schemas/MobileDevicesResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: List the devices that can reach this host, with their live status tags: - mobile /api/v1/mobile/devices/{id}: delete: operationId: removeMobileDevice parameters: - description: The row's id from the device list. in: path name: id required: true schema: description: The row's id from the device list. type: string responses: "204": description: No Content "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: 'Remove a device: revoke its token and stop its notifications' tags: - mobile /api/v1/mobile/disable: post: operationId: disableMobile responses: "200": content: application/json: schema: $ref: '#/components/schemas/MobileStatusResponse' description: OK "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Disable the Connect Mobile LAN bridge tags: - mobile /api/v1/mobile/enable: post: operationId: enableMobile responses: "200": content: application/json: schema: $ref: '#/components/schemas/MobileStatusResponse' description: OK "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Enable the Connect Mobile LAN bridge and issue a fresh password tags: - mobile /api/v1/mobile/enable-lan-only: post: operationId: enableMobileLANOnly responses: "200": content: application/json: schema: $ref: '#/components/schemas/MobileStatusResponse' description: OK "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Enable the authenticated LAN bridge without a managed public tunnel tags: - mobile /api/v1/mobile/enable-tunnel-only: post: operationId: enableMobileTunnelOnly responses: "200": content: application/json: schema: $ref: '#/components/schemas/MobileStatusResponse' description: OK "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: Enable the authenticated listener on loopback for a managed tunnel tags: - mobile /api/v1/mobile/keep-awake: post: operationId: setMobileKeepAwake requestBody: content: application/json: schema: $ref: '#/components/schemas/ControllersSetKeepAwakeRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/MobileStatusResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Keep this Mac from idle-sleeping while Connect Mobile is on tags: - mobile /api/v1/mobile/pairing-code: post: operationId: createMobilePairingCode responses: "200": content: application/json: schema: $ref: '#/components/schemas/ControllersPairingCodeResponse' description: OK "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Make a one-time code a new device exchanges for its own token tags: - mobile /api/v1/mobile/regenerate: post: operationId: regenerateMobile responses: "200": content: application/json: schema: $ref: '#/components/schemas/MobileStatusResponse' description: OK "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: 'Revoke every device: rotate the pairing password, remove all device tokens and unlink the account' tags: - mobile /api/v1/mobile/remote-access: post: operationId: startMobileRemoteAccess responses: "200": content: application/json: schema: $ref: '#/components/schemas/MobileStatusResponse' description: OK "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Look for a connector again and start it, without rotating the password tags: - mobile /api/v1/mobile/require-device-credentials: post: operationId: setMobileRequireDeviceCredentials requestBody: content: application/json: schema: $ref: '#/components/schemas/ControllersSetRequireDeviceCredentialsRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/MobileStatusResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Refuse or accept the pairing password on the remote listener tags: - mobile /api/v1/mobile/secure-pairing: post: operationId: setMobileSecurePairing requestBody: content: application/json: schema: $ref: '#/components/schemas/ControllersSetSecurePairingRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/MobileStatusResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Turn TLS-over-Tailscale secure pairing on or off tags: - mobile /api/v1/mobile/status: get: operationId: getMobileStatus responses: "200": content: application/json: schema: $ref: '#/components/schemas/MobileStatusResponse' description: OK "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden summary: Check whether Connect Mobile's LAN bridge is enabled tags: - mobile /api/v1/notifications: delete: operationId: clearNotifications responses: "200": content: application/json: schema: $ref: '#/components/schemas/ClearNotificationsResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Clear all notifications tags: - notifications get: operationId: listNotifications parameters: - description: Notification filter. Defaults to unread (unseen); unresolved returns notifications whose underlying issue is still open; all includes read history. in: query name: status schema: description: Notification filter. Defaults to unread (unseen); unresolved returns notifications whose underlying issue is still open; all includes read history. enum: - unread - all - unresolved type: string - description: Maximum notifications to return. Defaults to 100. in: query name: limit schema: description: Maximum notifications to return. Defaults to 100. maximum: 100 minimum: 1 type: integer - description: Opaque cursor returned by the previous page. in: query name: cursor schema: description: Opaque cursor returned by the previous page. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListNotificationsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List notification history tags: - notifications /api/v1/notifications/{id}: delete: operationId: deleteNotification parameters: - description: Notification identifier. in: path name: id required: true schema: description: Notification identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/NotificationEnvelope' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Delete a notification tags: - notifications patch: operationId: markNotificationRead parameters: - description: Notification identifier. in: path name: id required: true schema: description: Notification identifier. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/MarkNotificationReadRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/NotificationEnvelope' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Mark a notification read tags: - notifications /api/v1/notifications/read-all: post: operationId: markAllNotificationsRead requestBody: content: application/json: schema: $ref: '#/components/schemas/MarkAllNotificationsReadRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/MarkAllNotificationsReadResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Mark notifications read tags: - notifications /api/v1/notifications/stream: get: operationId: streamNotifications parameters: - description: Optional project id filter for live notifications. in: query name: projectId schema: description: Optional project id filter for live notifications. type: string responses: "200": content: text/event-stream: schema: type: string description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Stream notification changes tags: - notifications /api/v1/orchestrators: get: operationId: listOrchestrators responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListSessionsResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List orchestrator sessions across projects tags: - sessions post: operationId: spawnOrchestrator requestBody: content: application/json: schema: $ref: '#/components/schemas/SpawnOrchestratorRequest' required: true responses: "201": content: application/json: schema: $ref: '#/components/schemas/SpawnOrchestratorResponse' description: Created "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Spawn an orchestrator session tags: - sessions /api/v1/orchestrators/{id}: get: operationId: getOrchestrator parameters: - description: Orchestrator session identifier, e.g. project-orchestrator. in: path name: id required: true schema: description: Orchestrator session identifier, e.g. project-orchestrator. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Fetch one orchestrator session tags: - sessions /api/v1/orchestrators/delegate: post: operationId: delegateTask requestBody: content: application/json: schema: $ref: '#/components/schemas/DelegateTaskRequest' required: true responses: "202": content: application/json: schema: $ref: '#/components/schemas/DelegateTaskResponse' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Start a worker task and refine its title in the background tags: - sessions /api/v1/pr-preview: get: operationId: getPRPreview parameters: - description: A github.com pull request URL. in: query name: url schema: description: A github.com pull request URL. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/PRPreviewResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "502": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Gateway summary: Read the state and summary of a GitHub pull request a chat links to tags: - link-preview /api/v1/projects: get: operationId: listProjects responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListProjectsResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: List all registered projects (active + degraded) tags: - projects post: operationId: addProject requestBody: content: application/json: schema: $ref: '#/components/schemas/AddProjectInput' required: true responses: "201": content: application/json: schema: $ref: '#/components/schemas/ProjectResponse' description: Created "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Register a new project from a git repository path tags: - projects /api/v1/projects/{id}: delete: operationId: removeProject parameters: - description: Project identifier (registry key). in: path name: id required: true schema: description: Project identifier (registry key). type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/RemoveProjectResult' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Remove a project; stops sessions, cleans workspaces, unregisters tags: - projects get: operationId: getProject parameters: - description: Project identifier (registry key). in: path name: id required: true schema: description: Project identifier (registry key). type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ProjectGetResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Fetch one project; discriminates ok vs degraded tags: - projects put: operationId: updateProjectSettings parameters: - description: Project identifier (registry key). in: path name: id required: true schema: description: Project identifier (registry key). type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateProjectSettingsInput' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ProjectResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Atomically replace a project's display name and config tags: - projects /api/v1/projects/{id}/config: put: operationId: setProjectConfig parameters: - description: Project identifier (registry key). in: path name: id required: true schema: description: Project identifier (registry key). type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SetProjectConfigInput' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ProjectResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Replace a project's per-project config tags: - projects /api/v1/projects/{id}/permissions: delete: operationId: forgetProjectPermissions parameters: - description: Project identifier (registry key). in: path name: id required: true schema: description: Project identifier (registry key). type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ProjectResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Forget remembered project permissions tags: - projects patch: operationId: setProjectPermissions parameters: - description: Project identifier (registry key). in: path name: id required: true schema: description: Project identifier (registry key). type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SetProjectPermissionsInput' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ProjectResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Remember project permissions for future sessions tags: - projects /api/v1/projects/{id}/tasks/prepare: post: operationId: prepareTask parameters: - description: Project identifier (registry key). in: path name: id required: true schema: description: Project identifier (registry key). type: string responses: "202": content: application/json: schema: $ref: '#/components/schemas/PrepareTaskResponse' description: Accepted "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Speculatively create the next task's worktree tags: - projects /api/v1/projects/{projectId}/cues: get: operationId: listProjectCues parameters: - description: Project whose cues are listed or extended. in: path name: projectId required: true schema: description: Project whose cues are listed or extended. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListCuesResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List a project's cues in name order tags: - cues post: operationId: createCue parameters: - description: Project whose cues are listed or extended. in: path name: projectId required: true schema: description: Project whose cues are listed or extended. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/CueDefinitionRequest' required: true responses: "201": content: application/json: schema: $ref: '#/components/schemas/CueEnvelope' description: Created "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "413": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Request Entity Too Large "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Create a cue for a project tags: - cues /api/v1/projects/clone: post: operationId: cloneProject requestBody: content: application/json: schema: $ref: '#/components/schemas/CloneProjectInput' required: true responses: "201": content: application/json: schema: $ref: '#/components/schemas/ProjectResponse' description: Created "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Clone and register a project from a git repository URL tags: - projects /api/v1/projects/clone/check: post: operationId: checkCloneDestination requestBody: content: application/json: schema: $ref: '#/components/schemas/CloneProjectInput' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/CloneDestination' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Check a clone destination and normalize its repository URL without network access tags: - projects /api/v1/projects/clone/cleanup: post: operationId: cleanupPreparedClone requestBody: content: application/json: schema: $ref: '#/components/schemas/ProjectClonePreparationCleanupInput' required: true responses: "204": description: No Content "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Remove an abandoned clone created for project preparation tags: - projects /api/v1/projects/clone/prepare: post: operationId: prepareCloneProject requestBody: content: application/json: schema: $ref: '#/components/schemas/CloneProjectInput' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ClonePreparationResult' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Clone a project without registering it so Git setup can be completed tags: - projects /api/v1/projects/clone/prepare/stream: post: operationId: prepareCloneProjectStream requestBody: content: application/json: schema: $ref: '#/components/schemas/CloneProjectInput' required: true responses: "200": content: text/event-stream: schema: $ref: '#/components/schemas/ClonePrepareStreamEvent' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Clone a project without registering it, streaming each git step as a server-sent event tags: - projects /api/v1/projects/initialize: post: operationId: initializeProjectRepository requestBody: content: application/json: schema: $ref: '#/components/schemas/InitializeRepositoryInput' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/InitializeRepositoryResult' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Initialize a selected folder as a Git repository with an initial commit tags: - projects /api/v1/prs/{id}/attachment-access: get: operationId: getPRAttachmentAccess parameters: - description: PR number. in: path name: id required: true schema: description: PR number. type: string - description: The pull request's URL. in: query name: prUrl required: true schema: description: The pull request's URL. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/PRAttachmentAccessResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found summary: Whether files can be attached to a pull request's comments, and where they would be stored tags: - prs /api/v1/prs/{id}/comments: post: operationId: postPRComment parameters: - description: PR number. in: path name: id required: true schema: description: PR number. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/PostPRCommentRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/PostPRCommentResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Post a pull request conversation comment or review-thread reply tags: - prs /api/v1/prs/{id}/dequeue: post: operationId: dequeuePR parameters: - description: PR number. in: path name: id required: true schema: description: PR number. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/DequeuePRRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/DequeuePRResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Remove a pull request from its base branch's merge queue tags: - prs /api/v1/prs/{id}/details: post: operationId: loadPRDetails parameters: - description: PR number. in: path name: id required: true schema: description: PR number. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/LoadPRDetailsRequest' required: true responses: "204": description: No Content "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Read a tracked pull request's details from its provider when none are stored tags: - prs /api/v1/prs/{id}/merge: post: operationId: mergePR parameters: - description: PR number. in: path name: id required: true schema: description: PR number. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/MergePRRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/MergePRResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Merge a pull request (squash, merge commit, or rebase) tags: - prs /api/v1/prs/{id}/resolve-comments: post: operationId: resolveComments parameters: - description: PR number. in: path name: id required: true schema: description: PR number. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ResolveCommentsResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Resolve review threads on a pull request tags: - prs /api/v1/prs/{id}/stack: get: operationId: getPRStack parameters: - description: PR number. in: path name: id required: true schema: description: PR number. type: string - description: The pull request's URL. in: query name: prUrl required: true schema: description: The pull request's URL. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/GetPRStackResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Read a pull request's stack, or the open pull request it could be stacked on tags: - prs post: operationId: addPRToStack parameters: - description: PR number. in: path name: id required: true schema: description: PR number. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/AddPRToStackRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/GetPRStackResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Stack a pull request on the open pull request it is based on tags: - prs /api/v1/prs/{id}/stack/merge: post: operationId: mergePRStack parameters: - description: PR number. in: path name: id required: true schema: description: PR number. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/MergePRStackRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/MergePRStackResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Merge a pull request and the unmerged layers below it, all or nothing tags: - prs /api/v1/prs/{id}/state: post: operationId: changePRState parameters: - description: PR number. in: path name: id required: true schema: description: PR number. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ChangePRStateRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ChangePRStateResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Close, reopen, mark ready, or convert a pull request to draft tags: - prs /api/v1/push/devices: post: operationId: registerPushDevice requestBody: content: application/json: schema: $ref: '#/components/schemas/RegisterPushDeviceRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/PushDeviceEnvelope' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Register (upsert) a phone's Expo push token tags: - push /api/v1/push/devices/{token}: delete: operationId: unregisterPushDevice parameters: - description: Expo push token (URL-encoded) identifying the device. in: path name: token required: true schema: description: Expo push token (URL-encoded) identifying the device. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/UnregisterPushDeviceResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Unregister a phone's Expo push token, leaving it paired tags: - push /api/v1/push/pairings/{id}: delete: operationId: unpairPushDevice parameters: - description: The phone's install id, or its push token for older builds. in: path name: id required: true schema: description: The phone's install id, or its push token for older builds. type: string responses: "204": description: No Content "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Unpair this phone from the daemon, removing it from the roster tags: - push /api/v1/remote-host/account-token: post: operationId: issueRemoteHostAccountToken responses: "200": content: application/json: schema: $ref: '#/components/schemas/ControllersRemoteHostAccountTokenResponse' description: OK "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden summary: Issue a host-scoped account credential using the pairing password or a device token tags: - mobile /api/v1/remote-host/devices: post: operationId: pairRemoteHostDevice requestBody: content: application/json: schema: $ref: '#/components/schemas/ControllersPairDeviceRequest' responses: "200": content: application/json: schema: $ref: '#/components/schemas/ControllersPairDeviceResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "401": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unauthorized "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Exchange a one-time pairing code, or the pairing password, for this device's own token tags: - mobile /api/v1/remote-host/update: get: operationId: getRemoteHostUpdate responses: "200": content: application/json: schema: $ref: '#/components/schemas/RemoteHostUpdateResponse' description: OK "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Report this host's version and the state of its last self-hosted update tags: - identity post: operationId: startRemoteHostUpdate requestBody: content: application/json: schema: $ref: '#/components/schemas/ControllersRemoteHostUpdateRequest' responses: "202": content: application/json: schema: $ref: '#/components/schemas/RemoteHostUpdateResponse' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Install the newest release of this self-hosted host's channel and restart it tags: - identity /api/v1/remote-host/update/check: post: operationId: checkRemoteHostUpdate responses: "200": content: application/json: schema: $ref: '#/components/schemas/ControllersRemoteHostUpdateCheckResponse' description: OK "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Ask a host that runs the desktop app which version it installs next tags: - identity /api/v1/reports: get: operationId: listReports parameters: - description: Stable project identifier. in: query name: projectId required: true schema: description: Stable project identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListReportsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List persisted project reports without changing delivery state tags: - reports post: operationId: createReport requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateReportRequest' required: true responses: "201": content: application/json: schema: $ref: '#/components/schemas/CreateReportResponse' description: Created "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Persist a worker report for later orchestrator delivery tags: - reports /api/v1/reviews/{reviewId}/conversation: get: operationId: getReviewerConversation parameters: - description: Reviewer conversation identifier. in: path name: reviewId required: true schema: description: Reviewer conversation identifier. type: string - description: Read items older than this conversation sequence. Omit for the newest page. in: query name: beforeSequence schema: description: Read items older than this conversation sequence. Omit for the newest page. minimum: 1 type: - "null" - integer - description: Maximum messages to return; tool activity between them comes along without counting. Defaults to 200. in: query name: limit schema: description: Maximum messages to return; tool activity between them comes along without counting. Defaults to 200. maximum: 500 minimum: 1 type: - "null" - integer responses: "200": content: application/json: schema: $ref: '#/components/schemas/ConversationSnapshotResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Read a reviewer's durable Chat conversation tags: - conversations /api/v1/reviews/{reviewId}/conversation/approvals/{requestId}/resolve: post: operationId: resolveReviewerConversationApproval parameters: - description: Reviewer conversation identifier. in: path name: reviewId required: true schema: description: Reviewer conversation identifier. type: string - description: Provider approval request identifier. Zero is a legitimate value. in: path name: requestId required: true schema: description: Provider approval request identifier. Zero is a legitimate value. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ResolveConversationApprovalRequest' required: true responses: "204": description: No Content "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Answer a pending approval in a reviewer conversation tags: - conversations /api/v1/reviews/{reviewId}/conversation/inputs/{requestId}/resolve: post: operationId: resolveReviewerConversationInput parameters: - description: Reviewer conversation identifier. in: path name: reviewId required: true schema: description: Reviewer conversation identifier. type: string - description: Provider approval request identifier. Zero is a legitimate value. in: path name: requestId required: true schema: description: Provider approval request identifier. Zero is a legitimate value. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ResolveConversationInputRequest' required: true responses: "204": description: No Content "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Answer a structured reviewer input request tags: - conversations /api/v1/reviews/{reviewId}/conversation/interrupt: post: operationId: interruptReviewerConversationTurn parameters: - description: Reviewer conversation identifier. in: path name: reviewId required: true schema: description: Reviewer conversation identifier. type: string responses: "204": description: No Content "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Cancel the in-flight reviewer turn tags: - conversations /api/v1/reviews/{reviewId}/conversation/messages: post: operationId: sendReviewerConversationMessage parameters: - description: Reviewer conversation identifier. in: path name: reviewId required: true schema: description: Reviewer conversation identifier. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SendConversationMessageRequest' required: true responses: "202": content: application/json: schema: $ref: '#/components/schemas/SendConversationMessageResponse' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Send a message to a Chat reviewer tags: - conversations /api/v1/reviews/{reviewId}/conversation/models: get: operationId: listReviewerConversationModels parameters: - description: Reviewer conversation identifier. in: path name: reviewId required: true schema: description: Reviewer conversation identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ConversationModelsResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List the models offered for a Chat reviewer tags: - conversations /api/v1/reviews/{reviewId}/conversation/settings: patch: operationId: setReviewerConversationSettings parameters: - description: Reviewer conversation identifier. in: path name: reviewId required: true schema: description: Reviewer conversation identifier. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ConversationTurnSettingsPayload' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ConversationTurnSettingsPayload' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Select model and effort for the reviewer's next Chat turn tags: - conversations /api/v1/reviews/{reviewSessionID}/activity: post: operationId: setReviewActivity parameters: - description: Reviewer session identifier, currently the per-harness review row id. in: path name: reviewSessionID required: true schema: description: Reviewer session identifier, currently the per-harness review row id. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SetReviewActivityRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SetReviewActivityResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Report a reviewer-owned hook signal tags: - reviews /api/v1/search/index-status: get: operationId: getSessionSearchIndexStatus responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionSearchIndexStatusResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Report what the session search index covers tags: - sessions /api/v1/search/reindex: post: operationId: reindexSessionSearch responses: "202": content: application/json: schema: $ref: '#/components/schemas/SessionSearchIndexStatusResponse' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Empty the session search index and rebuild it from scratch in the background tags: - sessions /api/v1/search/sessions: get: operationId: searchSessions parameters: - description: Words to search for. Leave it out to browse by filters or sort=recent. Words may carry operators such as harness:, project:, status:, before:, after:, path:, !exclude, "exact phrase", 'exact, ^prefix. in: query name: q schema: description: Words to search for. Leave it out to browse by filters or sort=recent. Words may carry operators such as harness:, project:, status:, before:, after:, path:, !exclude, "exact phrase", 'exact, ^prefix. type: string - description: 'Restrict results to one project. Equivalent to project: in q.' in: query name: projectId schema: description: 'Restrict results to one project. Equivalent to project: in q.' type: string - description: Restrict results to one agent harness, such as claude-code or codex. in: query name: harness schema: description: Restrict results to one agent harness, such as claude-code or codex. type: string - description: Restrict to sessions that touched a path containing this text. in: query name: path schema: description: Restrict to sessions that touched a path containing this text. type: string - description: Restrict to one session lifecycle state. in: query name: status schema: description: Restrict to one session lifecycle state. enum: - killed - live - hibernated type: string - description: Earliest result time, as an RFC 3339 date or date-time. in: query name: from schema: description: Earliest result time, as an RFC 3339 date or date-time. type: string - description: Latest result time, as an RFC 3339 date or date-time. in: query name: to schema: description: Latest result time, as an RFC 3339 date or date-time. type: string - description: Order by relevance (while typing) or recency (while browsing). Defaults to relevance, or to recent for a filter-only query. in: query name: sort schema: description: Order by relevance (while typing) or recency (while browsing). Defaults to relevance, or to recent for a filter-only query. enum: - relevance - recent type: string - description: One result per session at its best match, with sessionMatches counting the rest (session, the default), or one result per matching message (message). in: query name: group schema: description: One result per session at its best match, with sessionMatches counting the rest (session, the default), or one result per matching message (message). enum: - session - message type: string - description: Page size. Defaults to 20. in: query name: limit schema: description: Page size. Defaults to 20. maximum: 100 minimum: 1 type: integer - description: Page offset. in: query name: offset schema: description: Page offset. minimum: 0 type: integer responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionSearchResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Search past sessions by title, message text, tool output, and touched file paths tags: - sessions /api/v1/session-import: get: operationId: scanSessionImport responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionImportPreview' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Preview readable local agent histories from Git folders and Standalone tags: - import post: operationId: importSelectedSessions requestBody: content: application/json: schema: $ref: '#/components/schemas/SessionImportRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionImportResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Import selected histories as idle AO sessions without starting providers tags: - import /api/v1/sessions: get: operationId: listSessions parameters: - description: Project id filter. in: query name: project schema: description: Project id filter. type: string - description: When true, return non-terminated sessions; when false, return terminated sessions. in: query name: active schema: description: When true, return non-terminated sessions; when false, return terminated sessions. type: - "null" - boolean - description: When true, return only orchestrator sessions. in: query name: orchestratorOnly schema: description: When true, return only orchestrator sessions. type: - "null" - boolean - description: When true, return only fresh non-terminated sessions. in: query name: fresh schema: description: When true, return only fresh non-terminated sessions. type: - "null" - boolean - description: Session kind filter. worker keeps every session that is not an orchestrator. in: query name: kind schema: description: Session kind filter. worker keeps every session that is not an orchestrator. enum: - worker - orchestrator type: string - description: Page size. When set, sessions are ordered pinned first, then most recently updated, and nextCursor resumes the list. When omitted, every match is returned. in: query name: limit schema: description: Page size. When set, sessions are ordered pinned first, then most recently updated, and nextCursor resumes the list. When omitted, every match is returned. maximum: 200 minimum: 1 type: integer - description: Opaque cursor returned by the previous page. Requires limit. in: query name: cursor schema: description: Opaque cursor returned by the previous page. Requires limit. type: string - description: Keep sessions owning a pull request in this state. The list is then ordered by when each session's newest such PR reached the state, and the response echoes prState and carries total. in: query name: prState schema: description: Keep sessions owning a pull request in this state. The list is then ordered by when each session's newest such PR reached the state, and the response echoes prState and carries total. enum: - open - draft - merged - closed type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListSessionsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: List sessions tags: - sessions post: operationId: spawnSession requestBody: content: application/json: schema: $ref: '#/components/schemas/SpawnSessionRequest' required: true responses: "201": content: application/json: schema: $ref: '#/components/schemas/SpawnSessionResponse' description: Created "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Spawn a new agent session tags: - sessions /api/v1/sessions/{sessionId}: delete: operationId: deleteSession parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: When true, a worktree that is still on disk is cleaned up first, the way session cleanup does it; a dirty or locked worktree is never forced and refuses the delete. in: query name: cleanup schema: description: When true, a worktree that is still on disk is cleaned up first, the way session cleanup does it; a dirty or locked worktree is never forced and refuses the delete. type: boolean - description: When true, the session's artifact files are kept, view only, and listed by GET /api/v1/kept-artifacts until they are deleted one by one. Otherwise they are deleted with the session. in: query name: keepArtifacts schema: description: When true, the session's artifact files are kept, view only, and listed by GET /api/v1/kept-artifacts until they are deleted one by one. Otherwise they are deleted with the session. type: boolean responses: "200": content: application/json: schema: $ref: '#/components/schemas/DeleteSessionResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Permanently delete a terminated session whose workspace is released tags: - sessions get: operationId: getSession parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Fetch one session tags: - sessions patch: operationId: renameSession parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/RenameSessionRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/RenameSessionResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Rename a session display name tags: - sessions /api/v1/sessions/{sessionId}/activity: post: operationId: setSessionActivity parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SetActivityRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SetActivityResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Report an agent activity-state signal for a session tags: - sessions /api/v1/sessions/{sessionId}/activity/codewhale: post: operationId: setCodewhaleSessionActivity parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/CodewhaleLifecycleWebhookRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SetActivityResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Record a Codewhale lifecycle outbox event tags: - sessions /api/v1/sessions/{sessionId}/agent-browser/*: get: operationId: getSessionAgentBrowser parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: text/html: schema: type: string description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "502": content: text/plain: schema: type: string description: Bad Gateway summary: Proxy the host's agent browser stream viewer (page, stream socket, downloads) tags: - sessions head: operationId: headSessionAgentBrowser parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": description: OK "404": description: Not Found "502": description: Bad Gateway summary: Read headers from the host's agent browser stream viewer tags: - sessions post: operationId: postSessionAgentBrowser parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: type: string description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "502": content: text/plain: schema: type: string description: Bad Gateway summary: Upload a file into the host's agent browser tags: - sessions /api/v1/sessions/{sessionId}/artifact-events: get: operationId: streamSessionArtifactChanges parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: text/event-stream: schema: type: string description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Stream changes to the files in a session's artifact directory tags: - sessions /api/v1/sessions/{sessionId}/artifact-files: delete: operationId: deleteSessionArtifactFile parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Artifact-directory-relative file path, as listed in the session's artifactFiles. in: query name: path schema: description: Artifact-directory-relative file path, as listed in the session's artifactFiles. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Delete one file from a session's artifact directory and return the session with its refreshed artifact list tags: - sessions put: operationId: updateSessionArtifactFile parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateArtifactFileRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ArtifactFileResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Replace the text content of one file in a session's artifact directory tags: - sessions /api/v1/sessions/{sessionId}/artifact-files/*: get: operationId: getSessionArtifactFile parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: 'Set to 1 to read the page as the agent wrote it: the stored bytes as text/plain, without the theme bootstrap.' in: query name: source schema: description: 'Set to 1 to read the page as the agent wrote it: the stored bytes as text/plain, without the theme bootstrap.' enum: - "1" type: - "null" - string responses: "200": content: text/html: schema: type: string description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Serve a session artifact file sandboxed, an HTML page with the render theme bootstrap tags: - sessions /api/v1/sessions/{sessionId}/artifact-registrations: post: operationId: registerSessionArtifacts parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/RegisterArtifactsRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/RegisterArtifactsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Register files in the session's artifact directory as its deliverables tags: - sessions /api/v1/sessions/{sessionId}/artifact-versions: get: operationId: listSessionArtifactVersions parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Artifact-directory-relative file path, as listed in the session's artifactFiles. in: query name: path schema: description: Artifact-directory-relative file path, as listed in the session's artifactFiles. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListArtifactVersionsResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List the saved versions of one file in a session's artifact directory tags: - sessions /api/v1/sessions/{sessionId}/artifact-versions/{version}: get: operationId: getSessionArtifactVersion parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Version number within the file's history. in: path name: version required: true schema: description: Version number within the file's history. format: int64 type: integer - description: Artifact-directory-relative file path, as listed in the session's artifactFiles. in: query name: path schema: description: Artifact-directory-relative file path, as listed in the session's artifactFiles. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ArtifactVersionResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Read one saved version of an artifact file tags: - sessions /api/v1/sessions/{sessionId}/artifact-versions/restore: post: operationId: restoreSessionArtifactVersion parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/RestoreArtifactVersionRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ArtifactFileResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Restore an artifact file to an earlier saved version tags: - sessions /api/v1/sessions/{sessionId}/artifact-versions/sync: post: operationId: syncSessionArtifactVersions parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SyncArtifactVersionsRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListArtifactVersionsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Record an artifact file's unrecorded edit, then list its saved versions tags: - sessions /api/v1/sessions/{sessionId}/attachments: post: operationId: stageSessionAttachments parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/StageSessionAttachmentsRequest' required: true responses: "201": content: application/json: schema: $ref: '#/components/schemas/StageSessionAttachmentsResponse' description: Created "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Write images into a running session's worktree and return their paths tags: - sessions /api/v1/sessions/{sessionId}/auto-inject-ci: patch: operationId: setSessionAutoInjectCI parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SetSessionAutoInjectCIRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SetSessionAutoInjectCIResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Set automatic CI-failure injection for a session and its PRs tags: - sessions /api/v1/sessions/{sessionId}/auto-inject-review: patch: operationId: setSessionAutoInjectReview parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SetSessionAutoInjectReviewRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SetSessionAutoInjectReviewResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Set the auto-inject review setting for a session tags: - sessions /api/v1/sessions/{sessionId}/auto-review: put: operationId: setSessionAutoReview parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ControllersSetSessionAutoReviewRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Enable or disable automatic review for a session tags: - sessions /api/v1/sessions/{sessionId}/background-tasks: get: operationId: getBackgroundTasks parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/BackgroundTasksResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found summary: Inspect native background work without waking the session tags: - conversations /api/v1/sessions/{sessionId}/background-tasks/{taskId}/output: get: operationId: getBackgroundTaskOutput parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Provider-scoped background task identifier. in: path name: taskId required: true schema: description: Provider-scoped background task identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/BackgroundTaskOutputResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found summary: Read one background task's recent output without waking the session tags: - conversations /api/v1/sessions/{sessionId}/background-tasks/{taskId}/stop: post: operationId: stopBackgroundTask parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Provider-scoped background task identifier. in: path name: taskId required: true schema: description: Provider-scoped background task identifier. type: string responses: "204": description: No Content "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: Stop one native background task without waking the session tags: - conversations /api/v1/sessions/{sessionId}/chat-view: post: operationId: setSessionChatView parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SetChatViewRequest' required: true responses: "204": description: No Content "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Keep a viewed chat awake or release its view lease tags: - conversations /api/v1/sessions/{sessionId}/conversation: get: operationId: getSessionConversation parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Read items older than this conversation sequence. Omit for the newest page. in: query name: beforeSequence schema: description: Read items older than this conversation sequence. Omit for the newest page. minimum: 1 type: - "null" - integer - description: Maximum messages to return; tool activity between them comes along without counting. Defaults to 200. in: query name: limit schema: description: Maximum messages to return; tool activity between them comes along without counting. Defaults to 200. maximum: 500 minimum: 1 type: - "null" - integer - description: Read only items newer than this conversation sequence. The response echoes afterSequence when it applied the floor. Omit for a whole page. in: query name: afterSequence schema: description: Read only items newer than this conversation sequence. The response echoes afterSequence when it applied the floor. Omit for a whole page. minimum: 1 type: - "null" - integer - description: 'Keep at most this many bytes of each command output: its head and tail. A cut output carries outputBytes, the full size. Omit for whole outputs.' in: query name: outputLimit schema: description: 'Keep at most this many bytes of each command output: its head and tail. A cut output carries outputBytes, the full size. Omit for whole outputs.' maximum: 65536 minimum: 64 type: - "null" - integer responses: "200": content: application/json: schema: $ref: '#/components/schemas/ConversationSnapshotResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Read a chat session's durable conversation tags: - conversations /api/v1/sessions/{sessionId}/conversation/approvals/{requestId}/resolve: post: operationId: resolveSessionConversationApproval parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Provider approval request identifier. Zero is a legitimate value. in: path name: requestId required: true schema: description: Provider approval request identifier. Zero is a legitimate value. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ResolveConversationApprovalRequest' required: true responses: "204": description: No Content "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Answer a pending approval in a chat session tags: - conversations /api/v1/sessions/{sessionId}/conversation/branches/{branchId}/activate: post: operationId: activateSessionConversationBranch parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Conversation branch identifier, from a snapshot branch navigation point. in: path name: branchId required: true schema: description: Conversation branch identifier, from a snapshot branch navigation point. type: string responses: "202": content: application/json: schema: $ref: '#/components/schemas/ActivateConversationBranchResponse' description: Accepted "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Resume a durable conversation branch without sending tags: - conversations /api/v1/sessions/{sessionId}/conversation/compact: post: operationId: compactSessionConversation parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "202": content: application/json: schema: $ref: '#/components/schemas/CompactConversationResponse' description: Accepted "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Summarize earlier history to reclaim context in a chat session tags: - conversations /api/v1/sessions/{sessionId}/conversation/config-options: get: operationId: listSessionConversationConfigOptions parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ConversationConfigOptionsResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List the live session controls the provider advertises tags: - conversations /api/v1/sessions/{sessionId}/conversation/config-options/{configId}: patch: operationId: setSessionConversationConfigOption parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Provider session configuration option identifier. in: path name: configId required: true schema: description: Provider session configuration option identifier. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SetConversationConfigOptionRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ConversationConfigOptionsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Choose one provider-advertised session configuration value tags: - conversations /api/v1/sessions/{sessionId}/conversation/file-references/resolve: post: operationId: resolveFileReference parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ConversationFileReferenceRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ResolveFileReferenceResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Resolve the current source of a captured file annotation without modifying it tags: - sessions /api/v1/sessions/{sessionId}/conversation/inputs/{requestId}/resolve: post: operationId: resolveSessionConversationInput parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Provider approval request identifier. Zero is a legitimate value. in: path name: requestId required: true schema: description: Provider approval request identifier. Zero is a legitimate value. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ResolveConversationInputRequest' required: true responses: "204": description: No Content "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Answer a structured input request in a chat session tags: - conversations /api/v1/sessions/{sessionId}/conversation/interrupt: post: operationId: interruptSessionConversationTurn parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ControllersInterruptConversationRequest' responses: "204": description: No Content "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Cancel the in-flight turn in a chat session tags: - conversations /api/v1/sessions/{sessionId}/conversation/mcp/reload: post: operationId: reloadSessionConversationMcpServers parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ReloadConversationMCPServersResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Restart the tool servers a chat session can reach tags: - conversations /api/v1/sessions/{sessionId}/conversation/messages: post: operationId: sendSessionConversationMessage parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SendConversationMessageRequest' required: true responses: "202": content: application/json: schema: $ref: '#/components/schemas/SendConversationMessageResponse' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Send a message to a chat session's agent tags: - conversations /api/v1/sessions/{sessionId}/conversation/models: get: operationId: listSessionConversationModels parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ConversationModelsResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List the models the provider offers for a chat session tags: - conversations /api/v1/sessions/{sessionId}/conversation/prompt-suggestion: post: operationId: suggestSessionConversationPrompt parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ConversationPromptSuggestionRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ConversationPromptSuggestionResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "429": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Too Many Requests "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Suggest the next human message after a completed chat turn tags: - conversations /api/v1/sessions/{sessionId}/conversation/queue/reorder: post: operationId: reorderQueuedSessionConversationTurns parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ReorderQueuedConversationTurnsRequest' required: true responses: "204": description: No Content "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Rewrite the durable queue order for undispatched turns tags: - conversations /api/v1/sessions/{sessionId}/conversation/settings: patch: operationId: setSessionConversationTurnSettings parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ConversationTurnSettingsPayload' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ConversationTurnSettingsPayload' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Choose the model, reasoning effort and approval mode for the next turn tags: - conversations /api/v1/sessions/{sessionId}/conversation/side-chats: get: operationId: listSessionSideChats parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/SideChatListResponse' description: OK "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: "" tags: - conversations post: operationId: createSessionConversationSideChat parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/CreateConversationSideChatRequest' required: true responses: "201": content: application/json: schema: $ref: '#/components/schemas/CreateConversationSideChatResponse' description: Created "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Open an independent launch-scoped side chat tags: - conversations /api/v1/sessions/{sessionId}/conversation/side-chats/{sideId}: delete: operationId: deleteSessionSideChat parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Independent side chat identifier. in: path name: sideId required: true schema: description: Independent side chat identifier. type: string responses: "204": description: No Content "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found summary: "" tags: - conversations get: operationId: getSessionSideChat parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Independent side chat identifier. in: path name: sideId required: true schema: description: Independent side chat identifier. type: string - description: Read side turns older than this RFC3339 timestamp. in: query name: before schema: description: Read side turns older than this RFC3339 timestamp. type: string - in: query name: limit schema: maximum: 500 minimum: 1 type: - "null" - integer responses: "200": content: application/json: schema: $ref: '#/components/schemas/SideChatSnapshotResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found summary: "" tags: - conversations /api/v1/sessions/{sessionId}/conversation/side-chats/{sideId}/approvals/{requestId}/resolve: post: operationId: resolveSessionSideChatApproval parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Independent side chat identifier. in: path name: sideId required: true schema: description: Independent side chat identifier. type: string - description: Provider approval request identifier. Zero is a legitimate value. in: path name: requestId required: true schema: description: Provider approval request identifier. Zero is a legitimate value. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ResolveConversationApprovalRequest' required: true responses: "204": description: No Content "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: "" tags: - conversations /api/v1/sessions/{sessionId}/conversation/side-chats/{sideId}/compact: post: operationId: compactSessionSideChat parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Independent side chat identifier. in: path name: sideId required: true schema: description: Independent side chat identifier. type: string responses: "202": content: application/json: schema: $ref: '#/components/schemas/CompactConversationResponse' description: Accepted "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: "" tags: - conversations /api/v1/sessions/{sessionId}/conversation/side-chats/{sideId}/draft: get: operationId: getSessionSideChatDraft parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Independent side chat identifier. in: path name: sideId required: true schema: description: Independent side chat identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/SideDraftResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found summary: "" tags: - conversations put: operationId: putSessionSideChatDraft parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Independent side chat identifier. in: path name: sideId required: true schema: description: Independent side chat identifier. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SideDraftRequest' required: true responses: "204": description: No Content "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found summary: "" tags: - conversations /api/v1/sessions/{sessionId}/conversation/side-chats/{sideId}/events: get: operationId: streamSessionSideChat parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Independent side chat identifier. in: path name: sideId required: true schema: description: Independent side chat identifier. type: string responses: "200": content: text/event-stream: schema: type: string description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found summary: "" tags: - conversations /api/v1/sessions/{sessionId}/conversation/side-chats/{sideId}/inputs/{requestId}/resolve: post: operationId: resolveSessionSideChatInput parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Independent side chat identifier. in: path name: sideId required: true schema: description: Independent side chat identifier. type: string - description: Provider approval request identifier. Zero is a legitimate value. in: path name: requestId required: true schema: description: Provider approval request identifier. Zero is a legitimate value. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ResolveConversationInputRequest' required: true responses: "204": description: No Content "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: "" tags: - conversations /api/v1/sessions/{sessionId}/conversation/side-chats/{sideId}/interrupt: post: operationId: interruptSessionSideQuestion parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Independent side chat identifier. in: path name: sideId required: true schema: description: Independent side chat identifier. type: string responses: "204": description: No Content "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: "" tags: - conversations /api/v1/sessions/{sessionId}/conversation/side-chats/{sideId}/label: patch: operationId: renameSessionSideChat parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Independent side chat identifier. in: path name: sideId required: true schema: description: Independent side chat identifier. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SideLabelRequest' required: true responses: "204": description: No Content "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: "" tags: - conversations /api/v1/sessions/{sessionId}/conversation/side-chats/{sideId}/messages: post: operationId: sendSessionSideChatQuestion parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Independent side chat identifier. in: path name: sideId required: true schema: description: Independent side chat identifier. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SendSideQuestionRequest' required: true responses: "202": content: application/json: schema: $ref: '#/components/schemas/SideQuestionResponse' description: Accepted "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: "" tags: - conversations /api/v1/sessions/{sessionId}/conversation/side-chats/{sideId}/recover: post: operationId: recoverSessionSideChat parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Independent side chat identifier. in: path name: sideId required: true schema: description: Independent side chat identifier. type: string responses: "202": description: Accepted "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: "" tags: - conversations /api/v1/sessions/{sessionId}/conversation/side-chats/{sideId}/settings: patch: operationId: updateSessionSideChatSettings parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Independent side chat identifier. in: path name: sideId required: true schema: description: Independent side chat identifier. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SideSettingsRequest' required: true responses: "204": description: No Content "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: "" tags: - conversations /api/v1/sessions/{sessionId}/conversation/side-chats/{sideId}/turns/{turnId}: patch: operationId: editSessionQueuedSideQuestion parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Independent side chat identifier. in: path name: sideId required: true schema: description: Independent side chat identifier. type: string - description: AO conversation turn identifier, from the snapshot's turns array. in: path name: turnId required: true schema: description: AO conversation turn identifier, from the snapshot's turns array. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SendSideQuestionRequest' required: true responses: "204": description: No Content "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: "" tags: - conversations /api/v1/sessions/{sessionId}/conversation/side-chats/{sideId}/turns/{turnId}/cancel: post: operationId: cancelSessionSideQuestion parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Independent side chat identifier. in: path name: sideId required: true schema: description: Independent side chat identifier. type: string - description: AO conversation turn identifier, from the snapshot's turns array. in: path name: turnId required: true schema: description: AO conversation turn identifier, from the snapshot's turns array. type: string responses: "204": description: No Content "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: "" tags: - conversations /api/v1/sessions/{sessionId}/conversation/side-chats/{sideId}/turns/{turnId}/retry: post: operationId: retrySessionSideQuestion parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Independent side chat identifier. in: path name: sideId required: true schema: description: Independent side chat identifier. type: string - description: AO conversation turn identifier, from the snapshot's turns array. in: path name: turnId required: true schema: description: AO conversation turn identifier, from the snapshot's turns array. type: string responses: "202": description: Accepted "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: "" tags: - conversations /api/v1/sessions/{sessionId}/conversation/skills: get: operationId: listSessionConversationSkills parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ConversationSkillsResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List the named skills the provider offers for a chat session tags: - conversations /api/v1/sessions/{sessionId}/conversation/steer: post: operationId: steerSessionConversationTurn parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SteerConversationRequest' required: true responses: "202": content: application/json: schema: $ref: '#/components/schemas/SteerConversationResponse' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Send guidance into the in-flight turn of a chat session tags: - conversations /api/v1/sessions/{sessionId}/conversation/steer-or-send: post: operationId: steerOrSendSessionConversationTurn parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SteerConversationRequest' required: true responses: "202": content: application/json: schema: $ref: '#/components/schemas/SteerOrSendConversationResponse' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Steer the active turn or send a new turn when idle tags: - conversations /api/v1/sessions/{sessionId}/conversation/title: put: operationId: setSessionConversationTitle parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SetConversationTitleRequest' required: true responses: "202": content: application/json: schema: $ref: '#/components/schemas/SetConversationTitleResponse' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Name the provider's conversation thread tags: - conversations /api/v1/sessions/{sessionId}/conversation/turns/{turnId}/auto-resume: patch: operationId: setSessionConversationTurnAutoResume parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: AO conversation turn identifier, from the snapshot's turns array. in: path name: turnId required: true schema: description: AO conversation turn identifier, from the snapshot's turns array. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SetTurnAutoResumeRequest' required: true responses: "204": description: No Content "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Schedule or cancel a usage-limited turn retry tags: - conversations /api/v1/sessions/{sessionId}/conversation/turns/{turnId}/cancel: post: operationId: cancelQueuedSessionConversationTurn parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: AO conversation turn identifier, from the snapshot's turns array. in: path name: turnId required: true schema: description: AO conversation turn identifier, from the snapshot's turns array. type: string responses: "204": description: No Content "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Remove one queued message without stopping the running turn tags: - conversations /api/v1/sessions/{sessionId}/conversation/turns/{turnId}/edit: post: operationId: editSessionConversationMessage parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: AO conversation turn identifier, from the snapshot's turns array. in: path name: turnId required: true schema: description: AO conversation turn identifier, from the snapshot's turns array. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/EditConversationMessageRequest' required: true responses: "202": content: application/json: schema: $ref: '#/components/schemas/EditConversationMessageResponse' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Branch before and replace an earlier human prompt tags: - conversations /api/v1/sessions/{sessionId}/conversation/turns/{turnId}/queue/edit: post: operationId: editQueuedSessionConversationTurn parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: AO conversation turn identifier, from the snapshot's turns array. in: path name: turnId required: true schema: description: AO conversation turn identifier, from the snapshot's turns array. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/EditQueuedConversationMessageRequest' required: true responses: "204": description: No Content "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Rewrite one queued message before it dispatches tags: - conversations /api/v1/sessions/{sessionId}/conversation/turns/{turnId}/retry: post: operationId: retrySessionConversationTurn parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: AO conversation turn identifier, from the snapshot's turns array. in: path name: turnId required: true schema: description: AO conversation turn identifier, from the snapshot's turns array. type: string responses: "202": content: application/json: schema: $ref: '#/components/schemas/RetryTurnResponse' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Re-dispatch a failed turn's durable prompt as a new turn tags: - conversations /api/v1/sessions/{sessionId}/conversation/turns/{turnId}/rollback: get: operationId: previewSessionConversationRollback parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: AO conversation turn identifier, from the snapshot's turns array. in: path name: turnId required: true schema: description: AO conversation turn identifier, from the snapshot's turns array. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/RollbackPreviewResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List the worktree files rolling back to a turn would restore tags: - conversations post: operationId: rollbackSessionConversation parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: AO conversation turn identifier, from the snapshot's turns array. in: path name: turnId required: true schema: description: AO conversation turn identifier, from the snapshot's turns array. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/RollbackConversationRequest' responses: "200": content: application/json: schema: $ref: '#/components/schemas/RollbackConversationResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Discard a turn and everything after it from the agent's memory, optionally restoring its files tags: - conversations /api/v1/sessions/{sessionId}/conversation/turns/{turnId}/steer: post: operationId: promoteQueuedSessionConversationTurn parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: AO conversation turn identifier, from the snapshot's turns array. in: path name: turnId required: true schema: description: AO conversation turn identifier, from the snapshot's turns array. type: string responses: "202": content: application/json: schema: $ref: '#/components/schemas/PromoteQueuedTurnResponse' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Promote a queued message into the in-flight turn tags: - conversations /api/v1/sessions/{sessionId}/device: get: operationId: getSessionDevice parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionDeviceResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Get the device a session holds tags: - devices /api/v1/sessions/{sessionId}/device/button: post: operationId: pressSessionDeviceButton parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Opaque browser capability injected into the owning AO worker. in: header name: X-AO-Browser-Capability schema: description: Opaque browser capability injected into the owning AO worker. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/PressSessionDeviceButtonRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionDeviceResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Press a hardware button on the session's device through the provider, where the stream socket cannot tags: - devices /api/v1/sessions/{sessionId}/device/close: post: operationId: closeSessionDevice parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Opaque browser capability injected into the owning AO worker. in: header name: X-AO-Browser-Capability schema: description: Opaque browser capability injected into the owning AO worker. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/CloseSessionDeviceRequest' responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionDeviceResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Release the session's device, optionally shutting it down tags: - devices /api/v1/sessions/{sessionId}/device/hub/*: get: operationId: getSessionDeviceHub parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: type: string description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "502": content: text/plain: schema: type: string description: Bad Gateway "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Proxy the leased device's stream, input socket and screenshots from the device hub tags: - devices /api/v1/sessions/{sessionId}/device/install: post: operationId: installSessionDeviceApp parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Opaque browser capability injected into the owning AO worker. in: header name: X-AO-Browser-Capability schema: description: Opaque browser capability injected into the owning AO worker. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/InstallSessionDeviceRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionDeviceResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Install a built app on the session's device tags: - devices /api/v1/sessions/{sessionId}/device/launch: post: operationId: launchSessionDeviceApp parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Opaque browser capability injected into the owning AO worker. in: header name: X-AO-Browser-Capability schema: description: Opaque browser capability injected into the owning AO worker. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/LaunchSessionDeviceRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionDeviceResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Launch an installed app on the session's device tags: - devices /api/v1/sessions/{sessionId}/device/open: post: operationId: openSessionDevice parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Opaque browser capability injected into the owning AO worker. in: header name: X-AO-Browser-Capability schema: description: Opaque browser capability injected into the owning AO worker. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/OpenSessionDeviceRequest' responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionDeviceResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Pick, boot and lease a simulator or emulator to a session tags: - devices /api/v1/sessions/{sessionId}/device/quality: post: operationId: setSessionDeviceQuality parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Opaque browser capability injected into the owning AO worker. in: header name: X-AO-Browser-Capability schema: description: Opaque browser capability injected into the owning AO worker. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SetSessionDeviceQualityRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionDeviceResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: 'Set how much the session''s device stream costs the link: high, balanced or low (resets when the lease ends)' tags: - devices /api/v1/sessions/{sessionId}/device/screenshot: get: operationId: getSessionDeviceScreenshot parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: image/png: schema: type: string description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Capture the session's device screen as a PNG tags: - devices /api/v1/sessions/{sessionId}/exit-agent: post: operationId: exitAgent parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ExitAgentResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Exit the agent while preserving its AO session tags: - sessions /api/v1/sessions/{sessionId}/fork: post: operationId: forkSession parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ControllersForkSessionRequest' required: true responses: "201": content: application/json: schema: $ref: '#/components/schemas/ControllersForkSessionResponse' description: Created "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Fork a session at a finished turn tags: - sessions /api/v1/sessions/{sessionId}/fork-options: get: operationId: getSessionForkOptions parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ControllersSessionForkOptionsResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Report whether a session can be forked tags: - sessions /api/v1/sessions/{sessionId}/history: get: operationId: getSessionHistory parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Number of newest turns to skip. in: query name: offset schema: description: Number of newest turns to skip. minimum: 0 type: integer - description: Maximum turns to return. Defaults to 10. in: query name: limit schema: description: Maximum turns to return. Defaults to 10. maximum: 50 minimum: 1 type: integer responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionHistoryResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Read a session's turns, newest first, across Chat and Terminal tags: - conversations /api/v1/sessions/{sessionId}/interface-transition: delete: operationId: cancelSessionInterfaceTransition parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "202": content: application/json: schema: $ref: '#/components/schemas/CancelSessionInterfaceTransitionResponse' description: Accepted "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Cancel an interface handoff before its source controller stops tags: - sessions get: operationId: getSessionInterfaceTransition parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionInterfaceTransitionStatusResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Inspect TUI and Chat interface handoff support and progress tags: - sessions post: operationId: startSessionInterfaceTransition parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/StartSessionInterfaceTransitionRequest' required: true responses: "202": content: application/json: schema: $ref: '#/components/schemas/StartSessionInterfaceTransitionResponse' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Switch a live session between its TUI and Chat controllers tags: - sessions /api/v1/sessions/{sessionId}/interface-transition/{transitionId}/notice-acknowledgement: put: operationId: acknowledgeSessionInterfaceTransitionNotice parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Durable interface-transition identifier. in: path name: transitionId required: true schema: description: Durable interface-transition identifier. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/AcknowledgeSessionInterfaceTransitionNoticeResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Acknowledge a failed or recovered interface handoff notice tags: - sessions /api/v1/sessions/{sessionId}/kill: post: operationId: killSession parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ControllersKillSessionRequest' responses: "200": content: application/json: schema: $ref: '#/components/schemas/KillSessionResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Mark a session terminated and tear down runtime/workspace resources tags: - sessions /api/v1/sessions/{sessionId}/merge-policy: patch: operationId: setSessionMergePolicy parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SetSessionMergePolicyRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SetSessionMergePolicyResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Configure whether PR completion terminates the session tags: - sessions /api/v1/sessions/{sessionId}/panes: get: operationId: getSessionPanes parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Opaque browser capability injected into the owning AO worker. in: header name: X-AO-Browser-Capability schema: description: Opaque browser capability injected into the owning AO worker. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ControllersPaneLayoutResponse' description: OK "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Read the split-pane layout the desktop window shows for a session tags: - sessions post: operationId: commandSessionPanes parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Opaque browser capability injected into the owning AO worker. in: header name: X-AO-Browser-Capability schema: description: Opaque browser capability injected into the owning AO worker. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ControllersPaneCommandRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ControllersPaneLayoutResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable "504": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Gateway Timeout summary: Ask the desktop window to split, unsplit or focus a session's tabs tags: - sessions /api/v1/sessions/{sessionId}/panes/input: post: operationId: typeIntoSessionPane parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Opaque browser capability injected into the owning AO worker. in: header name: X-AO-Browser-Capability schema: description: Opaque browser capability injected into the owning AO worker. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ControllersPaneInputRequest' required: true responses: "204": description: No Content "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Type into, or interrupt, one of the session's own terminal tabs tags: - sessions /api/v1/sessions/{sessionId}/panes/output: get: operationId: readSessionPaneOutput parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Key of one of this session's terminal tabs, from ao pane. in: query name: tab schema: description: Key of one of this session's terminal tabs, from ao pane. type: string - description: How many of the last lines to return. Defaults to 200. in: query name: lines schema: description: How many of the last lines to return. Defaults to 200. maximum: 2000 minimum: 1 type: - "null" - integer - description: Opaque browser capability injected into the owning AO worker. in: header name: X-AO-Browser-Capability schema: description: Opaque browser capability injected into the owning AO worker. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ControllersPaneOutputResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Read what one of the session's own terminal tabs shows tags: - sessions /api/v1/sessions/{sessionId}/pin: delete: operationId: unpinSession parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Unpin a session tags: - sessions post: operationId: pinSession parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Pin a session tags: - sessions /api/v1/sessions/{sessionId}/pr: get: operationId: listSessionPRs parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListSessionPRsResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List pull requests owned by a session tags: - sessions /api/v1/sessions/{sessionId}/pr/{prNumber}/file: get: operationId: getSessionPRFile parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Associated pull request number. in: path name: prNumber required: true schema: description: Associated pull request number. minimum: 1 type: integer - description: Repository-relative file path. in: query name: path required: true schema: description: Repository-relative file path. type: string - description: Previous repository-relative path supplied by the selected PR file summary for rename detection. in: query name: previousPath schema: description: Previous repository-relative path supplied by the selected PR file summary for rename detection. type: string - description: Stable URL of the selected associated pull request. in: query name: sourceUrl schema: description: Stable URL of the selected associated pull request. type: string - description: Exact SHA of one of the pull request's commits; reads that commit's change instead of the whole pull request. in: query name: commitSha schema: description: Exact SHA of one of the pull request's commits; reads that commit's change instead of the whole pull request. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/WorkspaceFileResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Read one file from an associated pull request base-to-head diff tags: - sessions /api/v1/sessions/{sessionId}/pr/{prNumber}/file/revision: get: operationId: getSessionPRFileRevision parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Associated pull request number. in: path name: prNumber required: true schema: description: Associated pull request number. minimum: 1 type: integer - description: Repository-relative file path. in: query name: path required: true schema: description: Repository-relative file path. type: string - description: Comparison side. Defaults to after. in: query name: side schema: description: Comparison side. Defaults to after. enum: - before - after type: string - description: Stable URL of the selected associated pull request. in: query name: sourceUrl schema: description: Stable URL of the selected associated pull request. type: string - description: Exact SHA of one of the pull request's commits; before is its first parent, after is the commit. in: query name: commitSha schema: description: Exact SHA of one of the pull request's commits; before is its first parent, after is the commit. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/WorkspaceFileRevisionResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Read one text-capable side of a pull request comparison tags: - sessions /api/v1/sessions/{sessionId}/pr/{prNumber}/files: get: operationId: listSessionPRFiles parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Associated pull request number. in: path name: prNumber required: true schema: description: Associated pull request number. minimum: 1 type: integer - description: Stable URL of the selected associated pull request. in: query name: sourceUrl schema: description: Stable URL of the selected associated pull request. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListPRFilesResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: List the exact base-to-head changed files for an associated pull request tags: - sessions /api/v1/sessions/{sessionId}/pr/claim: post: operationId: claimSessionPR parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ClaimPRRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ClaimPRResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Claim an existing pull request for a session tags: - sessions /api/v1/sessions/{sessionId}/preview: delete: operationId: clearSessionPreview parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Clear the browser preview URL for a session tags: - sessions get: operationId: getSessionPreview parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionPreviewResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Discover a browser preview URL for a session workspace tags: - sessions post: operationId: setSessionPreview parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SetSessionPreviewRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Set (or autodetect) the browser preview URL for a session tags: - sessions /api/v1/sessions/{sessionId}/preview/app/*: delete: operationId: deleteSessionPreviewApp parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: type: string description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: Send a request to the running session-owned application preview tags: - sessions get: operationId: getSessionPreviewApp parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: text/html: schema: type: string description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: Proxy the running session-owned application preview tags: - sessions head: operationId: headSessionPreviewApp parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": description: OK "404": description: Not Found "409": description: Conflict summary: Read headers from the running session-owned application preview tags: - sessions patch: operationId: patchSessionPreviewApp parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: type: string description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: Send a request to the running session-owned application preview tags: - sessions post: operationId: postSessionPreviewApp parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: type: string description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: Send a request to the running session-owned application preview tags: - sessions put: operationId: putSessionPreviewApp parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: type: string description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: Send a request to the running session-owned application preview tags: - sessions /api/v1/sessions/{sessionId}/preview/artifacts/*: get: operationId: getSessionPreviewArtifact parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: text/html: schema: type: string description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Serve a selected static browser preview file from the session artifact directory tags: - sessions /api/v1/sessions/{sessionId}/preview/files/*: get: operationId: getSessionPreviewFile parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: File root to serve from. Defaults to the session workspace; artifact selects the session artifact directory. in: query name: source schema: description: File root to serve from. Defaults to the session workspace; artifact selects the session artifact directory. enum: - workspace - artifact type: string - description: When true, serve Markdown files as raw source instead of rendering them to HTML for Browser preview. in: query name: raw schema: description: When true, serve Markdown files as raw source instead of rendering them to HTML for Browser preview. type: boolean - description: With source=artifact, serve this saved version of the file instead of its current content. in: query name: artifactVersion schema: description: With source=artifact, serve this saved version of the file instead of its current content. format: int64 minimum: 1 type: integer responses: "200": content: text/html: schema: type: string description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Serve a static browser preview file from a session workspace or artifact directory tags: - sessions /api/v1/sessions/{sessionId}/preview/server: delete: operationId: stopSessionPreviewServer parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Opaque browser capability injected into the owning AO worker. in: header name: X-AO-Browser-Capability schema: description: Opaque browser capability injected into the owning AO worker. type: string - description: Opaque preview-only capability injected into a session-scoped user shell. in: header name: X-AO-Preview-Capability schema: description: Opaque preview-only capability injected into a session-scoped user shell. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/PreviewServerStatusResponse' description: OK "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Stop the managed preview server for a session tags: - sessions get: operationId: getSessionPreviewServer parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Opaque browser capability injected into the owning AO worker. in: header name: X-AO-Browser-Capability schema: description: Opaque browser capability injected into the owning AO worker. type: string - description: Opaque preview-only capability injected into a session-scoped user shell. in: header name: X-AO-Preview-Capability schema: description: Opaque preview-only capability injected into a session-scoped user shell. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/PreviewServerStatusResponse' description: OK "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Get the managed preview server status for a session tags: - sessions post: operationId: startSessionPreviewServer parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Opaque browser capability injected into the owning AO worker. in: header name: X-AO-Browser-Capability schema: description: Opaque browser capability injected into the owning AO worker. type: string - description: Opaque preview-only capability injected into a session-scoped user shell. in: header name: X-AO-Preview-Capability schema: description: Opaque preview-only capability injected into a session-scoped user shell. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/StartPreviewServerRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/PreviewServerStatusResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "403": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Forbidden "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "408": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Request Timeout "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "504": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Gateway Timeout summary: Start a session-owned server from .ao/launch.json and open its application preview tags: - sessions /api/v1/sessions/{sessionId}/provider-switch: post: operationId: switchSessionProvider parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ProviderSwitchRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ProviderSwitchResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Switch an idle Chat session to another provider tags: - conversations /api/v1/sessions/{sessionId}/renders: post: operationId: publishSessionRender parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/PublishRenderRequest' required: true responses: "201": content: application/json: schema: $ref: '#/components/schemas/PublishRenderResponse' description: Created "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Show an agent's self-contained HTML page inline in its chat thread tags: - conversations /api/v1/sessions/{sessionId}/renders/{renderId}: get: operationId: getSessionRender parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Render identifier returned when the page was published. in: path name: renderId required: true schema: description: Render identifier returned when the page was published. type: string - description: 'Set to 1 to read the page as the agent wrote it: the stored bytes as text/plain, without the theme bootstrap.' in: query name: source schema: description: 'Set to 1 to read the page as the agent wrote it: the stored bytes as text/plain, without the theme bootstrap.' enum: - "1" type: - "null" - string responses: "200": content: text/html: schema: type: string description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Serve a published render as a sandboxed HTML document tags: - conversations /api/v1/sessions/{sessionId}/renders/{renderId}/artifact: post: operationId: saveSessionRenderArtifact parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Render identifier returned when the page was published. in: path name: renderId required: true schema: description: Render identifier returned when the page was published. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SaveRenderArtifactRequest' required: true responses: "201": content: application/json: schema: $ref: '#/components/schemas/SaveRenderArtifactResponse' description: Created "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Keep a published render as a session artifact tags: - conversations /api/v1/sessions/{sessionId}/renders/check: post: operationId: checkSessionRender parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/RenderCheckRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/RenderCheckResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented "503": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Service Unavailable summary: Screenshot an agent's HTML page in the desktop app before it is published tags: - conversations /api/v1/sessions/{sessionId}/restore: post: operationId: restoreSession parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/RestoreSessionResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Restore a terminated session tags: - sessions /api/v1/sessions/{sessionId}/resume-agent: post: operationId: resumeAgent parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ResumeAgentResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Resume an exited agent in its existing session tags: - sessions /api/v1/sessions/{sessionId}/reviewer: put: operationId: setSessionReviewer parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SetSessionReviewerRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SessionResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Set the reviewer harness for a session tags: - sessions /api/v1/sessions/{sessionId}/reviews: get: operationId: listReviews parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListReviewsResponse' description: OK "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List a worker's code-review runs tags: - reviews /api/v1/sessions/{sessionId}/reviews/cancel: post: operationId: cancelReview parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/CancelReviewResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Cancel a running code review tags: - reviews /api/v1/sessions/{sessionId}/reviews/comments/resolve: post: operationId: resolveReviewComment parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ControllersResolveReviewCommentRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ControllersResolveReviewCommentResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Resolve an external review comment thread tags: - reviews /api/v1/sessions/{sessionId}/reviews/kill: post: operationId: killReviewSession parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/KillReviewResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Archive a worker's reviewer and hide its surface while retaining history tags: - reviews /api/v1/sessions/{sessionId}/reviews/rerequest: post: operationId: requestRereview parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ControllersRequestRereviewRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ControllersRequestRereviewResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Ask an external reviewer to re-review a worker's PR tags: - reviews /api/v1/sessions/{sessionId}/reviews/restore: post: operationId: restoreReviewSession parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/RestoreReviewResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Restore a worker's reviewer terminal session tags: - reviews /api/v1/sessions/{sessionId}/reviews/submit: post: operationId: submitReview parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SubmitReviewInput' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ReviewRunResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Record a reviewer's result for a worker's PR tags: - reviews /api/v1/sessions/{sessionId}/reviews/switch: post: operationId: switchReviewSession parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SetSessionReviewerRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListReviewsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Switch a worker's reviewer harness tags: - reviews /api/v1/sessions/{sessionId}/reviews/trigger: post: operationId: triggerReview parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/TriggerReviewRequest' responses: "200": content: application/json: schema: $ref: '#/components/schemas/TriggerReviewResponse' description: OK "201": content: application/json: schema: $ref: '#/components/schemas/TriggerReviewResponse' description: Created "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "422": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Unprocessable Entity "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Trigger a code review of a worker's PR tags: - reviews /api/v1/sessions/{sessionId}/rollback: post: operationId: rollbackSession parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/RollbackSessionResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Undo a partially-completed spawn (delete seed row, or kill if spawn output exists) tags: - sessions /api/v1/sessions/{sessionId}/send: post: operationId: sendSessionMessage parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/SendSessionMessageRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SendSessionMessageResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error summary: Send a message to a running session's agent tags: - sessions /api/v1/sessions/{sessionId}/stop-turn: post: operationId: stopSessionTurn parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "204": description: No Content "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Stop an active turn without ending the session tags: - sessions /api/v1/sessions/{sessionId}/workspace/branches: get: operationId: listSessionWorkspaceBranches parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/WorkspaceBranchesResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List the local branches and pull requests a workspace review can read, checked-out branch first tags: - sessions /api/v1/sessions/{sessionId}/workspace/diffs: post: operationId: getSessionWorkspaceDiffs parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/WorkspaceDiffRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/WorkspaceDiffsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Read grouped unified patches for a bounded set of workspace files tags: - sessions /api/v1/sessions/{sessionId}/workspace/events: get: operationId: streamSessionWorkspaceChanges parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: text/event-stream: schema: type: string description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Stream session workspace file changes tags: - sessions /api/v1/sessions/{sessionId}/workspace/file: get: operationId: getSessionWorkspaceFile parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Read the immutable review snapshot instead of the live worktree. in: query name: snapshot schema: description: Read the immutable review snapshot instead of the live worktree. type: boolean - description: Local or remote-tracking branch to read without checkout. in: query name: branch schema: description: Local or remote-tracking branch to read without checkout. type: string - description: Associated pull request number. in: query name: prNumber schema: description: Associated pull request number. type: integer - description: Associated pull request URL. in: query name: sourceUrl schema: description: Associated pull request URL. type: string - description: Pinned source tip for snapshot reads. Must remain reachable from the selected source. in: query name: expectedTipSha schema: description: Pinned source tip for snapshot reads. Must remain reachable from the selected source. type: string - description: Pinned comparison base for snapshot reads. in: query name: expectedBaseSha schema: description: Pinned comparison base for snapshot reads. type: string - description: Comma-separated selected commit SHAs. in: query name: commitShas schema: description: Comma-separated selected commit SHAs. type: string - description: Session-worktree-relative file path. in: query name: path schema: description: Session-worktree-relative file path. type: string - description: Git-state section the file was opened from (see WorkspaceFileSections). uncommitted diffs the worktree against HEAD; staged diffs the index against HEAD; unstaged diffs the worktree against the index; omitted/committed/untracked diff the worktree against the compare base. in: query name: section schema: description: Git-state section the file was opened from (see WorkspaceFileSections). uncommitted diffs the worktree against HEAD; staged diffs the index against HEAD; unstaged diffs the worktree against the index; omitted/committed/untracked diff the worktree against the compare base. enum: - uncommitted - committed - staged - unstaged - untracked type: string - description: Exact commit SHA to read as an immutable committed-scope snapshot. in: query name: commitSha schema: description: Exact commit SHA to read as an immutable committed-scope snapshot. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/WorkspaceFileResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Read one session workspace file and its git diff tags: - sessions put: operationId: updateSessionWorkspaceFile parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateWorkspaceFileRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/WorkspaceFileResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Replace one existing text file in a session workspace tags: - sessions /api/v1/sessions/{sessionId}/workspace/file/blob: get: operationId: getSessionWorkspaceFileBlob parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Read the immutable review snapshot instead of the live worktree. in: query name: snapshot schema: description: Read the immutable review snapshot instead of the live worktree. type: boolean - description: Local or remote-tracking branch to read without checkout. in: query name: branch schema: description: Local or remote-tracking branch to read without checkout. type: string - description: Associated pull request number. in: query name: prNumber schema: description: Associated pull request number. type: integer - description: Associated pull request URL. in: query name: sourceUrl schema: description: Associated pull request URL. type: string - description: Pinned source tip for snapshot reads. Must remain reachable from the selected source. in: query name: expectedTipSha schema: description: Pinned source tip for snapshot reads. Must remain reachable from the selected source. type: string - description: Pinned comparison base for snapshot reads. in: query name: expectedBaseSha schema: description: Pinned comparison base for snapshot reads. type: string - description: Comma-separated selected commit SHAs. in: query name: commitShas schema: description: Comma-separated selected commit SHAs. type: string - description: Selected commit SHA. in: query name: commitSha schema: description: Selected commit SHA. type: string - description: Session-worktree-relative file path. in: query name: path required: true schema: description: Session-worktree-relative file path. type: string - description: 'Which revision to read: the compare base (before) or the session worktree (after). Defaults to after.' in: query name: side schema: description: 'Which revision to read: the compare base (before) or the session worktree (after). Defaults to after.' enum: - before - after type: string - description: Cache-busting token. Ignored by the server; the response is never cached. in: query name: v schema: description: Cache-busting token. Ignored by the server; the response is never cached. type: string responses: "200": content: application/octet-stream: schema: type: string description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Read one side of a session workspace image file tags: - sessions /api/v1/sessions/{sessionId}/workspace/file/revision: get: operationId: getSessionWorkspaceFileRevision parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Read the selected immutable comparison, including an empty commit range. in: query name: snapshot schema: description: Read the selected immutable comparison, including an empty commit range. type: boolean - description: Session-worktree-relative file path. in: query name: path required: true schema: description: Session-worktree-relative file path. type: string - description: Comparison scope. Defaults to combined. in: query name: scope schema: description: Comparison scope. Defaults to combined. enum: - combined - uncommitted - committed - staged - unstaged - untracked type: string - description: Comparison side. Defaults to after. in: query name: side schema: description: Comparison side. Defaults to after. enum: - before - after type: string - description: Opaque workspace snapshot token used for consistency checks. in: query name: workspaceVersion schema: description: Opaque workspace snapshot token used for consistency checks. type: string - description: Opaque revision token used for optimistic consistency checks. in: query name: expectedRevision schema: description: Opaque revision token used for optimistic consistency checks. type: string - description: Exact commit SHA for a committed-scope comparison. Cannot be combined with commitShas. in: query name: commitSha schema: description: Exact commit SHA for a committed-scope comparison. Cannot be combined with commitShas. type: string - description: Comma-separated full SHAs (max 250) whose combined changes are compared. Requires the committed scope. in: query name: commitShas schema: description: Comma-separated full SHAs (max 250) whose combined changes are compared. Requires the committed scope. type: string - description: Local branch to read instead of the checked-out worktree. Requires the committed scope. in: query name: branch schema: description: Local branch to read instead of the checked-out worktree. Requires the committed scope. type: string - description: Associated pull request to read instead of the checked-out worktree. Requires the committed scope. in: query name: prNumber schema: description: Associated pull request to read instead of the checked-out worktree. Requires the committed scope. minimum: 1 type: integer - description: Stable URL of the pull request, for PRs that share a number. Requires prNumber. in: query name: sourceUrl schema: description: Stable URL of the pull request, for PRs that share a number. Requires prNumber. type: string - description: The branch or pull request view's tipSha from its history. A moved tip fails with WORKSPACE_REF_MOVED. in: query name: expectedTipSha schema: description: The branch or pull request view's tipSha from its history. A moved tip fails with WORKSPACE_REF_MOVED. type: string - description: The branch or pull request view's baseSha from its history. A moved base fails with WORKSPACE_REF_MOVED. in: query name: expectedBaseSha schema: description: The branch or pull request view's baseSha from its history. A moved base fails with WORKSPACE_REF_MOVED. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/WorkspaceFileRevisionResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Read one text-capable side of a workspace comparison tags: - sessions /api/v1/sessions/{sessionId}/workspace/files: get: operationId: listSessionWorkspaceFiles parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListWorkspaceFilesResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List files in a session workspace with git change status tags: - sessions /api/v1/sessions/{sessionId}/workspace/history: get: operationId: getSessionWorkspaceHistory parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Local branch to read instead of the checked-out worktree. Read from revisions only; nothing is checked out. in: query name: branch schema: description: Local branch to read instead of the checked-out worktree. Read from revisions only; nothing is checked out. type: string - description: Associated pull request to read instead of the checked-out worktree. in: query name: prNumber schema: description: Associated pull request to read instead of the checked-out worktree. minimum: 1 type: integer - description: Stable URL of the pull request, for PRs that share a number. Requires prNumber. in: query name: sourceUrl schema: description: Stable URL of the pull request, for PRs that share a number. Requires prNumber. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/WorkspaceHistoryResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Get lazy commit and upstream metadata for a workspace review tags: - sessions /api/v1/sessions/{sessionId}/workspace/history/selection: post: operationId: getSessionWorkspaceCommitSelection parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/WorkspaceCommitSelectionRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/WorkspaceCommitSelectionResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Resolve ticked commits, or a view's whole range, to their combined changed files tags: - sessions /api/v1/sessions/{sessionId}/workspace/manifest: get: operationId: getSessionWorkspaceManifest parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/WorkspaceManifestResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Get the compact changed-file manifest for the initial workspace review paint tags: - sessions /api/v1/sessions/{sessionId}/workspace/paths: get: operationId: listSessionWorkspaceFilePaths parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListWorkspaceFilePathsResponse' description: OK "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List the visible file paths in a session workspace, without per-file status tags: - sessions /api/v1/sessions/{sessionId}/workspace/resolve: get: operationId: resolveSessionWorkspacePath parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Absolute or workspace-relative file path to classify. in: query name: path required: true schema: description: Absolute or workspace-relative file path to classify. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/WorkspacePathResolutionResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Classify a path as a workspace file, a session artifact, or neither tags: - sessions /api/v1/sessions/{sessionId}/workspace/search: get: operationId: searchSessionWorkspaceFiles parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Case-insensitive path substring. in: query name: query required: true schema: description: Case-insensitive path substring. type: string - description: Opaque pagination cursor returned by the previous page. in: query name: cursor schema: description: Opaque pagination cursor returned by the previous page. type: string - description: Maximum results. Defaults to 50. in: query name: limit schema: description: Maximum results. Defaults to 50. maximum: 100 minimum: 1 type: integer responses: "200": content: application/json: schema: $ref: '#/components/schemas/WorkspaceFileSearchResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Search visible workspace file paths tags: - sessions /api/v1/sessions/{sessionId}/workspace/search/content: get: operationId: searchSessionWorkspaceContent parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Words to find in file contents, case-insensitive and in any order. in: query name: query required: true schema: description: Words to find in file contents, case-insensitive and in any order. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/WorkspaceContentSearchResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Search the contents of visible workspace files tags: - sessions /api/v1/sessions/{sessionId}/workspace/tree: get: operationId: listSessionWorkspaceTree parameters: - description: Session identifier, e.g. project-1. in: path name: sessionId required: true schema: description: Session identifier, e.g. project-1. type: string - description: Case-insensitive path search across the selected snapshot. in: query name: filter schema: description: Case-insensitive path search across the selected snapshot. type: string - description: Selected commit SHA. in: query name: commitSha schema: description: Selected commit SHA. type: string - description: Read the immutable review snapshot instead of the live worktree. in: query name: snapshot schema: description: Read the immutable review snapshot instead of the live worktree. type: boolean - description: Local or remote-tracking branch to read without checkout. in: query name: branch schema: description: Local or remote-tracking branch to read without checkout. type: string - description: Associated pull request number. in: query name: prNumber schema: description: Associated pull request number. type: integer - description: Associated pull request URL. in: query name: sourceUrl schema: description: Associated pull request URL. type: string - description: Pinned source tip for snapshot reads. Must remain reachable from the selected source. in: query name: expectedTipSha schema: description: Pinned source tip for snapshot reads. Must remain reachable from the selected source. type: string - description: Pinned comparison base for snapshot reads. in: query name: expectedBaseSha schema: description: Pinned comparison base for snapshot reads. type: string - description: Comma-separated selected commit SHAs. in: query name: commitShas schema: description: Comma-separated selected commit SHAs. type: string - description: Directory path relative to the session workspace root. Empty or omitted lists the root. in: query name: path schema: description: Directory path relative to the session workspace root. Empty or omitted lists the root. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListWorkspaceTreeResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List one directory level of a session workspace's full file tree, git-status decorated tags: - sessions /api/v1/sessions/background-tasks: get: operationId: listBackgroundTasks parameters: - description: Optional project id filter for dashboard cards. in: query name: projectId schema: description: Optional project id filter for dashboard cards. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListBackgroundTasksResponse' description: OK summary: List native background work for attached session controllers tags: - conversations /api/v1/sessions/cleanup: post: operationId: cleanupSessions parameters: - description: Project id filter. When omitted, clean terminated sessions across all projects. in: query name: project schema: description: Project id filter. When omitted, clean terminated sessions across all projects. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/CleanupSessionsResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Clean up terminated session workspaces tags: - sessions /api/v1/settings: get: operationId: getSettings responses: "200": content: application/json: schema: $ref: '#/components/schemas/SettingsResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Read the daemon-owned user preferences tags: - settings /api/v1/settings/account-handoff: patch: operationId: updateAccountHandoff requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateAccountHandoffRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SettingsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Choose whether a usage-limited Chat session moves to another account and retries its prompt tags: - settings /api/v1/settings/chat-hibernation: patch: operationId: updateChatHibernation requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateChatHibernationRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SettingsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Turn idle Chat hibernation on or off for this machine tags: - settings /api/v1/settings/commit-attribution: patch: operationId: updateCommitAttribution requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateCommitAttributionRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SettingsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Choose whether new sessions credit Orchestrator on their commits and PRs (beta) tags: - settings /api/v1/settings/computer-use: patch: operationId: updateComputerUse requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateComputerUseRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SettingsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Choose whether new chat sessions get tools to drive desktop apps through Cua Driver tags: - settings /api/v1/settings/harness-defaults/{agent}: patch: operationId: updateHarnessDefault parameters: - description: Agent adapter identifier. in: path name: agent required: true schema: description: Agent adapter identifier. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateHarnessDefaultRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SettingsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Choose which models one harness's pickers offer tags: - settings /api/v1/settings/session-interface: patch: operationId: updateSessionInterface requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateSessionInterfaceRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SettingsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Choose the default interface for new sessions tags: - settings /api/v1/settings/session-retention: patch: operationId: updateSessionRetention requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateSessionRetentionRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SettingsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Choose how long archived sessions are kept before they are deleted tags: - settings /api/v1/settings/version-refresh: patch: operationId: updateVersionRefresh requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateVersionRefreshRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/SettingsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Choose whether idle open sessions move to newly installed harness releases tags: - settings /api/v1/shell-terminals: get: operationId: listShellTerminals responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListShellTerminalsResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List the standalone shell terminals owned by the current app run tags: - shellTerminals post: operationId: openShellTerminal requestBody: content: application/json: schema: $ref: '#/components/schemas/OpenShellTerminalRequest' required: true responses: "201": content: application/json: schema: $ref: '#/components/schemas/ShellTerminalEnvelope' description: Created "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Open a standalone shell terminal tags: - shellTerminals /api/v1/shell-terminals/{handleId}: delete: operationId: closeShellTerminal parameters: - description: Shell terminal runtime handle identifier. in: path name: handleId required: true schema: description: Shell terminal runtime handle identifier. type: string responses: "204": description: No Content "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Close a standalone shell terminal and destroy its PTY tags: - shellTerminals patch: operationId: renameShellTerminal parameters: - description: Shell terminal runtime handle identifier. in: path name: handleId required: true schema: description: Shell terminal runtime handle identifier. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateShellTerminalRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/ShellTerminalEnvelope' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Rename a standalone shell terminal tab tags: - shellTerminals /api/v1/shell-terminals/{handleId}/reopen: post: operationId: reopenShellTerminal parameters: - description: Shell terminal runtime handle identifier. in: path name: handleId required: true schema: description: Shell terminal runtime handle identifier. type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ReopenShellTerminalRequest' responses: "200": content: application/json: schema: $ref: '#/components/schemas/ShellTerminalEnvelope' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "404": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Found "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Replace an ended shell terminal with a fresh shell in the same tab tags: - shellTerminals /api/v1/side-chats/launch/claim: post: operationId: claimSideChatLaunch requestBody: content: application/json: schema: $ref: '#/components/schemas/SideChatLaunchClaimRequest' required: true responses: "204": description: No Content "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: "" tags: - conversations /api/v1/side-chats/launch/retire: post: operationId: retireSideChatLaunch requestBody: content: application/json: schema: $ref: '#/components/schemas/SideChatLaunchClaimRequest' required: true responses: "204": description: No Content "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: "" tags: - conversations /api/v1/side-chats/launch/state: get: operationId: exportSideChatLaunch responses: "200": content: application/json: schema: $ref: '#/components/schemas/SideChatLaunchState' description: OK "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: "" tags: - conversations post: operationId: recoverSideChatLaunch requestBody: content: application/json: schema: $ref: '#/components/schemas/SideChatLaunchState' required: true responses: "204": description: No Content "409": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Conflict summary: "" tags: - conversations /api/v1/system/github-auth: get: operationId: getGitHubAuthRequirement responses: "200": content: application/json: schema: $ref: '#/components/schemas/SystemRequirement' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Check advisory GitHub CLI authentication without blocking startup tags: - system /api/v1/system/github-auth/terminal: post: operationId: openGitHubAuthTerminal responses: "201": content: application/json: schema: $ref: '#/components/schemas/ShellTerminalEnvelope' description: Created "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Open a trusted terminal running the GitHub CLI login flow tags: - system /api/v1/system/install/{target}: get: operationId: getSystemInstallStatus parameters: - description: 'Install target identifier: tmux, gh, claude, codex, opencode, opencode-v2, copilot, cloudflared, or cua-driver.' in: path name: target required: true schema: description: 'Install target identifier: tmux, gh, claude, codex, opencode, opencode-v2, copilot, cloudflared, or cua-driver.' enum: - tmux - gh - claude - codex - opencode - opencode-v2 - copilot - cloudflared - cua-driver type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/InstallJob' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Get the current or last known install job status for a system target tags: - system post: operationId: startSystemInstall parameters: - description: 'Install target identifier: tmux, gh, claude, codex, opencode, opencode-v2, copilot, cloudflared, or cua-driver.' in: path name: target required: true schema: description: 'Install target identifier: tmux, gh, claude, codex, opencode, opencode-v2, copilot, cloudflared, or cua-driver.' enum: - tmux - gh - claude - codex - opencode - opencode-v2 - copilot - cloudflared - cua-driver type: string responses: "202": content: application/json: schema: $ref: '#/components/schemas/InstallJob' description: Accepted "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Start (or return the already-running) install job for a fixed system target tags: - system /api/v1/system/requirements: get: operationId: getSystemRequirements responses: "200": content: application/json: schema: $ref: '#/components/schemas/SystemRequirementsResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Check local machine readiness (git, tmux, agent harness, gh) tags: - system /api/v1/task-preparations/{token}: delete: operationId: cancelTaskPreparation parameters: - description: Opaque speculative task-worktree token. in: path name: token required: true schema: description: Opaque speculative task-worktree token. type: string responses: "204": description: No Content "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Cancel an unclaimed speculative task worktree tags: - projects /api/v1/telemetry/identity: get: operationId: getTelemetryIdentity responses: "200": content: application/json: schema: $ref: '#/components/schemas/TelemetryIdentityResponse' description: OK "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Report the desktop telemetry identity and opt-out so a paired phone can adopt it tags: - identity /api/v1/terminal-shells: get: operationId: listTerminalShells responses: "200": content: application/json: schema: $ref: '#/components/schemas/TerminalShellsResponse' description: OK summary: List the shells installed on this machine for new terminals tags: - shellTerminals /api/v1/terminal-shells/check: get: operationId: checkTerminalShell parameters: - description: 'Custom shell: an absolute path, a ~/ path, or a command on PATH.' in: query name: path schema: description: 'Custom shell: an absolute path, a ~/ path, or a command on PATH.' type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/TerminalShellCheckResponse' description: OK summary: Check that a custom shell path is an executable tags: - shellTerminals /api/v1/usage/limit-history: put: operationId: setUsageLimitHistory requestBody: content: application/json: schema: $ref: '#/components/schemas/UsageLimitHistoryRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/UsageLimitHistoryResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Turn keeping limit readings, and reading limits in the background, on or off tags: - usage /api/v1/usage/limit-windows: get: operationId: getUsageLimitWindows parameters: - description: Days of readings to read; they are kept for 14. Defaults to 7. in: query name: days schema: description: Days of readings to read; they are kept for 14. Defaults to 7. maximum: 14 minimum: 1 type: integer responses: "200": content: application/json: schema: $ref: '#/components/schemas/UsageLimitWindowsResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Read each login's five-hour and weekly windows from the limit readings AO took tags: - usage /api/v1/usage/memory/pressure: get: operationId: getMemoryPressure responses: "200": content: application/json: schema: $ref: '#/components/schemas/MemoryPressureResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Read the machine's memory-pressure verdict without sampling any process tags: - usage /api/v1/usage/prices: get: operationId: getUsagePrices responses: "200": content: application/json: schema: $ref: '#/components/schemas/UsagePricesResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Read the user's model prices and the catalog models a model can price as tags: - usage put: operationId: setUsagePrices requestBody: content: application/json: schema: $ref: '#/components/schemas/UsagePricesRequest' required: true responses: "200": content: application/json: schema: $ref: '#/components/schemas/UsagePricesResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Replace the user's model prices and reprice the usage they change tags: - usage /api/v1/usage/report: get: operationId: getUsageReport parameters: - description: Days to read, today included. 1 reads the last 24 hours by hour. Defaults to 7. in: query name: days schema: description: Days to read, today included. 1 reads the last 24 hours by hour. Defaults to 7. maximum: 90 minimum: 1 type: integer - description: 'Whole windows to step back: 1 with days=7 reads the week before this one. Defaults to 0.' in: query name: offset schema: description: 'Whole windows to step back: 1 with days=7 reads the week before this one. Defaults to 0.' minimum: 0 type: integer - description: IANA time zone that days and hours are bucketed in. Defaults to UTC. in: query name: tz schema: description: IANA time zone that days and hours are bucketed in. Defaults to UTC. type: string - description: Read one project only. in: query name: projectId schema: description: Read one project only. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/UsageReportResponse' description: OK "400": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Bad Request "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: Read token and estimated cost usage over a window, by day or hour, for the usage page tags: - usage /api/v1/usage/sessions: get: operationId: listCompactSessionUsage parameters: - description: Optional project id filter for dashboard cards. in: query name: projectId schema: description: Optional project id filter for dashboard cards. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListCompactSessionUsageResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List compact token and estimated cost usage for session cards tags: - usage /api/v1/usage/sessions/memory: get: operationId: listSessionMemory parameters: - description: Optional project id filter for dashboard cards. in: query name: projectId schema: description: Optional project id filter for dashboard cards. type: string responses: "200": content: application/json: schema: $ref: '#/components/schemas/ListSessionMemoryResponse' description: OK "500": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Internal Server Error "501": content: application/json: schema: $ref: '#/components/schemas/APIError' description: Not Implemented summary: List resident memory of each live session's runtime process tree tags: - usage components: schemas: APIError: properties: code: type: string details: additionalProperties: {} type: object error: type: string message: type: string reporting_owner: enum: - http type: string requestId: type: string required: - error - code - message type: object AcknowledgeSessionInterfaceTransitionNoticeResponse: properties: ok: type: boolean sessionId: type: string transition: $ref: '#/components/schemas/SessionInterfaceTransition' required: - ok - sessionId - transition type: object ActivateConversationBranchResponse: properties: activeBranchId: type: string required: - activeBranchId type: object AddPRToStackRequest: properties: prUrl: minLength: 1 type: string required: - prUrl type: object AddProjectInput: properties: asWorkspace: type: boolean clonePreparationId: type: string config: $ref: '#/components/schemas/ProjectConfig' name: type: - "null" - string path: type: string projectId: type: - "null" - string required: - path type: object AgentAccountActivity: properties: currentStreakDays: type: - "null" - integer latestDay: type: - "null" - string latestDayTokens: type: - "null" - integer lifetimeTokens: type: - "null" - integer longestTurnSeconds: type: - "null" - integer peakDailyTokens: type: - "null" - integer type: object AgentAccountExtraUsage: properties: currency: type: string enabled: type: boolean monthlyLimit: type: - "null" - number usedCredits: type: - "null" - number required: - enabled type: object AgentAccountIdentity: properties: email: type: string method: enum: - account - api_key - token type: string name: type: string organization: type: string plan: type: string provider: type: string source: type: string sourceKind: enum: - environment - file - command - keychain type: string type: object AgentAccountLimitWindow: properties: durationMinutes: minimum: 0 type: integer id: type: string label: type: string resetsAt: format: date-time type: - "null" - string usedPercent: format: double maximum: 100 minimum: 0 type: number required: - id - label - usedPercent type: object AgentAccountLimits: properties: activity: $ref: '#/components/schemas/AgentAccountActivity' extraUsage: $ref: '#/components/schemas/AgentAccountExtraUsage' fetchedAt: format: date-time type: string resetCredits: minimum: 0 type: - "null" - integer windows: items: $ref: '#/components/schemas/AgentAccountLimitWindow' type: array required: - windows - fetchedAt type: object AgentAccountResponse: properties: createdAt: format: date-time type: - "null" - string default: type: boolean device: type: boolean email: type: string id: type: string keyHint: type: string kind: enum: - subscription - setup_token - api_key - metered type: string limits: $ref: '#/components/schemas/AgentAccountLimits' loggedIn: type: boolean name: type: string orgId: type: string orgName: type: string plan: type: string problem: type: string problemKind: enum: - slow - rate_limited - unavailable - cli_missing - other_login - other_org type: string provider: enum: - claude - codex type: string sameLoginAs: type: string signedIn: type: boolean required: - id - provider - device - kind - default - signedIn - loggedIn type: object AgentAccountUsageByModel: properties: costNanos: format: int64 type: integer model: type: string tokens: format: int64 type: integer required: - model - tokens - costNanos type: object AgentAccountUsageDay: properties: costNanos: format: int64 type: integer day: type: string tokens: format: int64 type: integer required: - day - tokens - costNanos type: object AgentAccountUsageResponse: properties: days: type: integer usage: items: $ref: '#/components/schemas/AgentAccountUsageRow' type: array required: - days - usage type: object AgentAccountUsageRow: properties: accountId: type: string costNanos: format: int64 type: integer daily: items: $ref: '#/components/schemas/AgentAccountUsageDay' type: array inputTokens: format: int64 type: integer models: items: $ref: '#/components/schemas/AgentAccountUsageByModel' type: array outputTokens: format: int64 type: integer required: - accountId - inputTokens - outputTokens - costNanos - daily - models type: object AgentAccountsResponse: properties: accounts: items: $ref: '#/components/schemas/AgentAccountResponse' type: array required: - accounts type: object AgentAuthDiagnostic: properties: cached: type: boolean checkedAt: format: date-time type: string code: type: string durationMs: format: int64 type: integer exitCode: type: - "null" - integer httpStatus: type: integer method: type: string nextStep: type: string provider: type: string reason: type: string source: type: string required: - method - code - reason - checkedAt - cached - durationMs type: object AgentAuthPlan: properties: action: type: string agentId: type: string available: type: boolean displayCommand: type: string documentationUrl: type: string guidance: type: string launchMode: enum: - terminal - documentation type: string logoutCommand: type: string methods: items: $ref: '#/components/schemas/AgentLoginMethod' type: array reason: type: string required: - agentId - action - launchMode - available - documentationUrl type: object AgentAuthenticationObservation: properties: account: $ref: '#/components/schemas/AgentAccountIdentity' attemptedAt: format: date-time type: - "null" - string checkedAt: format: date-time type: - "null" - string diagnostics: items: $ref: '#/components/schemas/AgentAuthDiagnostic' type: array freshness: enum: - fresh - stale - checking type: string reason: type: string reasonCode: type: string state: enum: - authorized - unauthorized - unknown - not_applicable - configured type: string required: - state - freshness - checkedAt - attemptedAt - reasonCode - reason type: object AgentConfig: properties: effort: type: string mode: type: string model: type: string permissions: type: string terminateOnPrMerge: type: - "null" - boolean type: object AgentInfo: properties: authStatus: description: Auth probe result. authorized means a provider round-trip accepted the credential; configured means a credential exists locally but was never validated, and must not be presented as ready; spawn remains the authoritative validation point. enum: - authorized - unauthorized - unknown - configured type: string id: type: string label: type: string lastUsedAt: description: Creation time of the newest retained session currently attributed to this agent. format: date-time type: - "null" - string usageCount: description: Number of retained sessions currently attributed to this agent. type: integer required: - id - label type: object AgentInstallJobsResponse: properties: jobs: items: $ref: '#/components/schemas/InstallJob' type: array required: - jobs type: object AgentInstallMethod: properties: available: type: boolean command: type: string expectedDestination: type: string id: type: string label: type: string notice: type: string reason: type: string recommended: type: boolean reinstallAvailable: type: boolean reinstallCommand: type: string reinstallReason: type: string updateAvailable: type: boolean updateCommand: type: string updateReason: type: string required: - id - label - available - recommended - reinstallAvailable - updateAvailable type: object AgentInstallPlan: properties: agentId: type: string automatic: type: boolean available: type: boolean command: type: string documentationUrl: type: string expectedDestination: type: string method: type: string methods: items: $ref: '#/components/schemas/AgentInstallMethod' type: array notice: type: string reason: type: string required: - agentId - available - automatic - method - documentationUrl - methods type: object AgentInstallationObservation: properties: attemptedAt: format: date-time type: - "null" - string checkedAt: format: date-time type: - "null" - string freshness: enum: - fresh - stale - checking type: string reason: type: string reasonCode: type: string state: enum: - installed - not_installed - unknown type: string required: - state - freshness - checkedAt - attemptedAt - reasonCode - reason type: object AgentInstallerCatalogResponse: properties: agents: items: $ref: '#/components/schemas/AgentInstallPlan' type: array required: - agents type: object AgentLoginActionRequest: properties: action: enum: - previous - next - select - "1" - "2" - "3" - "4" - "5" - "6" - "7" - "8" - "9" type: string option: maxLength: 256 type: string required: - action type: object AgentLoginMethod: properties: id: type: string label: type: string secret: type: boolean required: - id - label - secret type: object AgentLoginSnapshot: properties: acceptsCode: type: boolean agentId: type: string deviceCode: type: string expiresAt: format: date-time type: string id: type: string loginUrl: type: string method: type: string nativeOptions: items: type: string type: array nativePrompt: enum: - waiting - menu - terminal_required type: string selectedOption: type: string status: enum: - running - succeeded - failed - cancelled - timed_out type: string withdrawFailed: type: boolean required: - id - agentId - method - status - expiresAt type: object AgentModelInfo: properties: contextWindow: format: int64 type: integer defaultEffort: type: string efforts: items: type: string type: array id: type: string inputs: items: type: string type: array isDefault: type: boolean label: type: string lastUsedAt: format: date-time type: - "null" - string provider: type: string requiresVersion: type: string supportsFast: type: boolean unavailableReason: type: string required: - id - label type: object AgentModelsResponse: properties: agentId: type: string allowCustom: type: boolean binaryVersion: type: string configuredProviders: items: type: string type: array customModelEntry: enum: - none - direct - configured type: string fetchedAt: format: date-time type: string inputFingerprint: type: string lastSuccessAt: format: date-time type: - "null" - string metadata: additionalProperties: type: string type: object models: items: $ref: '#/components/schemas/AgentModelInfo' type: array providers: items: type: string type: array refreshError: type: string refreshRecommended: type: boolean refreshState: enum: - idle - queued - refreshing - error type: string retryAt: format: date-time type: - "null" - string runnableModels: items: type: string type: array selectionMode: enum: - catalog - text - mode type: string source: type: string stale: type: boolean validatedAt: format: date-time type: string warning: type: string warningCode: enum: - auth_required - auth_expired type: string required: - agentId - selectionMode - models - customModelEntry - allowCustom - source - fetchedAt - stale type: object AgentReadinessResponse: properties: agents: items: $ref: '#/components/schemas/AgentReadinessSnapshot' type: array required: - agents type: object AgentReadinessSnapshot: properties: authentication: $ref: '#/components/schemas/AgentAuthenticationObservation' canStopTurn: type: boolean effectiveReadiness: enum: - ready - not_ready - unknown type: string id: type: string installation: $ref: '#/components/schemas/AgentInstallationObservation' label: type: string lastUsedAt: format: date-time type: - "null" - string usageCount: type: integer required: - id - label - installation - authentication - effectiveReadiness - usageCount type: object AgentUpdateAdvisory: properties: agentId: type: string binaryPath: type: string checkedAt: format: date-time type: string currentVersion: type: string inUse: $ref: '#/components/schemas/AgentUpdateInUse' latestVersion: type: string maintenanceMethod: type: string reason: enum: - ownership_unconfirmed - unsupported_source - version_unparseable - channel_unconfirmed - lookup_failed - disabled - build_unordered type: string source: type: string status: enum: - unknown - current - behind_latest - ahead_of_latest type: string required: - agentId - status - checkedAt type: object AgentUpdateInUse: properties: level: description: 'Whether an update can run while they do: safe keeps the running release, warn may disturb it, blocked requires them to end, idle waits until they are idle and restarts them around the update.' enum: - safe - warn - blocked - idle type: string liveSessions: description: Sessions running this harness, directly or through their reviewer. type: integer sessionIds: description: Sessions that run this harness or own a reviewer that does. items: type: string type: array required: - liveSessions - level type: object AppMemoryResponse: properties: cpuMeasured: description: 'False when there was no earlier sample to measure against: cpuPercent is unknown, not zero.' type: boolean cpuPercent: format: double minimum: 0 type: number own: $ref: '#/components/schemas/SessionMemoryResponse' processCount: minimum: 0 type: integer reviewers: items: $ref: '#/components/schemas/ControllersReviewerMemoryResponse' type: array rssBytes: minimum: 0 type: integer required: - rssBytes - processCount - cpuPercent - cpuMeasured type: object ArtifactFileResponse: properties: fileFingerprint: description: Hex SHA-256 of the file's content. type: string path: type: string size: format: int64 type: integer required: - path - size - fileFingerprint type: object ArtifactVersionResponse: properties: content: description: The version's UTF-8 text content, cut short when truncated is set. type: string createdAt: format: date-time type: string fileFingerprint: description: Hex SHA-256 of the version's content. type: string harness: description: 'Best effort: the agent that was running the session when the version was recorded, which after an agent switch can differ from the agent that wrote it. Absent for older versions.' type: string path: type: string restoredFrom: description: The version this one restored, when it is a restore. format: int64 type: integer size: format: int64 type: integer source: description: 'Who wrote the version: the agent, or the user through a save or restore.' enum: - agent - user type: string truncated: description: The content is only the first 256 KiB of the version. A restore still writes the whole version. type: boolean version: format: int64 type: integer required: - version - size - source - fileFingerprint - createdAt - path - content type: object ArtifactVersionSummary: properties: createdAt: format: date-time type: string fileFingerprint: description: Hex SHA-256 of the version's content. type: string harness: description: 'Best effort: the agent that was running the session when the version was recorded, which after an agent switch can differ from the agent that wrote it. Absent for older versions.' type: string restoredFrom: description: The version this one restored, when it is a restore. format: int64 type: integer size: format: int64 type: integer source: description: 'Who wrote the version: the agent, or the user through a save or restore.' enum: - agent - user type: string version: format: int64 type: integer required: - version - size - source - fileFingerprint - createdAt type: object AttachmentInput: properties: data: type: string mimeType: type: string uploadId: type: string type: object AttachmentUploadResponse: properties: bytes: format: int64 type: integer uploadId: type: string required: - uploadId - bytes type: object AttributionConfig: properties: disableCommitTrailer: type: boolean disablePRFooter: type: boolean type: object AutoSpawnPause: properties: effort: type: string errorCode: type: string failures: type: integer harness: type: string kind: type: string message: type: string model: type: string pausedAt: format: date-time type: string required: - harness - errorCode - message - failures - pausedAt type: object AutomationEnvelope: properties: automation: $ref: '#/components/schemas/AutomationResponse' required: - automation type: object AutomationResponse: properties: createdAt: format: date-time type: string displayName: type: string effort: type: string enabled: type: boolean harness: type: string id: type: string kind: enum: - worker - orchestrator type: string lastRunAt: format: date-time type: - "null" - string latestRun: $ref: '#/components/schemas/AutomationRunSummaryResponse' mode: type: string model: type: string nextRunAt: format: date-time type: string projectId: type: string prompt: type: string rrule: type: string templateId: enum: - custom - daily_pr_review_v1 - daily_issue_triage_v1 - weekly_release_notes_v1 type: string timezone: type: string updatedAt: format: date-time type: string useCase: enum: - pr_review - issue_triage - repo_digest - ci_triage - release_notes - security_audit - dependency_maintenance - docs_maintenance - other - unknown type: string required: - id - projectId - displayName - prompt - useCase - templateId - kind - rrule - timezone - enabled - nextRunAt - createdAt - updatedAt type: object AutomationRunResponse: properties: attemptCount: format: int64 type: integer automationId: type: string claimedAt: format: date-time type: - "null" - string createdAt: format: date-time type: string errorMessage: type: string finishedAt: format: date-time type: - "null" - string id: type: string leaseExpiresAt: format: date-time type: - "null" - string scheduledFor: format: date-time type: string sessionId: type: string startedAt: format: date-time type: - "null" - string status: enum: - pending - spawning - running - completed - failed type: string updatedAt: format: date-time type: string required: - id - automationId - scheduledFor - status - attemptCount - createdAt - updatedAt type: object AutomationRunSummaryResponse: properties: errorMessage: type: string finishedAt: format: date-time type: - "null" - string id: type: string scheduledFor: format: date-time type: string sessionId: type: string startedAt: format: date-time type: - "null" - string status: enum: - pending - spawning - running - completed - failed type: string required: - id - status - scheduledFor type: object AwakeApplication: properties: id: type: string identity: type: string name: type: string protected: type: boolean required: - protected - id - name - identity type: object AwakeCapability: properties: available: type: boolean id: type: string reason: type: string required: - id - available - reason type: object AwakeCondition: properties: end: type: string kind: enum: - agent_activity - schedule - power - battery - network - device - display - app - uptime - download type: string start: type: string threshold: type: integer timezone: type: string value: type: string required: - kind - value - threshold - start - end - timezone type: object AwakeDownloadsRequest: properties: activeIds: items: type: string type: array required: - activeIds type: object AwakeObservation: properties: agentActive: type: - "null" - boolean appPause: type: boolean applications: items: $ref: '#/components/schemas/AwakeApplication' type: array audioControl: type: boolean batteryPercent: type: - "null" - integer browsers: items: $ref: '#/components/schemas/AwakeApplication' type: array devices: items: type: string type: array displayControl: type: boolean externalDisplays: type: integer keyboardControl: type: boolean knownNetworks: items: type: string type: array lowPowerAuthorized: type: boolean lowPowerControl: type: boolean lowPowerMode: type: boolean networkAddresses: items: type: string type: array networkConnected: type: - "null" - boolean observedAt: format: date-time type: string onBattery: type: - "null" - boolean thermal: type: string uptimeSeconds: format: double type: number required: - displayControl - keyboardControl - observedAt - thermal - uptimeSeconds - externalDisplays - networkAddresses - devices - lowPowerControl - lowPowerAuthorized - lowPowerMode - applications - audioControl - appPause - browsers - knownNetworks type: object AwakeRule: properties: conditions: items: $ref: '#/components/schemas/AwakeCondition' type: array enabled: type: boolean id: type: string lidClosed: type: boolean match: enum: - all - any type: string name: type: string suppressed: type: boolean required: - id - name - enabled - match - conditions - lidClosed - suppressed type: object AwakeRulesRequest: properties: rules: items: $ref: '#/components/schemas/AwakeRule' type: array required: - rules type: object AwakeSession: properties: boundId: type: string boundIdentity: type: string createdAt: format: date-time type: string deadline: format: date-time type: - "null" - string endReason: type: string endedAt: format: date-time type: - "null" - string id: type: string label: type: string lidClosed: type: boolean mode: enum: - indefinite - duration - until - app - download type: string scope: enum: - ao - session type: string sessionId: type: string required: - id - scope - sessionId - label - mode - createdAt - boundId - boundIdentity - endReason - lidClosed type: object AwakeSettings: properties: agentReconnect: type: boolean browserActions: type: boolean darkenKeyboard: type: boolean displayAwake: type: boolean hotspotName: type: string hotspotRecovery: type: boolean lidClosed: type: boolean lowPowerBatteryPercent: type: integer lowPowerOnSeriousHeat: type: boolean muteAudio: type: boolean pauseApps: items: type: string type: array restoreDisplay: type: boolean stopBatteryPercent: type: integer required: - lidClosed - displayAwake - stopBatteryPercent - lowPowerBatteryPercent - lowPowerOnSeriousHeat - muteAudio - darkenKeyboard - restoreDisplay - pauseApps - hotspotName - hotspotRecovery - agentReconnect - browserActions type: object AwakeState: properties: active: type: boolean activeRules: items: type: string type: array agentOutcome: type: string capabilities: items: $ref: '#/components/schemas/AwakeCapability' type: array lidActive: type: boolean networkOutcome: type: string observation: $ref: '#/components/schemas/AwakeObservation' paused: type: boolean reason: type: string rules: items: $ref: '#/components/schemas/AwakeRule' type: array sessions: items: $ref: '#/components/schemas/AwakeSession' type: array settings: $ref: '#/components/schemas/AwakeSettings' startedAt: format: date-time type: - "null" - string required: - agentOutcome - settings - sessions - rules - activeRules - capabilities - observation - active - lidActive - reason - paused - networkOutcome type: object BackgroundTaskOutputResponse: properties: availability: description: unavailable when this provider or session cannot report the task's output; output is then empty. enum: - ready - unavailable type: string logOmitted: description: 'True when the task''s command writes a log that output leaves out because it can''t be shown as this run''s: a later run writes the same file, the file was written after the run ended, or the run''s final log isn''t kept yet and no earlier read of it was saved. Output then holds only what the task printed itself.' type: boolean logOutsideWorkspace: description: True when the task's command writes its output to a log file outside the session's workspace, which is not read. type: boolean output: description: 'The most recent output: at most the last 200 lines and 64 KB, with terminal escapes and control characters removed.' type: string runId: description: The run this output belongs to, when the provider gives runs their own ID. Output for another run of a reused task ID is not the requested run's. type: string sessionId: type: string stale: description: True when the provider stopped sending this task's output, so anything it printed since is missing. type: boolean taskId: type: string truncated: description: True when older output was left out or is missing. type: boolean required: - sessionId - taskId - availability - output type: object BackgroundTaskResponse: properties: command: description: The shell command line, when the provider reports one. Credentials in it are redacted. type: string description: type: string endedAt: format: date-time type: - "null" - string id: type: string kind: enum: - shell - agent - other type: string runId: type: string startedAt: description: When the provider started the task, or else when the daemon first observed it. format: date-time type: - "null" - string state: enum: - running - paused - completed - failed - stopped type: string stoppable: description: True when this provider can stop this running task. type: boolean required: - id - kind - description - state type: object BackgroundTasksResponse: properties: availability: enum: - ready - partial - unavailable type: string controllerGeneration: type: string observedAt: format: date-time type: - "null" - string sessionId: type: string tasks: items: $ref: '#/components/schemas/BackgroundTaskResponse' type: array required: - sessionId - controllerGeneration - availability - tasks type: object BrowserCommandRequest: properties: action: type: string args: additionalProperties: {} type: object sessionId: type: string required: - sessionId - action type: object BrowserCommandResponse: properties: action: type: string requestId: type: string result: {} sessionId: type: string required: - requestId - sessionId - action - result type: object BrowserStatusResponse: properties: client: type: string clientVersion: type: string connected: type: boolean connectedAt: format: date-time type: string sessionId: type: string target: enum: - panel - chrome type: string transport: enum: - electron-webcontents-debugger - chrome-extension type: string required: - sessionId - connected - transport - target type: object CancelReviewResponse: properties: reviewerHandleId: type: string reviews: items: $ref: '#/components/schemas/PRReviewState' type: array required: - reviewerHandleId - reviews type: object CancelSessionInterfaceTransitionResponse: properties: ok: type: boolean sessionId: type: string required: - ok - sessionId type: object CatalogProvider: properties: env: type: string id: type: string models: type: integer name: type: string required: - id - name - models type: object ChangePRStateRequest: properties: action: enum: - close - reopen - ready - draft type: string prUrl: minLength: 1 type: string required: - prUrl - action type: object ChangePRStateResponse: properties: ok: type: boolean prNumber: type: integer state: enum: - open - draft - closed type: string stateChangedAt: format: date-time type: string required: - ok - prNumber - state - stateChangedAt type: object ChatAgentPermissionModes: properties: agent: type: string modes: items: type: string type: array required: - agent - modes type: object ChatExcerptRange: properties: end: type: integer offsetUnit: enum: - utf-16 type: string start: type: integer required: - start - end - offsetUnit type: object ChatExcerptSnapshot: properties: badgeOnly: type: boolean captureMode: enum: - exact - block - legacy type: string containsFlowchart: type: boolean contextOmitted: type: boolean diagramRange: $ref: '#/components/schemas/ChatExcerptRange' prefix: type: string rawText: type: string referenceFormat: enum: - numbered-v1 type: string renderedRange: $ref: '#/components/schemas/ChatExcerptRange' sourceRange: $ref: '#/components/schemas/ChatExcerptRange' sourceTurnId: type: string suffix: type: string turn: $ref: '#/components/schemas/ChatExcerptTurnSnapshot' version: type: integer required: - version - rawText - captureMode type: object ChatExcerptTurnMessage: properties: role: enum: - user - assistant type: string text: type: string required: - role - text type: object ChatExcerptTurnSnapshot: properties: id: type: string messages: items: $ref: '#/components/schemas/ChatExcerptTurnMessage' type: array truncated: type: boolean required: - id - messages type: object ChatFileReferenceLine: properties: kind: enum: - context - add - del type: string newNo: type: - "null" - integer oldNo: type: - "null" - integer side: enum: - file - old - new type: string text: type: string required: - kind - oldNo - newNo - text type: object ChatFileReferenceSource: properties: kind: enum: - workspace - pull_request - artifact type: string number: type: integer snapshot: type: string url: type: string required: - kind type: object ChatPermissionModesResponse: properties: agents: items: $ref: '#/components/schemas/ChatAgentPermissionModes' type: array required: - agents type: object CheckProviderKeyRequest: properties: secret: type: string type: object ClaimPRRequest: properties: allowTakeover: type: - "null" - boolean pr: minLength: 1 type: string required: - pr type: object ClaimPRResponse: properties: branchChanged: type: boolean ok: type: boolean prs: items: $ref: '#/components/schemas/SessionPRFacts' type: array sessionId: type: string takenOverFrom: items: type: string type: array required: - ok - sessionId - prs - branchChanged - takenOverFrom type: object CleanupSessionsResponse: properties: alreadyGone: items: type: string type: array cleaned: items: type: string type: array ok: type: boolean skipped: items: $ref: '#/components/schemas/CleanupSkippedSession' type: array required: - ok - cleaned - alreadyGone - skipped type: object CleanupSkippedSession: properties: code: enum: - dirty - locked_worktree - missing_repo - archived_project_unresolvable - permission_error - cleanup_script_failed - worktree_busy - in_use_by_live_session - shell_terminal_open - cleanup_running - attachment_preservation_failed - outside_managed_root - teardown_failed type: string reason: type: string sessionId: type: string required: - sessionId - code - reason type: object ClearNotificationsResponse: properties: clearEpoch: description: Daemon epoch for ordering notification clears across one daemon lifetime. type: string clearId: description: Identifier shared with the ordered notification_cleared stream event. type: string clearSequence: description: Monotonic notification-clear sequence within clearEpoch. format: int64 type: integer clearedCount: description: Number of notifications deleted. format: int64 type: integer required: - clearedCount - clearId - clearEpoch - clearSequence type: object CloneDestination: properties: canUseExisting: type: boolean exists: type: boolean path: type: string remoteUrl: type: string required: - remoteUrl - path - exists - canUseExisting type: object ClonePreparationResult: properties: path: type: string preparationId: type: string remoteUrl: type: string required: - path - remoteUrl - preparationId type: object ClonePrepareStreamEvent: properties: error: $ref: '#/components/schemas/APIError' progress: $ref: '#/components/schemas/CloneProgress' result: $ref: '#/components/schemas/ClonePreparationResult' type: object CloneProgress: properties: attempt: minimum: 1 type: integer percent: maximum: 100 minimum: 0 type: - "null" - integer phase: enum: - enumerating_objects - counting_objects - compressing_objects - receiving_objects - resolving_deltas - updating_files - filtering_content - retrying type: string required: - phase - attempt type: object CloneProjectInput: properties: config: $ref: '#/components/schemas/ProjectConfig' destinationParent: minLength: 1 type: string name: type: - "null" - string projectId: type: - "null" - string remoteUrl: minLength: 1 type: string required: - remoteUrl - destinationParent type: object CloseSessionDeviceRequest: properties: shutdown: description: Also power the simulator or emulator off. type: boolean type: object CodewhaleLifecycleEvent: properties: created_at: format: date-time type: string event: type: string item_id: type: - "null" - string kind: enum: - session.started - turn.started - turn.completed - turn.failed - turn.interrupted - turn.stalled - session.ended - subagent.spawned - subagent.completed type: string payload: {} schema_version: type: integer seq: minimum: 0 type: integer thread_id: type: string timestamp: format: date-time type: string turn_id: type: string required: - schema_version - seq - event - kind - thread_id type: object CodewhaleLifecycleWebhookRequest: properties: at: format: date-time type: string event: $ref: '#/components/schemas/CodewhaleLifecycleEvent' required: - event type: object CodexAccountCapabilitiesResponse: properties: globalSwitch: $ref: '#/components/schemas/CodexCapabilityObservationResponse' nativeLogin: $ref: '#/components/schemas/CodexCapabilityObservationResponse' resetCreditConsume: $ref: '#/components/schemas/CodexCapabilityObservationResponse' required: - nativeLogin - resetCreditConsume - globalSwitch type: object CodexAccountCapacityResponse: properties: additionalBuckets: items: $ref: '#/components/schemas/CodexCapacityBucketResponse' type: array attemptedAt: format: date-time type: - "null" - string checkedAt: format: date-time type: - "null" - string freshness: enum: - fresh - stale - checking type: string observedAt: format: date-time type: - "null" - string overall: $ref: '#/components/schemas/CodexCapacityBucketResponse' plan: type: - "null" - string reason: type: string reasonCode: type: string remainingPercent: maximum: 100 minimum: 0 type: - "null" - number resetCredits: $ref: '#/components/schemas/CodexResetCreditsSummaryResponse' resetsAt: format: date-time type: - "null" - string state: enum: - available - near_limit - exhausted - unknown - unsupported type: string usedPercent: maximum: 100 minimum: 0 type: - "null" - number required: - state - freshness - reasonCode - reason - additionalBuckets type: object CodexAccountLoginResponse: properties: account: $ref: '#/components/schemas/CodexAccountResponse' accountId: type: string expiresAt: format: date-time type: string operationId: type: string reason: type: string reasonCode: type: string status: enum: - pending - verifying - unauthorized - retryable - completed - cancelled - failed - expired type: string required: - operationId - status - reasonCode - reason - expiresAt type: object CodexAccountLoginTerminalResponse: properties: createdAt: format: date-time type: string handleId: type: string title: type: string required: - handleId - title - createdAt type: object CodexAccountResponse: properties: accountEmail: type: - "null" - string active: type: boolean authMethod: enum: - chatgpt - api_key - other - unknown type: string authentication: $ref: '#/components/schemas/CodexAuthenticationResponse' capacity: $ref: '#/components/schemas/CodexAccountCapacityResponse' createdAt: format: date-time type: string id: type: string label: type: string reason: type: string reasonCode: type: string status: enum: - valid - signed_out - broken type: string usageSummary: $ref: '#/components/schemas/CodexAccountUsageSummaryResponse' required: - id - label - status - reasonCode - reason - active - authentication - authMethod - capacity - createdAt type: object CodexAccountSwitchResponse: properties: completedAt: format: date-time type: - "null" - string createdAt: format: date-time type: string credentialsCommittedAt: format: date-time type: - "null" - string failureCode: type: string id: type: string phase: enum: - requested - checkpointing_source - activating_target - recovery_required - completed - failed type: string sourceAccountId: type: string sourceKind: enum: - managed - device - none type: string targetAccountId: type: string updatedAt: format: date-time type: string required: - id - sourceKind - targetAccountId - phase - createdAt - updatedAt type: object CodexAccountUsageSummaryResponse: properties: currentStreakDays: type: - "null" - integer latestDayStartDate: type: - "null" - string latestDayTokens: type: - "null" - integer lifetimeTokens: type: - "null" - integer longestRunningTurnSeconds: type: - "null" - integer longestStreakDays: type: - "null" - integer observedAt: format: date-time type: string peakDailyTokens: type: - "null" - integer required: - observedAt type: object CodexAccountsResponse: properties: accountRevision: format: int64 type: integer accounts: items: $ref: '#/components/schemas/CodexAccountResponse' type: array activeAccountId: type: string activeLogin: $ref: '#/components/schemas/CodexActiveLoginResponse' capabilities: $ref: '#/components/schemas/CodexAccountCapabilitiesResponse' currentSwitch: $ref: '#/components/schemas/CodexAccountSwitchResponse' deviceReconciliation: $ref: '#/components/schemas/CodexDeviceReconciliationResponse' required: - accountRevision - accounts - capabilities - deviceReconciliation type: object CodexActiveLoginResponse: properties: accountId: type: string expiresAt: format: date-time type: string operationId: type: string reason: type: string reasonCode: type: string shellTerminal: $ref: '#/components/schemas/CodexAccountLoginTerminalResponse' status: enum: - pending - verifying - unauthorized - retryable - completed - cancelled - failed - expired type: string required: - operationId - status - reasonCode - reason - expiresAt - shellTerminal type: object CodexAuthenticationResponse: properties: attemptedAt: format: date-time type: - "null" - string checkedAt: format: date-time type: - "null" - string freshness: enum: - fresh - stale - checking type: string reason: type: string reasonCode: type: string state: enum: - authorized - unauthorized - unknown - not_applicable type: string required: - state - freshness - checkedAt - attemptedAt - reasonCode - reason type: object CodexCapabilityObservationResponse: properties: reason: type: string reasonCode: type: string state: enum: - supported - unsupported - unknown type: string required: - state - reasonCode - reason type: object CodexCapacityBucketResponse: properties: displayName: type: - "null" - string primary: $ref: '#/components/schemas/CodexCapacityWindowResponse' reached: enum: - not_reached - reached - unknown type: string secondary: $ref: '#/components/schemas/CodexCapacityWindowResponse' required: - reached type: object CodexCapacityWindowResponse: properties: resetsAt: format: date-time type: - "null" - string usedPercent: format: double maximum: 100 minimum: 0 type: number windowDurationMinutes: type: - "null" - integer required: - usedPercent type: object CodexDeviceReconciliationResponse: properties: activeAccountVerified: type: boolean attemptedAt: format: date-time type: - "null" - string nextRetryAt: format: date-time type: - "null" - string reasonCode: type: string retryable: type: boolean status: enum: - not_checked - checking - verified - temporarily_unavailable - blocked type: string verifiedAt: format: date-time type: - "null" - string required: - status - activeAccountVerified - reasonCode - retryable type: object CodexResetCreditsSummaryResponse: properties: availableCount: format: int64 minimum: 0 type: integer nearestExpiresAt: format: date-time type: - "null" - string required: - availableCount type: object CompactConversationResponse: properties: tokensAfter: format: int64 type: integer tokensBefore: format: int64 type: integer type: object CompactSessionUsageResponse: properties: estimatedCost: anyOf: - type: "null" - $ref: '#/components/schemas/EstimatedCostResponse' type: object incomplete: type: boolean processedTokens: description: Canonical input plus output. Null when either component is unknown. minimum: 0 type: - "null" - integer sessionId: type: string totalTokens: description: Deprecated compatibility alias for processedTokens. format: int64 minimum: 0 type: integer required: - sessionId - processedTokens - totalTokens - incomplete - estimatedCost type: object ComputerUseAgentTool: properties: description: type: string inputSchema: additionalProperties: {} description: The tool's JSON Schema input, without the arguments AO sets itself. type: - object - "null" name: type: string required: - name - description - inputSchema type: object ComputerUseAgentToolsResponse: properties: tools: items: $ref: '#/components/schemas/ComputerUseAgentTool' type: array required: - tools type: object ComputerUseCallRequest: properties: arguments: additionalProperties: {} description: Tool arguments as a JSON object. type: object sessionId: description: AO session the call is made for. Screenshots are saved under it, and calls for the same AO session share one Cua Driver session unless arguments.session names another. type: string tool: description: Driver tool name, e.g. list_windows or get_window_state. type: string required: - tool type: object ComputerUseCallResult: properties: images: description: Screenshots this call saved. Open them with an image viewer. items: $ref: '#/components/schemas/ComputerUseImage' type: array result: description: 'The tool''s JSON output. Inline images are replaced by *_file_path fields. After an action, observation holds AO''s read of the window: the tree diff and a screenshot file.' tool: type: string required: - tool - result - images type: object ComputerUseDoctorResponse: properties: report: description: Cua Driver's own environment report (cua-driver doctor). type: string required: - report type: object ComputerUseImage: properties: mimeType: type: string path: type: string required: - path - mimeType type: object ComputerUsePermissions: properties: accessibility: description: Accessibility, needed to read and operate app controls. enum: - granted - missing - unknown type: string grantError: description: Why the last permission request failed. type: string granting: description: A permission request is waiting on the user in System Settings. type: boolean screenRecording: description: Screen Recording, needed for screenshots. enum: - granted - missing - unknown type: string required: - accessibility - screenRecording - granting type: object ComputerUseStatus: properties: binaryPath: description: The cua-driver executable AO runs. type: string daemon: description: Whether Cua Driver's background service answers. enum: - running - stopped - unknown type: string imageDirectory: description: Where screenshots from computer-use calls are saved. type: string installed: type: boolean latestVersion: description: Newest release on the driver's update channel, when it could be checked. type: string permissions: $ref: '#/components/schemas/ComputerUsePermissions' description: macOS only. platform: description: 'Operating system the daemon runs on: darwin, linux, or windows.' type: string releaseNotesUrl: type: string updateAvailable: type: boolean version: type: string required: - platform - installed - updateAvailable - daemon - imageDirectory type: object ConsumeAgentAccountResetCreditRequest: properties: idempotencyKey: maxLength: 128 minLength: 1 type: string required: - idempotencyKey type: object ConsumeAgentAccountResetCreditResponse: properties: outcome: enum: - reset - already_redeemed - nothing_to_reset type: string required: - outcome type: object ConsumeCodexAccountResetCreditRequest: properties: idempotencyKey: maxLength: 200 minLength: 1 type: string required: - idempotencyKey type: object ContainerReapConfig: properties: disabled: type: boolean type: object ControllersAddAgentAccountAPIKeyRequest: properties: apiKey: type: string name: type: string provider: enum: - claude type: string required: - provider - apiKey type: object ControllersBrowserChromeChannel: properties: available: type: boolean manifestPath: type: string name: type: string registered: type: boolean required: - name - available - registered - manifestPath type: object ControllersBrowserChromeStatusResponse: properties: channels: items: $ref: '#/components/schemas/ControllersBrowserChromeChannel' type: array clientVersion: type: string connected: type: boolean enabled: type: boolean extensionBundled: type: boolean extensionId: type: string extensionPath: type: string extensionVersion: type: string hostPath: type: string required: - enabled - connected - extensionId - extensionPath - extensionBundled - hostPath - channels type: object ControllersConversationTurnArtifactResponse: properties: path: type: string status: enum: - added - modified type: string required: - path - status type: object ControllersConversationTurnArtifactsResponse: properties: files: items: $ref: '#/components/schemas/ControllersConversationTurnArtifactResponse' type: array required: - files type: object ControllersForkSessionRequest: properties: clientRequestId: minLength: 1 type: string turnId: type: string required: - clientRequestId type: object ControllersForkSessionResponse: properties: displayName: type: string sessionId: type: string required: - sessionId - displayName type: object ControllersInterruptConversationRequest: properties: turnId: type: string type: object ControllersKeepAwakeStatus: properties: active: type: boolean enabled: type: boolean hasBattery: type: boolean lidActive: type: boolean lidClosed: type: boolean lidReason: type: string lidSupported: type: boolean supported: type: boolean required: - supported - enabled - active - hasBattery type: object ControllersKeptArtifactsView: properties: artifactFiles: items: $ref: '#/components/schemas/SessionArtifact' type: array at: description: When the session was deleted, or last updated. format: date-time type: string projectId: type: string sessionDeleted: type: boolean sessionId: type: string title: type: string required: - sessionId - title - sessionDeleted - at - artifactFiles type: object ControllersKillSessionRequest: properties: callerSessionId: type: string deleteArtifacts: type: boolean type: object ControllersListKeptArtifactsResponse: properties: sets: items: $ref: '#/components/schemas/ControllersKeptArtifactsView' type: array required: - sets type: object ControllersPairDeviceRequest: properties: name: description: Name shown in the host's device list. type: string platform: description: The device's platform, such as ios, android, darwin, win32 or linux. type: string type: object ControllersPairDeviceResponse: properties: credential: enum: - pairing-code - password type: string deviceId: type: string hostId: type: string token: type: string required: - hostId - deviceId - token - credential type: object ControllersPairingCodeResponse: properties: code: type: string expiresAt: format: date-time type: string required: - code - expiresAt type: object ControllersPaneBox: properties: height: description: Height, 0 to 1. format: double type: number key: description: Key of the tab shown in this pane. type: string width: description: Width, 0 to 1. format: double type: number x: description: Left edge, 0 to 1. format: double type: number "y": description: Top edge, 0 to 1. format: double type: number required: - key - x - "y" - width - height type: object ControllersPaneCommandRequest: properties: action: description: split shows tab beside another; remove takes a tab out of its group; ungroup dissolves a group; focus brings a tab on screen; close closes a terminal tab. enum: - split - remove - ungroup - focus - close type: string beside: description: 'For split: key of the tab to split beside. Defaults to the tab on screen.' type: - "null" - string group: description: 'For ungroup: group id. Defaults to the group on screen.' type: - "null" - string side: description: 'For split: which side of beside the tab goes. Defaults to right.' enum: - left - right - top - bottom type: - "null" - string tab: description: Tab key. For split, also terminal (open a new shell terminal) or file: (open the file). type: - "null" - string required: - action type: object ControllersPaneGroup: properties: focus: description: Key of the group's focused pane. type: string id: description: Group id, for ungroup. type: string panes: description: Every pane of the split with its position. items: $ref: '#/components/schemas/ControllersPaneBox' type: array required: - id - focus - panes type: object ControllersPaneInputRequest: properties: close: description: Close the terminal tab (its shell may already have exited). type: boolean enter: description: Press Enter after the text. Defaults to true. type: - "null" - boolean interrupt: description: Send Ctrl-C instead of text. type: boolean tab: description: Key of one of this session's terminal tabs, from ao pane. type: string text: description: Text to type. Sent as a command (followed by Enter) unless enter is false. type: - "null" - string required: - tab type: object ControllersPaneLayout: properties: enabled: description: Whether split panes are on in the window (a Developer Mode preview). Commands are refused while off. type: boolean groups: description: Every split group of the session. items: $ref: '#/components/schemas/ControllersPaneGroup' type: array selected: description: Key of the tab on screen (the focused pane when a split is shown). type: string shown: description: Id of the group on screen, when a split is shown. type: - "null" - string tabs: description: Every tab of the session. items: $ref: '#/components/schemas/ControllersPaneTab' type: array required: - enabled - selected - tabs - groups type: object ControllersPaneLayoutResponse: properties: layout: $ref: '#/components/schemas/ControllersPaneLayout' sessionId: type: string required: - sessionId - layout type: object ControllersPaneOutputResponse: properties: output: type: string sessionId: type: string tab: type: string required: - sessionId - tab - output type: object ControllersPaneTab: properties: agent: description: Agent running in a terminal tab, when the window tracks it. type: - "null" - string key: description: 'Stable tab key used by pane commands: session, a shell terminal''s handle id, reviewer:, reviewer-chat: or file:.' type: string kind: description: What the tab shows. enum: - session - terminal - reviewer - file type: string title: description: The tab's label. type: string required: - key - kind - title type: object ControllersRemoteHostAccountTokenResponse: properties: hostId: type: string hostKey: type: string token: type: string required: - hostId - token - hostKey type: object ControllersRemoteHostUpdateCheckResponse: properties: version: type: string required: - version type: object ControllersRemoteHostUpdateRequest: properties: version: type: string type: object ControllersReplaceAgentAccountAPIKeyRequest: properties: apiKey: type: string required: - apiKey type: object ControllersRequestRereviewRequest: properties: pullRequestUrl: description: Tracked pull request URL. Required when the session has multiple PRs. type: string reviewerId: description: Provider login of the reviewer to ask for another review. type: string required: - reviewerId type: object ControllersRequestRereviewResponse: properties: ok: type: boolean required: - ok type: object ControllersResolveReviewCommentRequest: properties: commentUrl: description: Provider URL of the unresolved review comment to resolve. type: string pullRequestUrl: description: Tracked pull request URL. Required when the session has multiple PRs. type: string required: - commentUrl type: object ControllersResolveReviewCommentResponse: properties: ok: type: boolean required: - ok type: object ControllersReviewerMemoryResponse: properties: harness: type: string memory: $ref: '#/components/schemas/SessionMemoryResponse' reviewId: type: string sessionId: description: The worker session this reviewer reviews, not the reviewer's own identity. type: string required: - reviewId - sessionId - harness - memory type: object ControllersSecurePairingStatus: properties: active: type: boolean available: type: boolean enabled: type: boolean host: type: string port: type: integer reason: type: string required: - enabled - available - active - host - port - reason type: object ControllersSessionForkOptionsResponse: properties: allowed: type: boolean anyTurn: type: boolean forkedFrom: $ref: '#/components/schemas/ControllersSessionForkOrigin' forks: items: $ref: '#/components/schemas/ControllersSessionForkSummary' type: array refusal: $ref: '#/components/schemas/ControllersSessionForkRefusal' sourcePRs: items: $ref: '#/components/schemas/ControllersSessionForkSourcePR' type: array suggestedName: type: string required: - allowed type: object ControllersSessionForkOrigin: properties: sessionId: type: string sourceExists: type: boolean textHandoff: type: boolean title: type: string turnId: type: string required: - sessionId - title - sourceExists type: object ControllersSessionForkRefusal: properties: code: type: string message: type: string required: - code - message type: object ControllersSessionForkSourcePR: properties: closed: type: boolean merged: type: boolean number: type: integer url: type: string required: - url - number - merged - closed type: object ControllersSessionForkSummary: properties: exists: type: boolean sessionId: type: string title: type: string required: - sessionId - title - exists type: object ControllersSessionView: properties: activity: $ref: '#/components/schemas/DomainActivity' artifactFiles: items: $ref: '#/components/schemas/SessionArtifact' type: array autoInjectCI: type: boolean autoInjectReview: type: boolean autoReviewEnabled: type: boolean branch: type: string branchNaming: type: boolean branchState: $ref: '#/components/schemas/SessionBranchState' chatProviderPreserved: type: boolean createdAt: format: date-time type: string displayName: type: string displayStatus: enum: - Working - Blocked - Needs input - Exited - No signal - Interrupted - Idle - Fixing CI failures - Addressing comments - Review scheduled - Reviewing - Retrying review - Draft - Awaiting review - Review failed - Review cancelled - CI failing - Merge conflicts - Commented - Changes requested - Waiting on base PR - Mergeable - Approved - Merged - Closed without merge - Terminated type: string harness: type: string hibernatedAt: format: date-time type: - "null" - string id: type: string isPinned: type: boolean isTerminated: type: boolean issueId: type: string kanbanColumn: enum: - building - validating - needs_review - ready - archive type: string kind: type: string lastEventAt: format: date-time type: string lastInteractionAt: format: date-time type: - "null" - string lastUserMessageAt: format: date-time type: - "null" - string mode: enum: - chat - tui type: string model: type: string needsResume: type: boolean outputType: enum: - none - pr - artifact - pr_artifact type: string pinnedAt: format: date-time type: - "null" - string previewRevision: format: int64 type: integer previewUrl: type: string projectId: type: string provisionError: type: string provisionState: enum: - provisioning - ready - failed type: string provisionSteps: items: $ref: '#/components/schemas/SessionProvisionStep' type: array prs: items: $ref: '#/components/schemas/SessionPRFacts' type: array requestedOutput: enum: - artifact type: string reviewerConfig: $ref: '#/components/schemas/AgentConfig' reviewerHarness: enum: - claude-code - codex - copilot - cursor - kilocode - opencode - opencode-v2 - kiro - pi - agy - devin - droid - kimi - kimchi - muse - amp - aider - grok - crush - auggie - cline - autohand type: string scmStatus: enum: - pr_open - draft - ci_failed - review_pending - changes_requested - commented - approved - mergeable - merged type: string staleBinary: $ref: '#/components/schemas/SessionStaleBinary' status: enum: - working - pr_open - draft - ci_failed - review_pending - changes_requested - commented - approved - mergeable - merged - needs_input - exited - idle - terminated - no_signal type: string statusReadiness: enum: - checking - ready - unavailable type: string terminalGeneration: type: string terminalHandleId: type: string terminalTitle: type: string terminateOnPrMerge: type: boolean updatedAt: format: date-time type: string workspaceCleanup: enum: - pending - removed - preserved_dirty - failed - not_applicable type: string workspaceCleanupReportOnly: type: boolean workspacePublished: description: Whether the session has a recorded workspace that workspace reads can use. type: boolean required: - needsResume - id - kind - autoReviewEnabled - mode - activity - isTerminated - terminateOnPrMerge - autoInjectReview - autoInjectCI - outputType - createdAt - updatedAt - isPinned - workspacePublished - statusReadiness - chatProviderPreserved - status - kanbanColumn - displayStatus - lastEventAt - prs type: object ControllersSetKeepAwakeRequest: properties: enabled: type: boolean lidClosed: type: - "null" - boolean required: - enabled type: object ControllersSetRequireDeviceCredentialsRequest: properties: enabled: type: boolean required: - enabled type: object ControllersSetSecurePairingRequest: properties: enabled: type: boolean required: - enabled type: object ControllersSetSessionAutoReviewRequest: properties: enabled: type: boolean required: - enabled type: object ControllersSignInAgentAccountAgainRequest: properties: method: enum: - browser - console - sso - setup_token - device_code - api_key - access_token type: string secret: type: string type: object ConversationAccountPayload: properties: authFailureId: type: string authMode: type: string authVerifiedAt: type: - "null" - string authenticationState: enum: - unknown - required - authenticated type: string lastAuthFailureAt: type: - "null" - string lastAuthFailureReason: type: string planLabel: type: string reauthReason: type: string reauthRequiredAt: type: - "null" - string type: object ConversationActivityResponse: properties: activityKind: enum: - command - file_change - plan - reasoning - approval - usage - error - system - mcp_tool - auto_review - user_input - ao_action type: string createdAt: type: string detail: additionalProperties: {} type: object id: type: string kind: enum: - activity type: string providerItemId: type: string requestId: type: string revision: format: int64 type: integer sequence: format: int64 type: integer status: enum: - running - completed - recovered - failed - cancelled - pending - resolved type: string summary: type: string turnId: type: string required: - kind - id - sequence - revision - activityKind - status - summary - createdAt type: object ConversationBranchMaterializationResponse: properties: replayTruncated: type: boolean strategy: enum: - native - approximate_context type: string required: - strategy - replayTruncated type: object ConversationBranchPointResponse: properties: nextBranchId: type: string position: type: integer previousBranchId: type: string total: type: integer turnId: type: string required: - turnId - position - total type: object ConversationConfigChoiceResponse: properties: description: type: string group: type: string groupName: type: string name: type: string permissionMode: enum: - default - accept-edits - auto - bypass-permissions type: string value: type: string required: - value - name type: object ConversationConfigOptionResponse: properties: category: type: string choices: items: $ref: '#/components/schemas/ConversationConfigChoiceResponse' type: array currentBoolean: type: - "null" - boolean currentValue: type: string description: type: string id: type: string name: type: string type: enum: - select - boolean type: string required: - id - name - type - choices type: object ConversationConfigOptionsResponse: properties: options: items: $ref: '#/components/schemas/ConversationConfigOptionResponse' type: array required: - options type: object ConversationContentSummaryResponse: properties: annotationId: type: string annotationOrder: format: int64 type: integer comment: type: string fileReference: $ref: '#/components/schemas/ConversationFileReferenceRequest' mimeType: type: string name: type: string snapshot: $ref: '#/components/schemas/ChatExcerptSnapshot' sourceConversationId: type: string sourceMessageId: type: string sourceRevision: type: - "null" - integer text: type: string type: type: string uri: type: string required: - type type: object ConversationDiffFileResponse: properties: additions: type: integer deletions: type: integer oldPath: type: string path: type: string rolledBack: type: boolean status: enum: - added - modified - deleted - renamed type: string required: - path - additions - deletions - status type: object ConversationExcerptReferenceRequest: properties: comment: maxLength: 4096 type: string conversationId: type: string id: type: string messageId: type: string order: format: int64 type: integer revision: format: int64 type: integer snapshot: $ref: '#/components/schemas/ChatExcerptSnapshot' text: type: string required: - conversationId - messageId - revision - text type: object ConversationFileReferenceRequest: properties: commitSha: type: string endLine: type: integer endSide: enum: - file - old - new type: string fileFingerprint: type: string hostId: type: string id: type: string line: type: integer lines: items: $ref: '#/components/schemas/ChatFileReferenceLine' type: array order: format: int64 type: integer path: type: string previousPath: type: string referenceFormat: enum: - numbered-v1 type: string scope: type: string sessionId: type: string side: enum: - file - old - new type: string source: $ref: '#/components/schemas/ChatFileReferenceSource' truncated: type: boolean workspaceVersion: type: string required: - id - sessionId - path - source - side - line - endLine - lines - truncated type: object ConversationFindOccurrence: properties: block: type: integer end: type: integer messageId: type: string revision: format: int64 type: integer sequence: format: int64 type: integer start: type: integer required: - messageId - revision - sequence - block - start - end type: object ConversationFindResponse: properties: conversationId: type: string initialIndex: type: integer lastCursor: type: string nextCursor: type: string occurrences: items: $ref: '#/components/schemas/ConversationFindOccurrence' type: array offset: type: integer previousCursor: type: string total: type: integer transcriptRevision: type: string required: - conversationId - transcriptRevision - occurrences - total - offset - initialIndex type: object ConversationImageContentRequest: properties: data: type: string mimeType: type: string required: - mimeType - data type: object ConversationMCPServerPayload: properties: error: type: string failureReason: type: string name: type: string status: type: string required: - name - status type: object ConversationMessageResponse: properties: authoredByUser: type: boolean clientMessageId: type: string content: items: $ref: '#/components/schemas/ConversationContentSummaryResponse' type: array continuation: type: boolean createdAt: type: string editAvailable: type: boolean id: type: string kind: enum: - message type: string origin: enum: - human - automation - daemon - provider type: string revision: format: int64 type: integer role: enum: - user - assistant type: string senderDisplayName: type: string senderProjectId: type: string senderSessionId: type: string sequence: format: int64 type: integer streaming: type: boolean text: type: string turnId: type: string required: - kind - id - sequence - revision - role - origin - text - editAvailable - streaming - createdAt type: object ConversationModelReroutePayload: properties: at: type: string fromModel: type: string providerTurnId: type: string reason: type: string toModel: type: string required: - toModel - at type: object ConversationModelResponse: properties: default: type: boolean defaultEffort: type: string description: type: string displayName: type: string efforts: items: type: string type: array id: type: string supportsFast: type: boolean required: - id - displayName - default type: object ConversationModelsResponse: properties: models: items: $ref: '#/components/schemas/ConversationModelResponse' type: array selected: $ref: '#/components/schemas/ConversationTurnSettingsPayload' required: - models - selected type: object ConversationPlanResponse: properties: explanation: type: string spansTurns: type: boolean steps: items: $ref: '#/components/schemas/ConversationPlanStepResponse' type: array superseded: type: boolean required: - steps type: object ConversationPlanStepResponse: properties: status: enum: - pending - in_progress - completed type: string text: type: string required: - text - status type: object ConversationPromptSuggestionRequest: properties: turnId: type: string required: - turnId type: object ConversationPromptSuggestionResponse: properties: prompt: type: string turnId: type: string required: - turnId - prompt type: object ConversationRateLimitsPayload: properties: planLabel: type: string primaryResetsInSeconds: format: int64 type: integer primaryUsedPercent: format: double type: number secondaryResetsInSeconds: format: int64 type: integer secondaryUsedPercent: format: double type: number title: type: string required: - primaryUsedPercent - secondaryUsedPercent type: object ConversationResourceContentRequest: properties: mimeType: type: string name: type: string text: type: - "null" - string uri: type: string required: - uri - name type: object ConversationSearchHitResponse: properties: messageId: type: string projectId: type: string reviewId: type: string sessionId: type: string text: description: A passage of the message, with each match wrapped in U+0002 and U+0003. type: string title: type: string required: - messageId - sessionId - projectId - title - text type: object ConversationSearchResponse: properties: results: items: $ref: '#/components/schemas/ConversationSearchHitResponse' type: array required: - results type: object ConversationSkillResponse: properties: description: type: string displayName: type: string inputHint: type: string name: type: string source: type: string required: - name - displayName type: object ConversationSkillsResponse: properties: skills: items: $ref: '#/components/schemas/ConversationSkillResponse' type: array required: - skills type: object ConversationSnapshotResponse: properties: account: $ref: '#/components/schemas/ConversationAccountPayload' activeBranchId: type: string activities: items: $ref: '#/components/schemas/ConversationActivityResponse' type: array afterSequence: format: int64 type: integer batchedDeliveries: items: $ref: '#/components/schemas/DomainConversationBatchedDelivery' type: array branchMaterialization: $ref: '#/components/schemas/ConversationBranchMaterializationResponse' branchPoints: items: $ref: '#/components/schemas/ConversationBranchPointResponse' type: array branchedFromEarlierMessage: type: boolean capabilities: items: type: string type: array compactedAt: type: - "null" - string continueTurnId: type: string controller: enum: - connecting - ready - busy - recovering - hibernated - stopped type: string conversationId: type: string harness: type: string hasMoreBefore: type: boolean latestSequence: format: int64 type: integer mcpServers: items: $ref: '#/components/schemas/ConversationMCPServerPayload' type: array messages: items: $ref: '#/components/schemas/ConversationMessageResponse' type: array mode: enum: - chat - tui type: string modelReroute: $ref: '#/components/schemas/ConversationModelReroutePayload' nativeForkAvailableAfterSequence: format: int64 type: integer oldestSequence: format: int64 type: integer rateLimits: $ref: '#/components/schemas/ConversationRateLimitsPayload' sessionId: type: string settings: $ref: '#/components/schemas/ConversationTurnSettingsPayload' supportsExcerpts: type: boolean supportsFileReferences: type: boolean threadState: $ref: '#/components/schemas/ConversationThreadStatePayload' title: type: string turns: items: $ref: '#/components/schemas/ConversationTurnResponse' type: array usage: $ref: '#/components/schemas/ConversationUsagePayload' required: - continueTurnId - conversationId - branchedFromEarlierMessage - sessionId - mode - controller - latestSequence - hasMoreBefore - nativeForkAvailableAfterSequence - turns - messages - activities - settings type: object ConversationThreadStatePayload: properties: archivedAt: type: - "null" - string closedAt: type: - "null" - string status: enum: - active - idle - not_loaded - system_error - closed type: string waitingOn: items: type: string type: array type: object ConversationTurnDiffResponse: properties: files: items: $ref: '#/components/schemas/ConversationDiffFileResponse' type: array truncated: type: boolean required: - files type: object ConversationTurnResponse: properties: artifacts: $ref: '#/components/schemas/ControllersConversationTurnArtifactsResponse' completedAt: type: - "null" - string diff: $ref: '#/components/schemas/ConversationTurnDiffResponse' errorMessage: type: string failureCode: enum: - provider_key_missing - auth_required type: string hasEventPrompt: type: boolean hasHumanPrompt: type: boolean hasRetryAttempt: type: boolean id: type: string plan: $ref: '#/components/schemas/ConversationPlanResponse' providerTurnId: type: string requestedAt: type: string retryOfTurnId: type: string rolledBack: type: boolean startedAt: type: - "null" - string state: enum: - queued - running - completed - recovered - interrupted - failed - cancelled type: string usageLimit: $ref: '#/components/schemas/ConversationUsageLimitResponse' required: - id - state - requestedAt type: object ConversationTurnSettingsPayload: properties: approvalMode: enum: - default - accept-edits - auto - bypass-permissions type: string autoCompactWindow: enum: - 200k - 500k - 1m - "off" type: string fastMode: type: boolean model: type: string planMode: type: boolean reasoningEffort: type: string type: object ConversationUsageLimitResponse: properties: autoResume: type: boolean resetsAt: type: - "null" - string resumeError: type: string required: - autoResume type: object ConversationUsagePayload: properties: cachedTokens: format: int64 type: integer contextUsed: format: int64 type: integer contextWindow: format: int64 type: integer cost: type: - "null" - number currency: type: string inputTokens: format: int64 type: integer outputTokens: format: int64 type: integer totalTokens: format: int64 type: integer required: - contextUsed - contextWindow - inputTokens - outputTokens - cachedTokens - totalTokens type: object CreateAutomationRequest: properties: cron: type: string displayName: type: string effort: type: string enabled: type: - "null" - boolean harness: type: string kind: enum: - worker - orchestrator type: string mode: type: string model: type: string projectId: type: string prompt: type: string rrule: type: string templateId: enum: - custom - daily_pr_review_v1 - daily_issue_triage_v1 - weekly_release_notes_v1 type: string timezone: type: string useCase: enum: - pr_review - issue_triage - repo_digest - ci_triage - release_notes - security_audit - dependency_maintenance - docs_maintenance - other - unknown type: string required: - projectId - displayName - prompt - kind - timezone type: object CreateConversationSideChatRequest: properties: forceNew: type: boolean idempotencyKey: type: string label: maxLength: 80 type: string reference: $ref: '#/components/schemas/ConversationExcerptReferenceRequest' required: - idempotencyKey type: object CreateConversationSideChatResponse: properties: side: $ref: '#/components/schemas/SideConversation' required: - side type: object CreateReportRequest: properties: message: maxLength: 1000 type: string note: maxLength: 1000 type: string outputs: items: $ref: '#/components/schemas/ReportOutputRequest' type: array sessionId: type: string state: enum: - checkpoint - needs_input - stuck - done type: string required: - sessionId type: object CreateReportResponse: properties: id: type: string required: - id type: object CueDefinitionRequest: properties: command: description: Shell command for a command cue. At most 4096 bytes; cleared when saving agent cues. maxLength: 4096 type: string name: description: Short cue name, unique within the project. Trimmed; must be non-empty and at most 64 bytes. maxLength: 64 type: string prompt: description: Agent instruction for an agent cue. At most 16384 bytes; cleared when saving command cues. maxLength: 16384 type: string type: description: 'Cue kind: command sends to a project- or session-scoped shell terminal; agent sends an authored prompt. Definition body limit: 128 KiB.' type: string required: - name - type type: object CueEnvelope: properties: cue: $ref: '#/components/schemas/CueResponse' required: - cue type: object CueResponse: properties: command: type: string createdAt: format: date-time type: string id: type: string name: type: string projectId: type: string prompt: type: string type: type: string updatedAt: format: date-time type: string required: - id - projectId - name - type - createdAt - updatedAt type: object DegradedProject: properties: id: type: string kind: enum: - single_repo - workspace - scratch type: string name: type: string path: type: string resolveError: type: string required: - id - name - kind - path - resolveError type: object DelegateTaskRequest: properties: accountId: maxLength: 128 type: string agent: enum: - claude-code - codex - aider - opencode - opencode-v2 - grok - droid - amp - agy - crush - cursor - qwen - gemini - copilot - goose - auggie - continue - devin - cline - kimi - muse - kiro - kilocode - vibe - pi - kimchi - omp - fx - prime-agent - autohand - unreal-agent - codewhale - mimo-code - minimax-code - deepseek-harness - openhands - command-code - mastra-code - docker-agent - memcode - hermes - stakpak - open-interpreter - tau - fake type: string approvalMode: enum: - default - accept-edits - auto - bypass-permissions type: string attachments: items: $ref: '#/components/schemas/AttachmentInput' type: array autoCompactWindow: enum: - 200k - 500k - 1m - "off" type: string baseBranch: maxLength: 255 type: string branch: maxLength: 255 type: string brief: maxLength: 102400 type: string clientRequestId: maxLength: 128 type: string effort: maxLength: 64 type: - "null" - string fastMode: type: boolean mode: enum: - tui - chat type: string model: maxLength: 256 type: string projectId: type: string taskPreparation: type: string required: - projectId - brief type: object DelegateTaskResponse: properties: ok: type: boolean orchestratorId: type: string workerId: type: string required: - ok - workerId type: object DeleteSessionResponse: properties: ok: type: boolean sessionId: type: string required: - ok - sessionId type: object DequeuePRRequest: properties: prUrl: minLength: 1 type: string required: - prUrl type: object DequeuePRResponse: properties: changedAt: format: date-time type: string ok: type: boolean prNumber: type: integer required: - ok - prNumber - changedAt type: object DesktopArtifactLocationResponse: properties: artifactDir: type: string sessionId: type: string required: - sessionId - artifactDir type: object DesktopWorkspaceLocationResponse: properties: sessionId: type: string workspacePath: type: string required: - sessionId - workspacePath type: object DevImportProjectsConflict: properties: path: type: string projectId: type: string reason: type: string targetId: type: string targetPath: type: string required: - projectId - path - reason type: object DevImportProjectsReport: properties: conflicts: items: $ref: '#/components/schemas/DevImportProjectsConflict' type: array dryRun: type: boolean inserted: type: integer skipped: type: integer sourceDataDir: type: string targetDataDir: type: string updated: type: integer required: - sourceDataDir - targetDataDir - dryRun - inserted - updated - skipped type: object DevImportProjectsRequest: properties: dryRun: type: boolean sourceDataDir: minLength: 1 type: string required: - sourceDataDir - dryRun type: object DevImportProjectsResponse: properties: report: $ref: '#/components/schemas/DevImportProjectsReport' required: - report type: object DeviceAgentControl: properties: args: items: type: string type: array command: type: string required: - command - args type: object DeviceAvailabilityRequest: properties: enabled: type: - "null" - boolean required: - enabled type: object DeviceAvailabilityResponse: properties: enabled: type: boolean required: - enabled type: object DeviceLease: properties: agentDevice: $ref: '#/components/schemas/DeviceAgentControl' device: $ref: '#/components/schemas/DeviceSummary' openedAt: format: date-time type: string provider: description: Provider serving the device, e.g. local. type: string reason: description: Why the resolver picked this provider. type: string sessionId: type: string required: - sessionId - provider - device - reason - agentDevice - openedAt type: object DevicePlatformStatus: properties: available: type: boolean platform: enum: - ios - android type: string reason: type: string required: - platform - available type: object DeviceStatusResponse: properties: available: description: 'Whether devices are available: the desktop app''s Developer mode is on. While false, only status, a session''s lease and releasing a device are served.' type: boolean devices: items: $ref: '#/components/schemas/DeviceSummary' type: array enabled: description: Whether the user turned device support on. type: boolean error: type: string leases: items: $ref: '#/components/schemas/DeviceLease' type: array platforms: items: $ref: '#/components/schemas/DevicePlatformStatus' type: array state: enum: - "off" - installing - ready - error type: string required: - available - enabled - state - platforms - devices - leases type: object DeviceSummary: properties: booted: type: boolean id: description: Simulator UDID or emulator serial (AVD name while stopped). type: string name: type: string platform: enum: - ios - android type: string version: type: string required: - id - name - platform - booted type: object DomainActivity: properties: lastActivityAt: format: date-time type: string state: type: string required: - state - lastActivityAt type: object DomainConversationBatchedDelivery: properties: deliveredWithTurnId: type: string steerActivityId: type: string turnId: type: string required: - turnId - deliveredWithTurnId type: object DomainReviewerConfig: properties: agentConfig: $ref: '#/components/schemas/AgentConfig' harness: type: string required: - harness type: object DomainReviewerSurface: properties: controllerError: type: string handleId: type: string harness: type: string mode: type: string reviewId: type: string required: - mode - reviewId - harness type: object DomainSideReference: properties: comment: type: string conversationId: type: string id: type: string messageId: type: string order: format: int64 type: integer revision: format: int64 type: integer selection: type: string snapshot: $ref: '#/components/schemas/ChatExcerptSnapshot' sourceRole: type: string required: - conversationId - messageId - revision - selection - sourceRole type: object EditConversationMessageRequest: properties: clientMessageId: type: string text: type: string required: - text type: object EditConversationMessageResponse: properties: activeBranchId: type: string providerTurnId: type: string sourceBranchId: type: string state: enum: - queued - running - completed - recovered - interrupted - failed type: string turnId: type: string required: - sourceBranchId - activeBranchId type: object EditQueuedConversationMessageRequest: properties: attachments: items: $ref: '#/components/schemas/ConversationImageContentRequest' type: array clientMessageId: type: string expectedRevision: type: - "null" - integer retainedContent: items: type: integer type: - "null" - array text: type: string required: - text type: object EndpointsResponse: properties: endpoints: items: $ref: '#/components/schemas/MobileEndpoint' type: array required: - endpoints type: object EnsureAgentReadinessRequest: properties: agentIds: items: type: string type: array purpose: enum: - display - launch type: string required: - purpose type: object EnsureCodexAccountsRequest: properties: accountIds: items: type: string type: array forceAuthentication: type: boolean forceDeviceReconciliation: type: boolean includeUsage: type: boolean type: object EstimatedCostResponse: properties: cachedInputNanos: format: int64 minimum: 0 type: - "null" - integer coverage: enum: - complete - partial type: string inputNanos: description: Every non-cache-read input charge, cache writes included. format: int64 minimum: 0 type: - "null" - integer outputNanos: format: int64 minimum: 0 type: - "null" - integer providerAttribution: description: Whether contributing billing providers were detected, inferred from model ownership, or both. enum: - observed - inferred - mixed type: string totalNanos: format: int64 minimum: 0 type: integer required: - totalNanos - inputNanos - cachedInputNanos - outputNanos - coverage - providerAttribution type: object ExitAgentResponse: properties: ok: type: boolean session: $ref: '#/components/schemas/ControllersSessionView' sessionId: type: string required: - ok - sessionId - session type: object ExtendAwakeRequest: properties: durationSeconds: type: integer required: - durationSeconds type: object FSEntry: properties: gitRepo: description: True when the directory carries a .git entry (clone or worktree checkout). type: boolean name: description: Directory name. type: string path: description: Absolute path of the directory on the daemon host. type: string required: - name - path - gitRepo type: object GetPRStackResponse: properties: parent: $ref: '#/components/schemas/PRStackParentResponse' stack: $ref: '#/components/schemas/PRStackResponse' type: object GitHubRepo: properties: clone_url: type: string default_branch: type: string full_name: type: string name: type: string private: type: boolean required: - name - full_name - private - default_branch - clone_url type: object GitHubRepositoryPreparation: properties: name: type: string owner: type: string private: type: - "null" - boolean type: object GitHubStatusResponse: properties: connected: type: boolean login: description: GitHub username AO is signed in as, from a stored token or the gh CLI; absent when it could not be resolved. type: string required: - connected type: object GitPreparationEvent: properties: action: enum: - git_init - git_commit - create_remote_repository - set_remote type: string error: type: string message: type: string repoPath: type: string state: enum: - pending - running - success - error type: string required: - action - repoPath - state type: object GitPreparationInput: properties: approvedActions: items: type: string type: array githubRepository: $ref: '#/components/schemas/GitHubRepositoryPreparation' importKind: enum: - project - workspace minLength: 1 type: string initialCommitMessage: type: string path: minLength: 1 type: string remoteUrl: type: string repositories: items: $ref: '#/components/schemas/GitRepositoryPreparationInput' type: array stepwise: type: boolean required: - importKind - path type: object GitPreparationResult: properties: events: items: $ref: '#/components/schemas/GitPreparationEvent' type: array validation: $ref: '#/components/schemas/ImportValidationResult' required: - events - validation type: object GitRepositoryPreparationInput: properties: approvedActions: items: type: string type: array githubRepository: $ref: '#/components/schemas/GitHubRepositoryPreparation' initialCommitMessage: type: string remoteUrl: type: string repoPath: minLength: 1 type: string required: - repoPath - approvedActions type: object HarnessDefault: properties: disabledModels: items: type: string maxItems: 20000 type: array type: object IdentityResponse: properties: apiVersion: type: integer hostId: type: string required: - hostId - apiVersion type: object ImportReport: properties: dryRun: type: boolean notes: items: type: string type: array projectsImported: type: integer projectsSkipped: type: integer required: - dryRun - projectsImported - projectsSkipped type: object ImportRunResponse: properties: report: $ref: '#/components/schemas/ImportReport' required: - report type: object ImportStatusResponse: properties: available: type: boolean legacyRoot: type: string required: - available - legacyRoot type: object ImportValidationInput: properties: importKind: enum: - project - workspace minLength: 1 type: string path: minLength: 1 type: string required: - importKind - path type: object ImportValidationResult: properties: blockingErrors: items: type: string type: array childRepos: items: $ref: '#/components/schemas/RepoGitStatus' type: array importKind: type: string isValid: type: boolean nextStep: enum: - error - choose_import_kind - prepare_git - continue type: string root: $ref: '#/components/schemas/RepoGitStatus' warning: type: string required: - importKind - isValid - blockingErrors - root - nextStep type: object ImporterGitHubAvailabilityResult: properties: available: type: boolean message: type: string required: - available type: object ImporterGitHubOwner: properties: avatarUrl: type: string login: type: string required: - login - avatarUrl type: object ImporterGitHubOwnersResult: properties: owners: items: $ref: '#/components/schemas/ImporterGitHubOwner' type: array required: - owners type: object InitializeRepositoryInput: properties: create: type: boolean createId: maxLength: 64 type: string path: type: string required: - path type: object InitializeRepositoryResult: properties: path: type: string required: - path type: object InstallJob: properties: command: description: Human-readable install command, e.g. "brew install tmux", for display even before/without output. type: string error: description: 'Set on failure or when the target is unsupported on this machine: the exec error, the Unsupported reason, or a timeout message.' type: string expectedDestination: description: Expected or adapter-resolved executable destination. type: string finishedAt: description: Absent until the job finishes. format: date-time type: - "null" - string method: description: Server-owned installation method selected for this harness job. type: string notice: description: Fixed user-visible consequence to acknowledge before running this install. type: string output: description: Combined stdout+stderr from the install command, tail-capped to the last ~4000 bytes. Published while the command runs. type: string progress: $ref: '#/components/schemas/InstallProgress' description: While installing, the phase and percentage the installer's output reports. Absent in every other status. startedAt: format: date-time type: - "null" - string status: description: 'Current lifecycle state of the job. waiting_for_idle: the update runs once every session using the harness is idle (Windows).' enum: - idle - running - waiting_for_idle - installing - verifying - succeeded - failed - unsupported - interrupted type: string target: description: Fixed install target this job ran (or is running) for. enum: - tmux - gh - claude - claude-code - codex - cursor - opencode - opencode-v2 - aider - copilot - grok - kimi - pi - amp - auggie - droid - crush - cline - goose - qwen - gemini - continue - devin - kiro - kilocode - vibe - muse - agy - autohand - kimchi - prime-agent - omp - fx - unreal-agent - codewhale - mimo-code - minimax-code - deepseek-harness - openhands - command-code - mastra-code - docker-agent - memcode - hermes - stakpak - open-interpreter - tau - cloudflared - cua-driver type: string updatedAt: format: date-time type: - "null" - string waitingOn: description: While waiting_for_idle, the sessions the update still waits for and why. items: $ref: '#/components/schemas/SessionWait' type: array required: - target - status type: object InstallProgress: properties: detail: description: The installer's latest output line. type: string downloadAttempt: description: Current installer download attempt, before it runs. minimum: 1 type: integer downloadAttempts: description: Maximum installer download attempts. minimum: 1 type: integer percent: description: Progress through the current phase, present only when the installer's output states sizes or counts. maximum: 100 minimum: 0 type: - "null" - integer phase: description: Installer phase the output names. Absent until a line names one. enum: - downloading - installing type: string retryInSeconds: description: Seconds until the next installer download attempt. minimum: 1 type: integer type: object InstallSessionDeviceRequest: properties: path: description: Absolute path to a .app bundle (iOS) or .apk (Android). minLength: 1 type: string required: - path type: object InvokeCueRequest: properties: sessionId: description: 'Optional exact session target. Agent cues message it; command cues use its worktree. Omit it to spawn an agent worker or run a command in the project root. A supplied id must be non-blank and compatible, and never falls back to a replacement worker. Invocation body limit: 4 KiB.' type: string shell: description: Desktop shell selection used only for command cues. type: string type: object InvokeCueResponse: properties: kind: description: Invocation kind. enum: - agent - command type: string sessionId: description: For agent cues, the session that received the prompt or newly spawned worker. type: string shellTerminal: $ref: '#/components/schemas/ShellTerminalResponse' description: For command cues, the normal shell terminal that received the command. required: - kind type: object KillReviewResponse: properties: reviewerHandleId: type: string reviewerHarness: type: string reviews: items: $ref: '#/components/schemas/PRReviewState' type: array runs: items: $ref: '#/components/schemas/ReviewRun' type: array required: - reviewerHandleId - reviews - runs type: object KillSessionResponse: properties: artifactsDeleted: type: boolean cleanupPending: type: boolean freed: type: boolean ok: type: boolean sessionId: type: string required: - ok - sessionId type: object LaunchSessionDeviceRequest: properties: appId: description: Bundle identifier (iOS) or package name (Android). minLength: 1 type: string required: - appId type: object LinkPreviewResponse: properties: description: type: string faviconDarkUrl: type: string faviconUrl: type: string imageUrl: type: string siteName: type: string title: type: string url: type: string required: - url type: object ListAgentAuthPlansResponse: properties: plans: items: $ref: '#/components/schemas/AgentAuthPlan' type: array required: - plans type: object ListAgentsResponse: properties: authorized: description: Compatibility list of installed agents whose local auth probe recently returned authorized. Advisory and stale-prone; spawn may still fail. items: $ref: '#/components/schemas/AgentInfo' type: array installed: description: Agents whose binary resolved during the latest best-effort local catalog probe. items: $ref: '#/components/schemas/AgentInfo' type: array supported: description: Agents supported by this daemon build. items: $ref: '#/components/schemas/AgentInfo' type: array required: - supported - installed - authorized type: object ListArtifactVersionsResponse: properties: mediaVersions: description: This daemon serves a version's bytes on the preview route and restores any file type. Absent from an older daemon. type: boolean path: type: string versions: items: $ref: '#/components/schemas/ArtifactVersionSummary' type: array required: - path - versions type: object ListAutomationRunsResponse: properties: nextCursor: type: string runs: items: $ref: '#/components/schemas/AutomationRunResponse' type: array required: - runs type: object ListAutomationsResponse: properties: automations: items: $ref: '#/components/schemas/AutomationResponse' type: array nextCursor: type: string required: - automations type: object ListBackgroundTasksResponse: properties: sessions: items: $ref: '#/components/schemas/BackgroundTasksResponse' type: array required: - sessions type: object ListCatalogModelsResponse: properties: models: items: type: string type: array required: - models type: object ListCatalogProvidersResponse: properties: providers: items: $ref: '#/components/schemas/CatalogProvider' type: array required: - providers type: object ListCompactSessionUsageResponse: properties: sessions: items: $ref: '#/components/schemas/CompactSessionUsageResponse' type: array required: - sessions type: object ListCuesResponse: properties: cues: items: $ref: '#/components/schemas/CueResponse' type: array required: - cues type: object ListDirsResponse: properties: entries: description: Subdirectories, excluding dotted names. items: $ref: '#/components/schemas/FSEntry' type: array parent: description: Absolute path of the listed directory's parent; equals path at the filesystem root. type: string path: description: Absolute path that was listed. type: string truncated: description: True when the listing hit the entry cap and more subdirectories exist. type: boolean required: - path - parent - entries type: object ListNotificationsResponse: properties: nextCursor: type: string notifications: items: $ref: '#/components/schemas/NotificationResponse' type: array unreadCount: type: integer unresolvedCount: type: integer required: - notifications - unreadCount - unresolvedCount type: object ListPRFilesResponse: properties: commits: items: $ref: '#/components/schemas/WorkspaceCommitSummary' type: array commitsTruncated: description: 'True when older commits were left out of commits: the list keeps the newest 250, and stops at the last commit whose changes fit the daemon''s size cap.' type: boolean files: items: $ref: '#/components/schemas/WorkspaceFileSummary' type: array sessionId: type: string summary: $ref: '#/components/schemas/WorkspaceSummary' truncated: type: boolean required: - sessionId - files - commits - truncated - summary type: object ListProjectsResponse: properties: projects: items: $ref: '#/components/schemas/ProjectSummary' type: array required: - projects type: object ListProviderKeysResponse: properties: keys: items: $ref: '#/components/schemas/ProviderKey' type: array required: - keys type: object ListReportsResponse: properties: reports: items: $ref: '#/components/schemas/ReportResponse' type: array required: - reports type: object ListReviewsResponse: properties: activeReviewers: items: $ref: '#/components/schemas/DomainReviewerSurface' type: array reviewerActivityState: enum: - active - idle - waiting_input - blocked - exited type: string reviewerHandleId: type: string reviewerHarness: type: string reviewerSurface: $ref: '#/components/schemas/DomainReviewerSurface' reviews: items: $ref: '#/components/schemas/PRReviewState' type: array runs: items: $ref: '#/components/schemas/ReviewRun' type: array required: - reviewerHandleId - reviews - runs - activeReviewers type: object ListSessionMemoryResponse: properties: app: $ref: '#/components/schemas/AppMemoryResponse' sessions: items: $ref: '#/components/schemas/SessionMemoryResponse' type: array system: $ref: '#/components/schemas/SystemMemoryResponse' required: - sessions type: object ListSessionPRsResponse: properties: linkedPrs: items: $ref: '#/components/schemas/SessionPRReference' type: array prs: items: $ref: '#/components/schemas/SessionPRSummary' type: array sessionId: type: string required: - sessionId - prs - linkedPrs type: object ListSessionsResponse: properties: archived: $ref: '#/components/schemas/SessionArchiveSummary' nextCursor: type: string prState: enum: - open - draft - merged - closed type: string sessions: items: $ref: '#/components/schemas/ControllersSessionView' type: array total: type: - "null" - integer version: type: string required: - sessions type: object ListShellTerminalsResponse: properties: shellTerminals: items: $ref: '#/components/schemas/ShellTerminalResponse' type: array required: - shellTerminals type: object ListWorkspaceFilePathsResponse: properties: paths: items: type: string type: array sessionId: type: string truncated: type: boolean required: - sessionId - paths - truncated type: object ListWorkspaceFilesResponse: properties: ahead: type: - "null" - integer behind: type: - "null" - integer commits: items: $ref: '#/components/schemas/WorkspaceCommitSummary' type: array commitsTruncated: description: 'True when older commits were left out of commits: the list keeps the newest 250, and stops at the last commit whose changes fit the daemon''s size cap.' type: boolean compareBaseRef: type: string compareBaseSha: type: string compareMode: enum: - base - head_fallback type: string degraded: type: boolean degradedCode: type: string files: items: $ref: '#/components/schemas/WorkspaceFileSummary' type: array sections: $ref: '#/components/schemas/WorkspaceFileSections' sessionId: type: string summary: $ref: '#/components/schemas/WorkspaceSummary' truncated: type: boolean workspaceVersion: type: string required: - sessionId - workspaceVersion - files - truncated - sections - commits - summary - degraded type: object ListWorkspaceTreeResponse: properties: entries: items: $ref: '#/components/schemas/WorkspaceTreeEntry' type: array path: type: string sessionId: type: string snapshot: description: True only when the tree was read from the requested immutable snapshot. type: boolean truncated: type: boolean required: - sessionId - path - entries - truncated type: object LoadPRDetailsRequest: properties: prUrl: type: string required: - prUrl type: object MarkAllNotificationsReadRequest: properties: ids: description: Acknowledge exactly these notifications. Omit to acknowledge every unread notification; paginating clients should send the ids they actually rendered so later pages stay unread. items: type: string type: array type: object MarkAllNotificationsReadResponse: properties: notifications: description: Deprecated compatibility field. Always empty so mark-all responses stay bounded. items: $ref: '#/components/schemas/NotificationResponse' type: array updatedCount: description: Number of notifications changed from unread to read. format: int64 type: integer required: - notifications - updatedCount type: object MarkNotificationReadRequest: properties: status: description: V1 supports only marking an unread notification read. enum: - read type: string required: - status type: object MemoryPressureResponse: properties: pressureRaw: format: double minimum: 0 type: number pressureSource: enum: - psi - available_pct - memorystatus type: string required: - pressureRaw - pressureSource type: object MergePRRequest: properties: allowNoChecks: type: boolean expectedHeadSha: minLength: 40 type: string method: enum: - squash - merge - rebase type: string prUrl: minLength: 1 type: string required: - prUrl - expectedHeadSha type: object MergePRResponse: properties: method: type: string ok: type: boolean prNumber: type: integer queue: $ref: '#/components/schemas/SessionPRMergeQueueEntry' state: enum: - merged - open type: string stateChangedAt: format: date-time type: string required: - ok - prNumber - method - state - stateChangedAt type: object MergePRStackRequest: properties: allowNoChecks: type: boolean expectedHeads: items: $ref: '#/components/schemas/PRStackHead' minItems: 1 type: array method: enum: - squash - merge - rebase type: string prUrl: minLength: 1 type: string required: - prUrl - expectedHeads type: object MergePRStackResponse: properties: method: type: string numbers: items: type: integer type: array ok: type: boolean prNumber: type: integer stateChangedAt: format: date-time type: string status: enum: - merged - enqueued - pending type: string required: - ok - prNumber - numbers - method - status - stateChangedAt type: object MobileDeviceResponse: properties: createdAt: format: date-time type: string deviceName: type: string id: description: What DELETE /api/v1/mobile/devices/{id} takes. type: string installId: description: The phone's install id, or empty for a device that never registered for notifications. type: string kind: description: 'device: holds its own token. password: a phone that still uses the pairing password, so removing it only stops its notifications. account: every device signed in to the linked account; they share one token.' enum: - device - password - account type: string lastSeenAt: format: date-time type: string live: description: True when the device is connected, or the phone's app is open and polling. type: boolean notificationsEnabled: description: True when this device has a push token registered. type: boolean platform: type: string token: type: string required: - id - kind - installId - live - notificationsEnabled - createdAt - lastSeenAt type: object MobileDevicesResponse: properties: devices: items: $ref: '#/components/schemas/MobileDeviceResponse' type: array required: - devices type: object MobileEndpoint: properties: host: type: string kind: type: string port: type: integer secure: type: boolean required: - kind - host - port - secure type: object MobileStatusResponse: properties: accountLinkRefused: type: boolean accountLinked: type: boolean browserRemoteAccess: type: boolean enabled: type: boolean endpoints: items: $ref: '#/components/schemas/MobileEndpoint' type: array host: type: string hostId: type: string keepAwake: $ref: '#/components/schemas/ControllersKeepAwakeStatus' loopbackOnly: type: boolean noPublicTunnel: type: boolean password: type: string passwordLastUsedAt: format: date-time type: - "null" - string port: type: integer requireDeviceCredentials: type: boolean securePairing: $ref: '#/components/schemas/ControllersSecurePairingStatus' tailscaleHost: type: string tunnel: $ref: '#/components/schemas/MobileTunnelStatus' warning: type: string required: - enabled - accountLinked - accountLinkRefused - browserRemoteAccess - loopbackOnly - noPublicTunnel - endpoints - hostId - tunnel - host - tailscaleHost - port - password - warning - securePairing - keepAwake - requireDeviceCredentials type: object MobileTunnelStatus: properties: fixed: type: boolean hostname: type: string installing: type: boolean lastError: type: string location: type: string ready: type: boolean running: type: boolean supported: type: boolean required: - supported - installing - running - ready - fixed - hostname - location - lastError type: object NotificationEnvelope: properties: notification: $ref: '#/components/schemas/NotificationResponse' required: - notification type: object NotificationResponse: properties: body: type: string createdAt: format: date-time type: string id: type: string prUrl: type: string projectId: type: string resolvedAt: format: date-time type: - "null" - string sessionId: type: string status: description: Seen state. unread means the user has not opened the notification panel since it arrived. enum: - unread - read type: string target: $ref: '#/components/schemas/NotificationTarget' title: type: string type: enum: - needs_input - ready_to_merge - pr_merged - pr_closed_unmerged - review_completed - review_changes_requested type: string required: - id - sessionId - projectId - prUrl - type - title - body - status - createdAt - target type: object NotificationTarget: properties: kind: enum: - session - pr type: string prUrl: type: string sessionId: type: string required: - kind - sessionId type: object OpenCodexAccountLoginTerminalResponse: properties: operation: $ref: '#/components/schemas/CodexAccountLoginResponse' shellTerminal: $ref: '#/components/schemas/CodexAccountLoginTerminalResponse' required: - operation - shellTerminal type: object OpenSessionDeviceRequest: properties: deviceId: description: Simulator UDID, emulator serial, or device name. type: string platform: enum: - ios - android type: string type: object OpenShellTerminalRequest: properties: cols: description: Initial terminal columns. With rows, the shell starts immediately at this grid instead of waiting for the client to attach (startOnAttach is then ignored). type: integer projectId: description: Project whose root the shell starts in. Omitted opens the shell in the daemon data dir. type: string rows: description: Initial terminal rows. See cols. type: integer sessionId: description: Agent session the shell is scoped to, so it appears only in that session's tab strip. Omitted makes it a standalone shell. type: string shell: description: 'Shell to launch: auto (the user''s default shell), an executable path, or on Windows a selector (git-bash, pwsh, powershell, cmd, wsl).' type: string startOnAttach: description: Start the shell when the requesting client attaches with its terminal grid instead of immediately, so the shell starts at the size that client shows. Only for clients that attach as a sized viewer; omitted starts the shell immediately at the default grid. type: boolean title: description: Tab title for the new shell, for a client that already shows its tab. Trimmed; omitted or empty numbers it after the existing shells (Terminal N). type: string type: object OrchestratorResponse: properties: id: type: string projectId: type: string projectName: type: string required: - id - projectId type: object PRAttachmentAccessResponse: properties: allowed: type: boolean location: type: string reason: enum: - no_write_access - unsupported type: string required: - allowed type: object PRCommentAttachment: properties: contentType: type: string data: minLength: 1 type: string name: minLength: 1 type: string required: - name - contentType - data type: object PRPreviewResponse: properties: additions: type: integer author: type: string changedFiles: type: integer checks: enum: - passing - failing - pending type: string deletions: type: integer number: type: integer repo: description: owner/name type: string sourceBranch: type: string state: enum: - open - draft - merged - closed type: string stateChangedAt: format: date-time type: - "null" - string targetBranch: type: string title: type: string url: type: string required: - url - repo - number - title - state - additions - deletions - changedFiles type: object PRReviewState: properties: latestRun: $ref: '#/components/schemas/ReviewRun' prNumber: type: integer prUrl: type: string previousRun: $ref: '#/components/schemas/ReviewRun' status: enum: - needs_review - running - up_to_date - changes_requested - ineligible type: string targetSha: type: string title: type: string required: - prUrl - prNumber - title - targetSha - status type: object PRStackHead: properties: headSha: minLength: 40 type: string number: type: integer required: - number - headSha type: object PRStackLayerResponse: properties: behindParent: type: integer ci: type: string headBranch: type: string headSha: type: string mergeability: type: string noChecks: type: boolean number: type: integer reviewDecision: type: string sessionId: type: string state: enum: - draft - open - merged - closed type: string title: type: string url: type: string required: - number - title - url - state - headBranch - headSha type: object PRStackParentResponse: properties: number: type: integer url: type: string required: - number - url type: object PRStackResponse: properties: baseBranch: type: string layers: items: $ref: '#/components/schemas/PRStackLayerResponse' type: array number: type: integer open: type: boolean url: type: string required: - number - url - baseBranch - open - layers type: object PostPRCommentRequest: properties: attachments: items: $ref: '#/components/schemas/PRCommentAttachment' maxItems: 10 type: array body: minLength: 1 type: string prUrl: minLength: 1 type: string threadId: type: string required: - prUrl - body type: object PostPRCommentResponse: properties: createdAt: format: date-time type: string id: type: string ok: type: boolean url: type: string required: - ok - id - url - createdAt type: object PrepareTaskResponse: properties: ok: type: boolean taskPreparation: type: string required: - ok type: object PressSessionDeviceButtonRequest: properties: button: description: home, back or recents. type: string required: - button type: object PreviewServerStatusResponse: properties: configuration: type: string error: type: string logs: items: type: string type: array port: type: integer sessionId: type: string startedAt: format: date-time type: string state: enum: - stopped - starting - ready - stopping - failed type: string targetKind: enum: - app - api type: string url: type: string required: - sessionId - state - logs type: object PrewarmChatAgentResponse: properties: agent: description: Agent adapter identifier whose Chat check was started. type: string required: - agent type: object ProbeAgentResponse: properties: agent: $ref: '#/components/schemas/AgentInfo' installed: type: boolean supported: type: boolean required: - agent - supported - installed type: object Project: properties: agent: type: string canonicalOwnerAvatarUrl: type: string canonicalRepo: type: string config: $ref: '#/components/schemas/ProjectConfig' defaultBranch: type: string folderMissing: type: boolean id: type: string kind: enum: - single_repo - workspace - scratch type: string name: type: string path: type: string repo: type: string workspaceRepos: items: $ref: '#/components/schemas/WorkspaceRepo' type: array required: - id - name - kind - path - repo - defaultBranch - folderMissing type: object ProjectClonePreparationCleanupInput: properties: keepCheckout: type: boolean path: minLength: 1 type: string preparationId: minLength: 1 type: string required: - path - preparationId type: object ProjectConfig: properties: agentConfig: $ref: '#/components/schemas/AgentConfig' agentRules: type: string agentRulesFile: type: string attribution: $ref: '#/components/schemas/AttributionConfig' autoReview: type: boolean canonicalRepoURL: type: string containerReap: $ref: '#/components/schemas/ContainerReapConfig' defaultBranch: type: string env: additionalProperties: type: string type: object orchestrator: $ref: '#/components/schemas/RoleOverride' orchestratorRules: type: string orchestratorRulesFile: type: string postCreate: items: type: string type: array preRemove: items: type: string type: array reviewers: items: $ref: '#/components/schemas/DomainReviewerConfig' type: array sessionPrefix: type: string symlinks: items: type: string type: array terminateOnPrMerge: type: - "null" - boolean trackerIntake: $ref: '#/components/schemas/TrackerIntakeConfig' worker: $ref: '#/components/schemas/RoleOverride' workersRequestReview: type: boolean type: object ProjectGetResponse: properties: project: $ref: '#/components/schemas/ProjectOrDegraded' status: enum: - ok - degraded type: string required: - status - project type: object ProjectOrDegraded: oneOf: - $ref: '#/components/schemas/Project' - $ref: '#/components/schemas/DegradedProject' type: object ProjectResponse: properties: project: $ref: '#/components/schemas/Project' required: - project type: object ProjectSummary: properties: autoSpawnPauses: items: $ref: '#/components/schemas/AutoSpawnPause' type: array folderMissing: type: boolean id: type: string kind: enum: - single_repo - workspace - scratch type: string name: type: string orchestratorAgent: type: string path: type: string resolveError: type: string sessionPrefix: type: string required: - id - name - path - kind - sessionPrefix - folderMissing type: object PromoteQueuedTurnResponse: properties: activityId: type: string providerTurnId: type: string sourceTurnId: type: string required: - sourceTurnId - providerTurnId - activityId type: object ProviderKey: properties: agents: items: type: string type: array checkable: type: boolean configured: type: boolean device: type: boolean deviceAvailable: type: boolean hint: type: string label: type: string name: type: string withdrawFailed: type: boolean required: - name - label - configured - device - deviceAvailable - checkable - agents type: object ProviderKeyCheck: properties: models: items: type: string type: array status: enum: - valid - invalid - unverified - unreachable type: string required: - status type: object ProviderSwitchRequest: properties: autoCompactWindow: enum: - 200k - 500k - 1m - "off" type: string effort: maxLength: 64 type: string fastMode: type: boolean force: type: boolean idempotencyKey: type: string message: $ref: '#/components/schemas/SendConversationMessageRequest' model: maxLength: 200 type: string permissionMode: enum: - default - accept-edits - auto - bypass-permissions type: string targetHarness: type: string ultracode: type: boolean required: - targetHarness type: object ProviderSwitchResponse: properties: cancelledQueuedMessages: type: integer failedPendingApprovals: type: boolean message: $ref: '#/components/schemas/SendConversationMessageResponse' settingsUpdated: type: boolean status: type: string stoppedTurn: type: boolean warnings: items: type: string type: array required: - status type: object PublishRenderRequest: properties: artifact: description: Also keep the page as a session artifact, a deliverable the user keeps. type: boolean height: description: First-paint frame height in CSS pixels, clamped to 80-2000; the frame then fits the page. type: integer html: description: A complete, self-contained HTML document, at most 25 MiB. type: string title: description: Short name for the page. type: string required: - html - title type: object PublishRenderResponse: properties: activityId: type: string artifactError: description: 'With artifact: why the page was not kept. The page is still published.' type: string artifactPath: description: 'With artifact: the absolute path of the kept page.' type: string path: type: string renderId: type: string required: - renderId - activityId - path type: object PushDeviceEnvelope: properties: device: $ref: '#/components/schemas/PushDeviceResponse' required: - device type: object PushDeviceResponse: properties: createdAt: format: date-time type: string deviceName: type: string lastSeenAt: format: date-time type: string platform: type: string token: type: string required: - createdAt - lastSeenAt type: object PutGitHubPATRequest: properties: expiresIn: type: integer pat: type: string refreshToken: type: string refreshTokenExpiresIn: type: integer required: - pat type: object RecordAgentSignInResponse: properties: releasedKey: type: string type: object RegisterArtifactsRequest: properties: paths: description: 'Files or bundle directories in the session''s artifact directory: absolute paths, or paths relative to it.' items: type: string type: array workingDir: description: The absolute folder the command ran in. When it is inside the artifact directory, a relative path is read from it if the file is there. type: string required: - paths type: object RegisterArtifactsResponse: properties: otherFiles: description: How many of the session's files are not registered. type: integer otherRootFiles: description: The unregistered files at the root of the artifact directory. items: type: string type: array registered: description: The requested paths, relative to the artifact directory. items: type: string type: array required: - registered - otherFiles - otherRootFiles type: object RegisterPushDeviceRequest: properties: deviceName: description: Human-friendly device label. type: string hostName: description: This phone's label for the host; used in OS push notification titles. type: string installId: description: 'Stable per-install device id, keying the registry so a rotated push token updates the same row. Optional: older app builds omit it and the daemon synthesizes one.' type: string platform: description: Device platform. enum: - ios - android type: string token: description: 'Expo push token, e.g. ExponentPushToken[...]. Optional: omitted when the phone has no push token yet.' type: string type: object ReloadConversationMCPServersResponse: properties: servers: items: $ref: '#/components/schemas/ConversationMCPServerPayload' type: array required: - servers type: object RemoteHostUpdateResponse: properties: error: type: string method: enum: - service - app type: string state: enum: - idle - updating - failed type: string supported: type: boolean version: type: string required: - version - supported - state type: object RemoveProjectResult: properties: projectId: type: string removedStorageDir: type: boolean required: - projectId - removedStorageDir type: object RenameSessionRequest: properties: displayName: maxLength: 100 minLength: 1 type: string required: - displayName type: object RenameSessionResponse: properties: displayName: type: string ok: type: boolean sessionId: type: string required: - ok - sessionId - displayName type: object RenderCheckRequest: properties: html: description: A complete, self-contained HTML document, at most 25 MiB. type: string width: description: Viewport width in CSS pixels, 240-1600. Defaults to 720. type: integer required: - html type: object RenderCheckResponse: properties: consoleMessages: items: $ref: '#/components/schemas/RenderConsoleMessage' type: array contentHeight: description: Height the page needs at this width, in CSS pixels. type: integer network: description: Network the page could use. none when the agent's own sandbox has no network, so remote resources did not load. enum: - public - none type: string screenshot: $ref: '#/components/schemas/RenderCheckScreenshot' required: - screenshot - contentHeight - consoleMessages - network type: object RenderCheckScreenshot: properties: data: description: Base64 PNG. type: string height: description: Page height the screenshot shows, in CSS pixels. type: integer imageHeight: description: PNG height in pixels, when it differs from the page height. type: integer imageWidth: description: PNG width in pixels, when it differs from the page width. type: integer mimeType: type: string width: description: Page width the screenshot shows, in CSS pixels. type: integer required: - mimeType - data - width - height type: object RenderConsoleMessage: properties: level: enum: - debug - log - warning - error type: string text: type: string required: - level - text type: object ReopenShellTerminalRequest: properties: cols: description: Initial terminal columns, as for opening a shell terminal. type: integer resumeAgent: description: 'Also resume the agent that was running in this terminal: the same conversation when it is known, otherwise its conversation picker. Nothing the old shell ran is replayed.' type: boolean rows: description: Initial terminal rows. See cols. type: integer shell: description: Shell to launch, as for opening a shell terminal. type: string type: object ReorderQueuedConversationTurnsRequest: properties: turnIds: items: type: string type: array required: - turnIds type: object RepoGitStatus: properties: blockingErrors: items: type: string type: array hasCommit: type: boolean hasOrigin: type: boolean isEmptyFolder: type: boolean isRepo: type: boolean needsGitInit: type: boolean repoPath: type: string requiredActions: items: type: string type: array required: - repoPath - isRepo - hasCommit - hasOrigin - isEmptyFolder - needsGitInit - requiredActions - blockingErrors type: object ReportOutputRequest: properties: kind: enum: - artifact - pr_created - pr_reviewed type: string label: type: string reference: minLength: 1 type: string required: - kind - reference type: object ReportOutputResponse: properties: kind: type: string label: type: string reference: type: string required: - kind - reference type: object ReportResponse: properties: createdAt: format: date-time type: string id: type: string message: type: string note: type: string outputs: items: $ref: '#/components/schemas/ReportOutputResponse' type: array projectId: type: string repeatCount: format: int64 type: integer sessionId: type: string state: type: string required: - id - sessionId - projectId - createdAt - repeatCount type: object ResolveCommentsResponse: properties: ok: type: boolean resolved: type: integer required: - ok - resolved type: object ResolveConversationApprovalRequest: properties: decisionId: type: string required: - decisionId type: object ResolveConversationInputRequest: properties: action: enum: - accept - decline - cancel type: string content: additionalProperties: {} type: object required: - action type: object ResolveFileReferenceResponse: properties: endLine: type: integer line: type: integer newLineOffset: type: integer oldLineOffset: type: integer path: type: string reason: type: string side: type: string state: enum: - unchanged - changed - unavailable - moved type: string required: - state type: object RestoreArtifactVersionRequest: properties: path: description: Artifact-directory-relative file path, as listed in the session's artifactFiles. type: string version: description: The version whose content becomes the file's content. format: int64 type: integer required: - path - version type: object RestoreReviewResponse: properties: reviewerHandleId: type: string reviewerHarness: type: string reviews: items: $ref: '#/components/schemas/PRReviewState' type: array runs: items: $ref: '#/components/schemas/ReviewRun' type: array required: - reviewerHandleId - reviews - runs type: object RestoreSessionResponse: properties: ok: type: boolean restoreMode: enum: - native - saved_prompt - fresh type: string session: $ref: '#/components/schemas/ControllersSessionView' sessionId: type: string required: - ok - sessionId - restoreMode - session type: object ResumeAgentResponse: properties: ok: type: boolean resumeMode: enum: - native - saved_prompt - fresh type: string session: $ref: '#/components/schemas/ControllersSessionView' sessionId: type: string required: - ok - sessionId - resumeMode - session type: object RetryTurnResponse: properties: providerTurnId: type: string state: enum: - queued - running - completed - recovered - interrupted - failed type: string turnId: type: string type: object ReviewRun: properties: autoInjectReview: type: boolean batchId: type: string body: type: string cancelRequestedAt: format: date-time type: - "null" - string cancelledBy: enum: - user - worker_lifecycle type: string createdAt: format: date-time type: string deliveredAt: format: date-time type: - "null" - string endedAt: format: date-time type: - "null" - string failureReason: enum: - preflight_failed - launch_failed - never_started - exited_during_launch - turn_ended_without_submit - process_exited - timed_out - daemon_restarted - cancel_unconfirmed type: string firstActivityAt: format: date-time type: - "null" - string githubReviewId: type: string harness: type: string id: type: string launchingAt: format: date-time type: - "null" - string prUrl: type: string reviewId: type: string sessionId: type: string startedAt: format: date-time type: - "null" - string status: enum: - queued - launching - running - cancelling - completed - failed - cancelled - superseded type: string targetSha: type: string triggerSource: enum: - manual - agent - auto type: string verdict: type: string workerNotice: enum: - "" - pending - sent - failed type: string workerNoticeAttemptedAt: format: date-time type: - "null" - string workerNoticeAttempts: type: integer workerNoticeError: type: string required: - id - reviewId - sessionId - batchId - harness - triggerSource - prUrl - targetSha - status - verdict - body - githubReviewId - createdAt - autoInjectReview type: object ReviewRunResponse: properties: review: $ref: '#/components/schemas/ReviewRun' reviewerHandleId: type: string reviews: items: $ref: '#/components/schemas/ReviewRun' type: array required: - review - reviews - reviewerHandleId type: object RoleOverride: properties: agent: type: string agentConfig: $ref: '#/components/schemas/AgentConfig' type: object RollbackConversationRequest: properties: planId: type: string restoreFiles: type: boolean type: object RollbackConversationResponse: properties: turnsDiscarded: type: integer required: - turnsDiscarded type: object RollbackFileChange: properties: change: enum: - restored - reverted - removed type: string path: type: string required: - path - change type: object RollbackPreviewResponse: properties: commitsSince: type: integer files: items: $ref: '#/components/schemas/RollbackFileChange' type: array filesRestorable: type: boolean planId: type: string reason: type: string totalFiles: type: integer required: - filesRestorable - files - totalFiles - commitsSince type: object RollbackSessionResponse: properties: deleted: type: boolean killed: type: boolean ok: type: boolean sessionId: type: string required: - ok - sessionId type: object SaveProviderKeyRequest: properties: device: type: boolean secret: type: string required: - device type: object SaveRenderArtifactRequest: properties: title: description: Name for the file. Characters a file system refuses are replaced. maxLength: 200 minLength: 1 type: string required: - title type: object SaveRenderArtifactResponse: properties: name: type: string path: description: The file, relative to the session's artifact directory. type: string required: - path - name type: object SendConversationMessageRequest: properties: attachments: items: $ref: '#/components/schemas/ConversationImageContentRequest' type: array clientMessageId: type: string continuation: type: boolean excerpts: items: $ref: '#/components/schemas/ConversationExcerptReferenceRequest' type: array fileReferences: items: $ref: '#/components/schemas/ConversationFileReferenceRequest' type: array resources: items: $ref: '#/components/schemas/ConversationResourceContentRequest' type: array text: type: string required: - text type: object SendConversationMessageResponse: properties: duplicate: type: boolean providerTurnId: type: string state: enum: - queued - running - completed - recovered - interrupted - failed type: string turnId: type: string required: - duplicate type: object SendSessionMessageRequest: properties: attachment: $ref: '#/components/schemas/AttachmentInput' message: maxLength: 4096 minLength: 1 type: string senderSessionId: type: string userAuthored: type: boolean required: - message type: object SendSessionMessageResponse: properties: message: type: string ok: type: boolean sessionId: type: string required: - ok - sessionId - message type: object SendSideQuestionRequest: properties: attachments: items: $ref: '#/components/schemas/ConversationImageContentRequest' type: array clientMessageId: type: string references: items: $ref: '#/components/schemas/ConversationExcerptReferenceRequest' type: array resources: items: $ref: '#/components/schemas/ConversationResourceContentRequest' type: array text: type: string required: - text - clientMessageId type: object SessionActivityResponse: properties: current: $ref: '#/components/schemas/SessionStepResponse' recent: items: $ref: '#/components/schemas/SessionStepResponse' type: array required: - recent type: object SessionAgentAccountsResponse: properties: claude: type: string codex: type: string type: object SessionArchiveSummary: properties: byProject: additionalProperties: type: integer type: - object - "null" total: type: integer required: - total - byProject type: object SessionArtifact: properties: id: type: string inlineUrl: type: string kind: enum: - html - markdown - file type: string name: type: string path: type: string previewUrl: type: string previousPaths: items: type: string type: array rawUrl: type: string registered: type: boolean shareAccess: enum: - restricted - anyone type: string shareUrl: type: string size: format: int64 type: integer updatedAt: format: date-time type: string required: - path - name - kind - size - updatedAt type: object SessionBranchState: properties: base: type: string baseRef: type: string behind: type: integer branch: type: string commits: type: integer conflicts: type: boolean head: type: string remoteBranch: type: string remoteHead: type: string unpushed: type: integer required: - commits - unpushed - behind - conflicts type: object SessionDeviceResponse: properties: lease: anyOf: - type: "null" - $ref: '#/components/schemas/DeviceLease' type: object required: - lease type: object SessionHistoryResponse: properties: offset: type: integer total: type: integer turns: items: $ref: '#/components/schemas/SessionHistoryTurn' type: array required: - turns - total - offset type: object SessionHistoryTurn: properties: agentResponse: type: string at: format: date-time type: string harness: type: string userRequest: type: string required: - userRequest - agentResponse - at type: object SessionImportCandidate: properties: folder: type: string harness: type: string id: type: string lastActivity: format: date-time type: string messageCount: type: integer projectId: type: string sessionId: type: string shortened: type: boolean title: type: string required: - id - harness - title - lastActivity - messageCount type: object SessionImportPreview: properties: candidates: items: $ref: '#/components/schemas/SessionImportCandidate' type: array required: - candidates type: object SessionImportRequest: properties: ids: items: type: string maxItems: 500 minItems: 1 type: array required: - ids type: object SessionImportResponse: properties: results: items: $ref: '#/components/schemas/SessionImportResult' type: array required: - results type: object SessionImportResult: properties: error: type: string id: type: string sessionId: type: string status: enum: - created - already_imported - failed type: string required: - id - status type: object SessionInterfaceTransition: properties: completedAt: format: date-time type: - "null" - string createdAt: format: date-time type: string errorCode: type: string errorDetail: type: string historyPolicy: enum: - strict - provider_history type: string id: type: string noticeAcknowledgedAt: format: date-time type: - "null" - string phase: enum: - requested - preflighting - draining - source_stopping - source_stopped - target_starting - activating - completed - failed - cancelled - recovery_required type: string policy: enum: - drain - interrupt type: string sessionId: type: string sourceAccountId: type: string sourceMode: enum: - chat - tui type: string targetAccountId: type: string targetMode: enum: - chat - tui type: string updatedAt: format: date-time type: string required: - id - sessionId - sourceMode - targetMode - policy - historyPolicy - phase - createdAt - updatedAt type: object SessionInterfaceTransitionStatusResponse: properties: reason: type: string reasonCode: type: string supported: type: boolean targetMode: enum: - chat - tui type: string transition: $ref: '#/components/schemas/SessionInterfaceTransition' required: - supported - targetMode type: object SessionMemoryProcessResponse: properties: command: type: string cpuPercent: description: Share of one core used since the previous sample; zero on the first. format: double minimum: 0 type: number pid: type: integer ppid: type: integer rssBytes: minimum: 0 type: integer required: - pid - ppid - rssBytes - cpuPercent - command type: object SessionMemoryResponse: properties: activity: $ref: '#/components/schemas/SessionActivityResponse' cpuPercent: description: Share of one core the whole tree used since the previous sample; zero on the first. format: double minimum: 0 type: number processCount: minimum: 0 type: integer processes: items: $ref: '#/components/schemas/SessionMemoryProcessResponse' type: array rssBytes: description: Resident set size summed over the runtime process tree. minimum: 0 type: integer sampledAt: format: date-time type: string sessionId: type: string required: - sessionId - rssBytes - processCount - cpuPercent - sampledAt - processes type: object SessionPRCISummary: properties: autoInjectCI: type: boolean checks: items: $ref: '#/components/schemas/SessionPRCheck' type: array failingChecks: items: $ref: '#/components/schemas/SessionPRFailingCheck' type: array state: enum: - unknown - pending - passing - failing type: string required: - state - failingChecks - checks - autoInjectCI type: object SessionPRCheck: properties: name: type: string status: enum: - unknown - queued - in_progress - passed - failed - skipped - cancelled type: string url: type: string required: - name - status type: object SessionPRComment: properties: author: type: string body: type: string createdAt: format: date-time type: - "null" - string id: type: string isBot: type: boolean url: type: string required: - id - author - isBot - body type: object SessionPRCommit: properties: author: type: string committedAt: format: date-time type: - "null" - string headline: type: string sha: type: string required: - sha - headline type: object SessionPRConflictFile: properties: path: type: string url: type: string required: - path type: object SessionPRFacts: properties: ci: enum: - unknown - pending - passing - failing type: string mergeability: enum: - unknown - mergeable - conflicting - blocked - unstable type: string number: type: integer review: enum: - none - approved - changes_requested - review_required type: string reviewComments: type: boolean stackParent: type: integer state: enum: - draft - open - merged - closed type: string updatedAt: format: date-time type: string url: type: string required: - url - number - state - ci - review - mergeability - reviewComments - updatedAt type: object SessionPRFailingCheck: properties: conclusion: type: string name: type: string status: enum: - failed - cancelled type: string url: type: string required: - name - status - conclusion type: object SessionPRLabel: properties: color: type: string name: type: string required: - name type: object SessionPRMergeQueueEntry: properties: enqueuedAt: format: date-time type: - "null" - string estimatedSecondsToMerge: type: integer position: type: integer state: enum: - queued - awaiting_checks - mergeable - unmergeable - locked type: string required: - state - position type: object SessionPRMergeabilitySummary: properties: conflictFiles: items: $ref: '#/components/schemas/SessionPRConflictFile' type: array prUrl: type: string reasons: items: type: string type: array state: enum: - unknown - mergeable - conflicting - blocked - unstable type: string required: - state - reasons - prUrl type: object SessionPRReference: properties: host: type: string number: type: integer provider: enum: - github - gitlab type: string repo: type: string url: type: string required: - url - provider - host - repo - number type: object SessionPRRequestedReviewer: properties: avatarUrl: type: string isTeam: type: boolean login: type: string required: - login type: object SessionPRReviewCommentLink: properties: autoInjectReview: type: boolean body: type: string file: type: string line: type: integer reviewId: type: string url: type: string required: - autoInjectReview type: object SessionPRReviewEntry: properties: autoInjectReview: type: boolean body: type: string isBot: type: boolean reviewUrl: type: string reviewerId: type: string submittedAt: format: date-time type: string verdict: enum: - none - approved - changes_requested - review_required type: string required: - reviewerId - verdict - submittedAt - autoInjectReview type: object SessionPRReviewSummary: properties: decision: enum: - none - approved - changes_requested - review_required type: string hasUnresolvedHumanComments: type: boolean resolvedBy: items: $ref: '#/components/schemas/SessionPRUnresolvedReviewer' type: array reviews: items: $ref: '#/components/schemas/SessionPRReviewEntry' type: array unresolvedBy: items: $ref: '#/components/schemas/SessionPRUnresolvedReviewer' type: array unresolvedThreadCount: type: - "null" - integer required: - decision - hasUnresolvedHumanComments - unresolvedBy type: object SessionPRSummary: properties: additions: type: integer author: type: string authorAvatarUrl: type: string changedFiles: type: integer ci: $ref: '#/components/schemas/SessionPRCISummary' ciObservedAt: format: date-time type: string commitCount: type: integer commits: items: $ref: '#/components/schemas/SessionPRCommit' type: array conversation: items: $ref: '#/components/schemas/SessionPRComment' type: array createdAt: format: date-time type: - "null" - string deletions: type: integer description: type: string descriptionTruncated: type: boolean detailsObservedAt: format: date-time type: - "null" - string headSha: type: string htmlUrl: type: string labels: items: $ref: '#/components/schemas/SessionPRLabel' type: array mergeQueue: $ref: '#/components/schemas/SessionPRMergeQueueEntry' mergeQueueRequired: type: boolean mergeability: $ref: '#/components/schemas/SessionPRMergeabilitySummary' number: type: integer observedAt: format: date-time type: string provider: enum: - github - gitlab type: string repo: type: string requestedReviewers: items: $ref: '#/components/schemas/SessionPRRequestedReviewer' type: array review: $ref: '#/components/schemas/SessionPRReviewSummary' reviewObservedAt: format: date-time type: string sourceBranch: type: string state: enum: - draft - open - merged - closed type: string stateChangedAt: format: date-time type: - "null" - string targetBranch: type: string threads: items: $ref: '#/components/schemas/SessionPRThread' type: array title: type: string updatedAt: format: date-time type: string url: type: string required: - url - number - title - state - provider - repo - author - sourceBranch - targetBranch - headSha - additions - deletions - changedFiles - ci - review - mergeability - updatedAt - labels - requestedReviewers - commits - commitCount type: object SessionPRThread: properties: comments: items: $ref: '#/components/schemas/SessionPRComment' type: array id: type: string line: type: integer path: type: string resolved: type: boolean required: - id - resolved - comments type: object SessionPRUnresolvedReviewer: properties: count: type: integer isBot: type: boolean links: items: $ref: '#/components/schemas/SessionPRReviewCommentLink' type: array reviewUrl: type: string reviewerId: type: string required: - reviewerId - count - links type: object SessionPreviewResponse: properties: entry: type: string previewUrl: type: string sessionId: type: string source: description: Root containing the selected static entry; omitted for external app URLs. enum: - workspace - artifact type: string required: - sessionId type: object SessionProvisionStep: properties: endedAt: format: date-time type: - "null" - string id: enum: - fetch - worktree - setup - agent type: string startedAt: format: date-time type: - "null" - string status: enum: - pending - running - done type: string required: - id - status type: object SessionResponse: properties: session: $ref: '#/components/schemas/ControllersSessionView' required: - session type: object SessionSearchCoverage: properties: backfilledAt: format: date-time type: string indexedDocs: format: int64 type: integer indexedSources: format: int64 type: integer pendingSources: format: int64 type: integer state: enum: - ready - backfilling - unavailable type: string unavailableSources: format: int64 type: integer unindexedHarnesses: items: type: string type: array unsupportedSources: format: int64 type: integer required: - state - indexedSources - pendingSources - unsupportedSources - unavailableSources - indexedDocs type: object SessionSearchHighlight: properties: end: type: integer start: type: integer required: - start - end type: object SessionSearchIndexStatusResponse: properties: coverage: $ref: '#/components/schemas/SessionSearchCoverage' required: - coverage type: object SessionSearchResponse: properties: coverage: $ref: '#/components/schemas/SessionSearchCoverage' group: enum: - session - message type: string limit: type: integer offset: type: integer query: type: string results: items: $ref: '#/components/schemas/SessionSearchResult' type: array sort: enum: - relevance - recent type: string total: type: integer required: - query - results - total - limit - offset - sort - group - coverage type: object SessionSearchResult: properties: createdAt: format: date-time type: string harness: type: string highlights: items: $ref: '#/components/schemas/SessionSearchHighlight' type: array kind: enum: - title - user - assistant - tool - command - path type: string messageId: type: string namedForQuery: type: boolean projectId: type: string projectName: type: string rank: format: double type: number resumeCommand: type: string reviewId: type: string seq: format: int64 type: integer sessionId: type: string sessionMatches: type: integer sessionName: type: string sessionState: type: string snippet: type: string title: type: string required: - sessionId - projectId - harness - kind - seq - snippet - rank - createdAt type: object SessionStaleBinary: properties: since: format: date-time type: string switchFailedAt: format: date-time type: - "null" - string version: description: Harness release now installed; the session moves to it on its next launch. type: string required: - version - since type: object SessionStepResponse: properties: endedAt: description: Absent while the tool is still running. format: date-time type: - "null" - string failed: type: boolean startedAt: format: date-time type: string tool: type: string required: - tool - startedAt - failed type: object SessionWait: properties: reason: enum: - working - command - approval - starting - reviewer - resume type: string sessionId: type: string required: - sessionId - reason type: object SetActivityRequest: properties: agentSessionId: description: Native agent session identifier used to resume its transcript. type: string conversationCheckpointOrigin: description: Whether the main-turn boundary came from a human or AO coordination. enum: - human - coordination type: string coordinationId: description: Opaque identity of an AO-authored semantic prompt accepted by the native agent. type: string entrypoint: description: Provider process-kind marker (Claude's CLAUDE_CODE_ENTRYPOINT) of the process that fired the hook. type: string event: description: AO hook sub-command that produced this state (e.g. post-tool-use). type: string finalAssistantMessage: description: The agent's final message of the turn, kept for terminal turn history only. maxLength: 16384 type: string harness: description: The agent whose hook sent this signal. A signal from an agent the session no longer runs is ignored. maxLength: 64 type: string latestAssistantUpdate: description: Latest assistant update exposed by the provider hook. maxLength: 16384 type: string latestUserPrompt: description: Latest real user prompt exposed by the provider hook. maxLength: 16384 type: string launchId: description: AO process generation that produced the signal. type: string observedAt: description: Time the local hook process observed the event, before delivery to the daemon. format: date-time type: string prMayHaveChanged: description: The finished tool call probably changed the session's pull request (gh pr merge, git push), so AO re-reads it early. type: boolean processId: description: Process id of the provider process that fired the hook (Claude's CLAUDE_PID). minimum: 0 type: integer providerTurnId: description: Native main-turn identity reported by the hook, when supported. type: string runningSubagentIds: description: Running Claude subagent ids observed in a parent Stop hook; empty means none, absent means no snapshot. items: type: string type: - "null" - array state: description: Agent activity state reported by an agent hook. Optional for metadata-only hooks. enum: - active - idle - waiting_input - blocked - exited type: string subagentId: description: Native child agent id for this hook event. type: string submissionId: description: AO prompt-hook context correlation UUID, when supported. maxLength: 36 type: string toolName: description: Native tool name, for tool-use hook events. type: string toolUseId: description: Native tool-use id, for tool-use hook events. type: string transcriptPath: description: Read-only provider-native transcript path exposed by the hook. maxLength: 4096 type: string turnUserRequest: description: The user's request for the turn, kept for terminal turn history only. maxLength: 16384 type: string usage: $ref: '#/components/schemas/UsageHookMetadata' description: Provider transcript metadata used by the local usage pipeline. type: object SetActivityResponse: properties: ok: type: boolean sessionId: type: string state: type: string required: - ok - sessionId - state type: object SetBrowserRemoteAccessRequest: properties: enabled: type: boolean required: - enabled type: object SetChatViewRequest: properties: active: type: boolean viewId: type: string required: - viewId - active type: object SetConversationConfigOptionRequest: properties: enabled: type: - "null" - boolean value: type: string type: object SetConversationTitleRequest: properties: title: type: string required: - title type: object SetConversationTitleResponse: properties: title: type: string required: - title type: object SetProjectConfigInput: properties: config: $ref: '#/components/schemas/ProjectConfig' required: - config type: object SetProjectPermissionsInput: properties: permissions: enum: - default - accept-edits - auto - bypass-permissions type: string sourceHarness: type: string required: - permissions type: object SetReviewActivityRequest: properties: agentSessionId: description: Native reviewer session identifier used to resume its transcript. type: string event: description: AO hook sub-command that produced this signal. type: string launchId: description: AO process generation that produced the signal. type: string state: description: Reviewer activity state reported by a hook. Used for reviewer-pane live status, not worker session state. enum: - active - idle - waiting_input - blocked - exited type: string type: object SetReviewActivityResponse: properties: ok: type: boolean reviewSessionId: type: string required: - ok - reviewSessionId type: object SetSessionAutoInjectCIRequest: properties: autoInjectCI: type: boolean required: - autoInjectCI type: object SetSessionAutoInjectCIResponse: properties: autoInjectCI: type: boolean ok: type: boolean session: $ref: '#/components/schemas/ControllersSessionView' sessionId: type: string required: - ok - sessionId - autoInjectCI - session type: object SetSessionAutoInjectReviewRequest: properties: autoInjectReview: type: boolean required: - autoInjectReview type: object SetSessionAutoInjectReviewResponse: properties: autoInjectReview: type: boolean ok: type: boolean session: $ref: '#/components/schemas/ControllersSessionView' sessionId: type: string required: - ok - sessionId - autoInjectReview - session type: object SetSessionDeviceQualityRequest: properties: quality: description: high, balanced or low. type: string required: - quality type: object SetSessionMergePolicyRequest: properties: terminateOnPrMerge: type: boolean required: - terminateOnPrMerge type: object SetSessionMergePolicyResponse: properties: ok: type: boolean session: $ref: '#/components/schemas/ControllersSessionView' sessionId: type: string terminateOnPrMerge: type: boolean required: - ok - sessionId - terminateOnPrMerge - session type: object SetSessionPreviewRequest: properties: requireWorkspaceFile: description: Reject the target unless it resolves to an existing file in the session workspace. type: boolean url: description: Preview target URL. When empty, the daemon autodetects a static entry point in the session workspace. type: string type: object SetSessionReviewerRequest: properties: agentConfig: $ref: '#/components/schemas/AgentConfig' harness: enum: - claude-code - codex - copilot - cursor - kilocode - opencode - opencode-v2 - kiro - pi - agy - devin - droid - kimi - kimchi - muse - amp - aider - grok - crush - auggie - cline - autohand type: string type: object SetTurnAutoResumeRequest: properties: enabled: type: - "null" - boolean required: - enabled type: object SettingsResponse: properties: accountHandoff: description: A Chat turn refused for a usage limit moves its session to another signed-in account of the same agent with room, and the prompt is retried there once (Settings, Agent accounts). type: boolean chatHarnesses: items: type: string type: array chatHibernationEnabled: type: boolean client: type: string cloudControlPlaneUrl: type: string cloudEnabled: type: boolean commitAttribution: description: 'Beta: new sessions add a Co-authored-by: orchestrator-inc[bot] trailer to commits and an Generated by Orchestrator line to PR bodies, unless the project turns them off.' type: boolean computerUse: description: New chat sessions get tools to drive desktop apps through Cua Driver (Settings, Computer use agents). type: boolean defaultSessionMode: enum: - chat - tui type: string harnessDefaults: additionalProperties: $ref: '#/components/schemas/HarnessDefault' type: object localEnabled: type: boolean sessionRetentionDays: description: Days an archived session whose worktree is released is kept before the daemon deletes it permanently; 0 keeps it. type: integer trackerIntakeEnabled: type: boolean versionRefresh: description: After a harness update, idle open sessions restart on the new release instead of running the old one until they happen to restart. type: boolean required: - defaultSessionMode - chatHarnesses - client - localEnabled - chatHibernationEnabled - versionRefresh - computerUse - accountHandoff - commitAttribution - sessionRetentionDays - cloudEnabled - cloudControlPlaneUrl - trackerIntakeEnabled type: object ShellTerminalEnvelope: properties: shellTerminal: $ref: '#/components/schemas/ShellTerminalResponse' required: - shellTerminal type: object ShellTerminalResponse: properties: createdAt: format: date-time type: string endedAt: description: When the shell's process was found gone. Present only for an ended shell, which can be reopened or closed but not attached. format: date-time type: - "null" - string handleId: type: string projectId: type: string resumeHarness: description: For an ended shell, the coding agent that was running in it, which reopening with resumeAgent resumes. type: string sessionId: type: string terminalTitle: type: string title: type: string workingDir: type: string required: - handleId - workingDir - title - createdAt type: object SideActivity: properties: createdAt: format: date-time type: string decisions: items: $ref: '#/components/schemas/SideDecision' type: array detail: {} id: type: string input: $ref: '#/components/schemas/SideInput' kind: type: string requestId: type: string sideId: type: string status: type: string summary: type: string text: type: string turnId: type: string required: - id - sideId - turnId - kind - status - summary - createdAt type: object SideChatLaunchClaimRequest: properties: appRunId: type: string required: - appRunId type: object SideChatLaunchState: properties: appRunId: type: string numbers: additionalProperties: type: integer type: object sides: items: $ref: '#/components/schemas/SideRecoveryRecord' type: array required: - appRunId - sides type: object SideChatListResponse: properties: sides: items: $ref: '#/components/schemas/SideConversation' type: array required: - sides type: object SideChatSnapshotResponse: properties: snapshot: $ref: '#/components/schemas/SideSnapshot' required: - snapshot type: object SideContent: properties: data: type: string mimeType: type: string name: type: string text: type: string type: type: string uri: type: string required: - type type: object SideConversation: properties: anchorTurnId: type: string cleanupPending: type: boolean contextMode: type: string createdAt: format: date-time type: string effort: type: string errorMessage: type: string hasWork: type: boolean id: type: string label: type: string mainConversationId: type: string manualLabel: type: boolean model: type: string openingStartedAt: format: date-time type: - "null" - string openingTurnId: type: string recreateRequired: type: boolean selectedText: type: string sessionId: type: string sourceMessageId: type: string sourceRevision: format: int64 type: integer state: type: string updatedAt: format: date-time type: string required: - hasWork - id - sessionId - mainConversationId - contextMode - label - state - createdAt - updatedAt type: object SideDecision: properties: id: type: string kind: type: string label: type: string required: - id - label - kind type: object SideDraftRequest: properties: contentJson: type: string required: - contentJson type: object SideDraftResponse: properties: contentJson: type: string required: - contentJson type: object SideInput: properties: message: type: string mode: type: string schema: additionalProperties: {} type: object url: type: string required: - mode - message type: object SideLabelRequest: properties: label: type: string required: - label type: object SideMessage: properties: createdAt: format: date-time type: string id: type: string revision: format: int64 type: integer role: type: string sequence: format: int64 type: integer sideId: type: string streaming: type: boolean text: type: string turnId: type: string updatedAt: format: date-time type: string required: - id - sideId - turnId - role - text - sequence - revision - streaming - createdAt - updatedAt type: object SideQuestionResponse: properties: turn: $ref: '#/components/schemas/SideTurn' required: - turn type: object SideRecoveryRecord: properties: activities: items: $ref: '#/components/schemas/SideActivity' type: array activityProviderIds: additionalProperties: type: string type: object boundaryState: type: string boundaryTurnId: type: string cleanupOnly: type: boolean createKey: type: string decisionData: additionalProperties: items: format: base64 type: string type: array type: object draft: type: string generation: type: string harness: type: string hostStopped: type: boolean launchConfig: {} messageProviderIds: additionalProperties: type: string type: object messages: items: $ref: '#/components/schemas/SideMessage' type: array nativeAnchorId: type: string policyVersion: type: integer providerForkId: type: string providerHostId: type: string referenceContext: type: string referencePending: type: boolean seedHistory: type: string side: $ref: '#/components/schemas/SideConversation' sourceProviderId: type: string turns: items: $ref: '#/components/schemas/SideRecoveryTurn' type: array required: - policyVersion - sourceProviderId - launchConfig - createKey - side - providerHostId - providerForkId - nativeAnchorId - harness - generation - referenceContext - referencePending - seedHistory - turns - messages - activities - draft type: object SideRecoveryTurn: properties: content: items: $ref: '#/components/schemas/SideContent' type: array dispatchAttempt: type: integer effort: type: string model: type: string providerTurnId: type: string referenceContexts: items: type: string type: array settingsFrozen: type: boolean turn: $ref: '#/components/schemas/SideTurn' required: - referenceContexts - turn type: object SideSettingsRequest: properties: effort: type: string model: type: string required: - model - effort type: object SideSnapshot: properties: activities: items: $ref: '#/components/schemas/SideActivity' type: array hasMore: type: boolean messages: items: $ref: '#/components/schemas/SideMessage' type: array side: $ref: '#/components/schemas/SideConversation' turns: items: $ref: '#/components/schemas/SideTurn' type: array required: - side - turns - messages - activities - hasMore type: object SideTurn: properties: clientMessageId: type: string completedAt: format: date-time type: - "null" - string createdAt: format: date-time type: string errorMessage: type: string id: type: string referenceContext: type: string references: items: $ref: '#/components/schemas/DomainSideReference' type: array retryOfTurnId: type: string selectionText: type: string sideId: type: string startedAt: format: date-time type: - "null" - string state: type: string text: type: string required: - id - sideId - clientMessageId - text - state - createdAt type: object SpawnOrchestratorRequest: properties: approvalMode: enum: - default - accept-edits - auto - bypass-permissions type: string clean: type: boolean mode: enum: - chat - tui type: string projectId: type: string required: - projectId type: object SpawnOrchestratorResponse: properties: orchestrator: $ref: '#/components/schemas/OrchestratorResponse' required: - orchestrator type: object SpawnSessionRequest: properties: accountId: maxLength: 128 type: string approvalMode: enum: - default - accept-edits - auto - bypass-permissions type: string async: type: boolean attachments: items: $ref: '#/components/schemas/AttachmentInput' type: array autoCompactWindow: enum: - 200k - 500k - 1m - "off" type: string baseBranch: maxLength: 255 type: string branch: type: string clientRequestId: maxLength: 128 type: string displayName: maxLength: 100 type: string displayNameExplicit: type: boolean effort: maxLength: 32 type: string fastMode: type: boolean harness: enum: - claude-code - codex - aider - opencode - opencode-v2 - grok - droid - amp - agy - crush - cursor - qwen - gemini - copilot - goose - auggie - continue - devin - cline - kimi - muse - kiro - kilocode - vibe - pi - kimchi - omp - fx - prime-agent - autohand - unreal-agent - codewhale - mimo-code - minimax-code - deepseek-harness - openhands - command-code - mastra-code - docker-agent - memcode - hermes - stakpak - open-interpreter - tau type: string issueId: type: string kind: enum: - worker - orchestrator type: string mode: enum: - chat - tui type: string model: maxLength: 256 type: string parentSessionId: type: string projectId: type: string prompt: maxLength: 102400 type: string requestedOutput: enum: - artifact type: string terminateOnPrMerge: type: - "null" - boolean trackerProvider: enum: - github - gitlab type: string type: object SpawnSessionResponse: properties: promptBytes: type: integer session: $ref: '#/components/schemas/ControllersSessionView' systemPromptBytes: type: integer required: - session - promptBytes - systemPromptBytes type: object StageSessionAttachmentsRequest: properties: attachments: items: $ref: '#/components/schemas/AttachmentInput' type: array required: - attachments type: object StageSessionAttachmentsResponse: properties: paths: items: type: string type: array sessionId: type: string required: - sessionId - paths type: object StartAgentAccountLoginRequest: properties: method: enum: - browser - console - sso - setup_token - device_code - api_key - access_token type: string name: type: string provider: enum: - claude - codex type: string secret: type: string required: - provider type: object StartAgentAccountLoginResponse: properties: account: $ref: '#/components/schemas/AgentAccountResponse' authOperationId: type: string operationId: type: string provider: enum: - claude - codex type: string shellTerminal: $ref: '#/components/schemas/CodexAccountLoginTerminalResponse' required: - provider type: object StartAgentAuthResponse: properties: action: type: string agentId: type: string guidance: type: string terminal: $ref: '#/components/schemas/ShellTerminalResponse' terminalInput: type: string required: - agentId - action - terminal type: object StartAgentInstallRequest: properties: expectedVersion: description: For updates, the available version explicitly approved by the user. The update must reach it. It is installed only when it lies between the installed version and the latest release AO found; otherwise that latest release is installed. A version at or below the installed one, or one sent with another operation, is rejected with INVALID_UPDATE_VERSION. type: string method: description: Server-issued installation method id. Omit to use the recommended viable method for an install or reinstall, and the method that owns the installed copy for an update. type: string operation: description: Requested operation. Defaults to install for older clients. enum: - install - reinstall - update type: string type: object StartAgentUILoginRequest: properties: device: type: - "null" - boolean method: type: string model: type: string provider: type: string secret: type: string required: - method type: object StartAwakeRequest: properties: boundId: type: string boundIdentity: type: string durationSeconds: type: integer lidClosed: type: boolean mode: enum: - indefinite - duration - until - app - download type: string scope: enum: - ao - session type: string sessionId: type: string until: format: date-time type: - "null" - string required: - scope - sessionId - mode - durationSeconds - boundId - lidClosed type: object StartCodexAccountSwitchRequest: properties: expectedAccountRevision: deprecated: true minimum: 0 type: - "null" - integer idempotencyKey: minLength: 1 type: string targetAccountId: minLength: 1 type: string required: - targetAccountId - idempotencyKey type: object StartPreviewServerRequest: properties: configuration: description: Named preview configuration. Optional when exactly one configuration exists. type: string type: object StartSessionInterfaceTransitionRequest: properties: historyPolicy: enum: - strict - provider_history type: string policy: enum: - drain - interrupt type: string targetMode: enum: - chat - tui type: string required: - targetMode - policy type: object StartSessionInterfaceTransitionResponse: properties: ok: type: boolean sessionId: type: string transition: $ref: '#/components/schemas/SessionInterfaceTransition' required: - ok - sessionId - transition type: object SteerConversationRequest: properties: attachments: items: $ref: '#/components/schemas/ConversationImageContentRequest' type: array clientMessageId: type: string recoverOnly: type: boolean senderSessionId: type: string text: type: string required: - text type: object SteerConversationResponse: properties: activityId: type: string providerTurnId: type: string required: - providerTurnId type: object SteerOrSendConversationResponse: properties: activityId: type: string duplicate: type: boolean outcome: enum: - steered - sent type: string providerTurnId: type: string state: enum: - queued - running - completed - recovered - interrupted - failed type: string turnId: type: string required: - outcome - duplicate type: object SubmitAgentUILoginCodeRequest: properties: code: type: string required: - code type: object SubmitReviewInput: properties: body: description: Review body recorded by AO. Required for changes_requested. type: string githubReviewId: description: Id of the GitHub PR review the reviewer posted, if any. type: string reviews: description: Batched review results recorded by one reviewer CLI command. items: $ref: '#/components/schemas/SubmitReviewItem' type: array runId: description: Review run id being completed. type: string verdict: description: 'Review verdict: approved or changes_requested.' type: string type: object SubmitReviewItem: properties: body: description: Review body recorded by AO. Required for changes_requested. type: string githubReviewId: description: Id of the GitHub PR review the reviewer posted, if any. type: string runId: description: Review run id being completed. type: string verdict: description: 'Review verdict: approved or changes_requested.' type: string required: - runId - verdict type: object SwitchSessionAgentAccountRequest: properties: accountId: minLength: 1 type: string stopTurn: type: boolean required: - accountId type: object SyncArtifactVersionsRequest: properties: path: description: Artifact-directory-relative file path, as listed in the session's artifactFiles. type: string required: - path type: object SystemMemoryResponse: properties: availableBytes: description: What the kernel would hand out without swapping (MemAvailable). minimum: 0 type: integer cpuCount: minimum: 0 type: integer cpuMeasured: type: boolean cpuPercent: format: double minimum: 0 type: number load1: format: double type: number pressureRaw: format: double minimum: 0 type: number pressureSource: enum: - psi - available_pct - memorystatus type: string swapBytesPerSec: format: double minimum: 0 type: number swapTotalBytes: minimum: 0 type: integer swapUsedBytes: minimum: 0 type: integer totalBytes: minimum: 0 type: integer required: - totalBytes - availableBytes - swapTotalBytes - swapUsedBytes - swapBytesPerSec - cpuCount - load1 - cpuPercent - cpuMeasured - pressureRaw - pressureSource type: object SystemRequirement: properties: detail: description: 'Extra context: the resolved path when satisfied, or why it is not.' type: string id: description: Stable requirement identifier. enum: - git - tmux - harness - gh - github-auth type: string label: description: Human-readable requirement name. type: string required: description: Whether this requirement blocks the overall Ready state. type: boolean satisfied: description: Whether this requirement is currently met. type: boolean required: - id - label - satisfied - required type: object SystemRequirementsResponse: properties: ready: description: True iff every requirement with Required=true is satisfied. Requirements with Required=false (e.g. gh) are advisory and never block readiness. type: boolean requirements: description: Individual checks in stable order for the selected probe. items: $ref: '#/components/schemas/SystemRequirement' type: array required: - ready - requirements type: object TelemetryIdentityResponse: properties: cloudUserId: type: string distinctId: type: string githubLogin: type: string installId: type: string isSignedIn: type: - "null" - boolean lifetimeSessions: type: - "null" - integer optedOut: type: boolean required: - distinctId - optedOut type: object TerminalShellCheckResponse: properties: executable: type: boolean message: description: Why the path cannot launch. type: string path: description: Resolved executable path when executable. type: string required: - executable type: object TerminalShellResponse: properties: id: description: 'Value to send as a terminal''s shell: auto, a Windows selector, or the executable path.' type: string name: description: Display name, such as zsh or PowerShell. type: string path: description: Executable path. Empty when the default shell cannot be resolved. type: string required: - id - name type: object TerminalShellsResponse: properties: default: $ref: '#/components/schemas/TerminalShellResponse' description: The shell auto resolves to. shells: description: Installed shells, one per real binary. items: $ref: '#/components/schemas/TerminalShellResponse' type: array required: - default - shells type: object TrackerIntakeConfig: properties: assignee: type: string enabled: type: boolean provider: enum: - github - gitlab type: string repo: type: string type: object TriggerReviewRequest: properties: agentConfig: $ref: '#/components/schemas/AgentConfig' enableAutoInject: description: Turn on the worker session's review auto-inject once a pass has started, so the reviewer's PR review comments reach the worker. type: boolean harness: enum: - claude-code - codex - copilot - cursor - kilocode - opencode - opencode-v2 - kiro - pi - agy - devin - droid - kimi - kimchi - muse - amp - aider - grok - crush - auggie - cline - autohand type: string interfaceMode: enum: - chat - tui type: string prUrl: description: Restrict the pass to this pull request, attaching it to the session first if AO does not track it yet (never from another active session). Omit to review every eligible PR on the session. type: string rejectReviewedHead: description: Return 409 instead of reusing when every open PR head is already being reviewed or already has a review. type: boolean requesterSessionId: description: Agent session that requested the pass and should receive its final outcome. type: string rerun: description: Start a fresh pass for already-reviewed current heads; a different reviewer may run alongside one that is still running. A person's rerun reuses an active pass from the same reviewer; an agent's rerun returns 409 REVIEW_ALREADY_RUNNING instead. type: boolean source: description: 'Who requested the pass: manual (a person, the default) or agent (an AO session through the CLI).' enum: - manual - agent type: string type: object TriggerReviewResponse: properties: autoInjectEnabled: description: True when this request turned the worker session's review auto-inject on. type: boolean created: description: True when a new review pass was started; false when an existing run for the same commit was reused. type: boolean reviewerHandleId: type: string reviewerSurface: $ref: '#/components/schemas/DomainReviewerSurface' reviews: items: $ref: '#/components/schemas/PRReviewState' type: array runs: items: $ref: '#/components/schemas/ReviewRun' type: array required: - reviewerHandleId - reviews - runs - created - autoInjectEnabled type: object UnavailableChatAgent: properties: agent: type: string reason: type: string required: - agent - reason type: object UnavailableChatAgentsResponse: properties: agents: items: $ref: '#/components/schemas/UnavailableChatAgent' type: array required: - agents type: object UnregisterPushDeviceResponse: properties: deleted: type: boolean token: type: string required: - token - deleted type: object UpdateAccountHandoffRequest: properties: enabled: type: - "null" - boolean required: - enabled type: object UpdateArtifactFileRequest: properties: content: description: The file's new UTF-8 text content. type: string expectedFileFingerprint: description: Hex SHA-256 of the file content the edit started from. type: string path: description: Artifact-directory-relative file path, as listed in the session's artifactFiles. type: string required: - path - content - expectedFileFingerprint type: object UpdateAutomationRequest: properties: cron: type: - "null" - string displayName: type: - "null" - string effort: type: - "null" - string enabled: type: - "null" - boolean harness: type: - "null" - string kind: enum: - worker - orchestrator type: - "null" - string mode: type: - "null" - string model: type: - "null" - string prompt: type: - "null" - string rrule: type: - "null" - string timezone: type: - "null" - string useCase: enum: - pr_review - issue_triage - repo_digest - ci_triage - release_notes - security_audit - dependency_maintenance - docs_maintenance - other - unknown type: - "null" - string type: object UpdateChatHibernationRequest: properties: enabled: type: - "null" - boolean required: - enabled type: object UpdateCommitAttributionRequest: properties: enabled: type: - "null" - boolean required: - enabled type: object UpdateComputerUseRequest: properties: enabled: type: - "null" - boolean required: - enabled type: object UpdateHarnessDefaultRequest: properties: disabledModels: items: type: string maxItems: 20000 type: - "null" - array required: - disabledModels type: object UpdateProjectSettingsInput: properties: config: $ref: '#/components/schemas/ProjectConfig' displayName: maxLength: 100 minLength: 1 type: string required: - displayName - config type: object UpdateSessionInterfaceRequest: properties: defaultSessionMode: enum: - chat - tui type: string required: - defaultSessionMode type: object UpdateSessionRetentionRequest: properties: days: description: Days to keep an archived session whose worktree is released; 0 keeps it. maximum: 3650 minimum: 0 type: - "null" - integer required: - days type: object UpdateShellTerminalRequest: properties: title: description: New tab title for the shell terminal. Trimmed; must be non-empty. type: string required: - title type: object UpdateVersionRefreshRequest: properties: enabled: type: - "null" - boolean required: - enabled type: object UpdateWorkspaceFileRequest: properties: content: type: string expectedFileFingerprint: type: string path: type: string required: - path - content - expectedFileFingerprint type: object UsageHookMetadata: properties: harness: enum: - claude-code - codex type: string modelId: type: string providerId: description: Canonical provider routing hint derived by the trusted local Claude hook. type: string subagentId: type: string subagentTranscriptPath: type: string transcriptPath: type: string required: - harness type: object UsageLimitHistoryRequest: properties: enabled: type: - "null" - boolean required: - enabled type: object UsageLimitHistoryResponse: properties: enabled: type: boolean required: - enabled type: object UsageLimitLogin: properties: accountId: type: string email: type: string plan: type: string provider: enum: - claude - codex type: string windows: items: $ref: '#/components/schemas/UsageLimitSpan' type: array required: - provider - accountId - windows type: object UsageLimitPoint: properties: at: format: date-time type: string usedPercent: format: double maximum: 100 minimum: 0 type: number required: - at - usedPercent type: object UsageLimitSpan: properties: durationMinutes: minimum: 0 type: integer firstReadAt: format: date-time type: string label: type: string lastReadAt: format: date-time type: string peakUsedPercent: format: double maximum: 100 minimum: 0 type: number points: items: $ref: '#/components/schemas/UsageLimitPoint' type: array readings: minimum: 1 type: integer resetsAt: format: date-time type: string startsAt: format: date-time type: - "null" - string state: enum: - final - partial - open type: string windowId: type: string required: - windowId - label - resetsAt - peakUsedPercent - firstReadAt - lastReadAt - readings - state type: object UsageLimitWindowsResponse: properties: firstReadingAt: format: date-time type: - "null" - string logins: items: $ref: '#/components/schemas/UsageLimitLogin' type: array since: format: date-time type: string until: format: date-time type: string required: - since - until - logins type: object UsagePriceOverride: properties: cacheReadUsdPerMillion: description: Decimal USD per million cache-read tokens. Defaults to the input price. type: string cacheWriteUsdPerMillion: description: Decimal USD per million cache-write tokens. Defaults to the input price. type: string inputUsdPerMillion: description: Decimal USD per million uncached input tokens. Set with output. type: string modelId: description: Model ID as usage rows store it. maxLength: 256 type: string outputUsdPerMillion: description: Decimal USD per million output tokens. Set with input. type: string priceAs: description: Catalog model to price as, provider/model, in place of rates. maxLength: 256 type: string required: - modelId type: object UsagePricesRequest: properties: overrides: items: $ref: '#/components/schemas/UsagePriceOverride' type: array required: - overrides type: object UsagePricesResponse: properties: models: description: Catalog models a model can price as, provider/model. items: type: string type: array overrides: items: $ref: '#/components/schemas/UsagePriceOverride' type: array required: - overrides - models type: object UsageReportResponse: properties: days: type: integer periods: description: 'Every bucket in the window, oldest first: 2006-01-02 by day, 2006-01-02T15:00 by hour.' items: type: string type: array resolution: enum: - day - hour type: string rows: items: $ref: '#/components/schemas/UsageReportRowResponse' type: array sessions: items: $ref: '#/components/schemas/UsageReportSessionResponse' type: array since: format: date-time type: string timeZone: type: string until: format: date-time type: string required: - days - timeZone - resolution - since - until - periods - rows - sessions type: object UsageReportRowResponse: properties: cacheReadCostNanos: format: int64 type: integer cacheReadTokens: format: int64 type: integer cacheSavingsNanos: description: What cache reads saved against paying input rates for those tokens. format: int64 type: integer cacheWriteCostNanos: format: int64 type: integer cacheWriteTokens: format: int64 type: integer costNanos: format: int64 type: integer events: format: int64 type: integer harness: type: string inputCostNanos: format: int64 type: integer inputTokens: description: Uncached input that was not written to the cache. format: int64 type: integer model: type: string outputCostNanos: format: int64 type: integer outputTokens: format: int64 type: integer period: type: string premiumNanos: description: Part of costNanos above standard rates, from priority, fast or ultrafast processing. format: int64 type: integer pricedEvents: format: int64 type: integer speed: description: standard, priority, fast, flex, ultrafast, or unknown. type: string required: - period - harness - model - speed - events - pricedEvents - inputTokens - cacheReadTokens - cacheWriteTokens - outputTokens - inputCostNanos - cacheReadCostNanos - cacheWriteCostNanos - outputCostNanos - costNanos - premiumNanos - cacheSavingsNanos type: object UsageReportSessionResponse: properties: costNanos: format: int64 type: integer events: format: int64 type: integer harness: type: string lastUsedAt: format: date-time type: string pricedEvents: format: int64 type: integer projectId: type: string sessionId: type: string title: type: string tokens: format: int64 type: integer required: - sessionId - harness - title - events - pricedEvents - tokens - costNanos - lastUsedAt type: object VerifyAgentAccountLoginResponse: properties: account: $ref: '#/components/schemas/AgentAccountResponse' status: enum: - waiting - complete - duplicate - mismatch - not_subscription type: string required: - status type: object WorkspaceBranchResponse: properties: checkedOut: type: boolean detached: type: boolean isDefault: type: boolean kind: description: local reads as a branch view (or the checked-out worktree); pull_request reads as a pull request view. enum: - local - remote - pull_request type: string name: description: Branch name, the pull request's source branch, or empty for a detached HEAD. type: string prNumber: type: integer prTitle: type: string prUrl: description: Pass as sourceUrl with prNumber to read a pull_request row. type: string tipSha: type: string updatedAt: description: The tip's committer time, or the pull request's last update. format: date-time type: - "null" - string required: - kind - name - checkedOut - isDefault type: object WorkspaceBranchesResponse: properties: branches: description: The checked-out row first, then the rest newest first; at most 200 rows. items: $ref: '#/components/schemas/WorkspaceBranchResponse' type: array defaultBranch: type: string sessionId: type: string supported: description: False for scratch sessions, which have no Git history. type: boolean truncated: type: boolean required: - sessionId - supported - branches - truncated type: object WorkspaceCommitConflictResponse: properties: commitSha: description: The ticked commit whose changes did not apply. type: string paths: description: Up to 20 paths that did not apply. items: type: string type: array reason: enum: - conflict - unsupported_history type: string required: - commitSha - paths - reason type: object WorkspaceCommitSelectionRequest: properties: branch: description: Local branch to read instead of the checked-out worktree. type: string commitShas: description: Full SHAs. Empty = the whole range (All commits). items: type: string maxItems: 250 type: array expectedBaseSha: description: The view's baseSha from its history. A moved base fails with WORKSPACE_REF_MOVED. type: string expectedTipSha: description: The view's tipSha from its history. A moved tip fails with WORKSPACE_REF_MOVED. type: string prNumber: description: Associated pull request to read instead of the checked-out worktree. minimum: 1 type: integer sourceUrl: description: Stable URL of the pull request, for PRs that share a number. Requires prNumber. type: string workspaceVersion: description: Fence for checked-out selections. type: string required: - commitShas type: object WorkspaceCommitSelectionResponse: properties: baseSha: type: string combinable: type: boolean conflict: $ref: '#/components/schemas/WorkspaceCommitConflictResponse' contiguous: description: True when the commits form one unbroken range. type: boolean files: items: $ref: '#/components/schemas/WorkspaceFileSummary' type: array sessionId: type: string summary: $ref: '#/components/schemas/WorkspaceSummary' tipSha: type: string truncated: type: boolean required: - sessionId - tipSha - contiguous - combinable - files - summary - truncated type: object WorkspaceCommitSummary: properties: author: type: string files: items: $ref: '#/components/schemas/WorkspaceFileSummary' type: array sha: type: string subject: type: string timestamp: format: date-time type: string required: - sha - subject - author - timestamp - files type: object WorkspaceContentSearchHitResponse: properties: line: type: integer path: type: string text: description: The line, with each match wrapped in U+0002 and U+0003. type: string required: - path - line - text type: object WorkspaceContentSearchResponse: properties: results: items: $ref: '#/components/schemas/WorkspaceContentSearchHitResponse' type: array required: - results type: object WorkspaceDiffDeferredResponse: properties: path: type: string reason: enum: - binary - oversized - generated - long_line - budget_exceeded type: string required: - path - reason type: object WorkspaceDiffErrorResponse: properties: code: type: string message: type: string required: - code - message type: object WorkspaceDiffGroupResponse: properties: deferred: items: $ref: '#/components/schemas/WorkspaceDiffDeferredResponse' type: array errors: items: $ref: '#/components/schemas/WorkspaceDiffErrorResponse' type: array includedPaths: items: type: string type: array patch: type: string repository: type: string truncated: type: boolean required: - patch - truncated - includedPaths - deferred - errors type: object WorkspaceDiffRequest: properties: branch: description: Local branch to read instead of the checked-out worktree. Requires the committed scope. type: string commitSha: description: Exact commit SHA for a committed-scope comparison. Cannot be combined with commitShas. type: string commitShas: description: Full SHAs whose combined changes are compared. Requires the committed scope. items: type: string maxItems: 250 type: array contextLines: maximum: 20 minimum: 0 type: integer expectedBaseSha: description: The view's baseSha from its history. A moved base fails with WORKSPACE_REF_MOVED. type: string expectedTipSha: description: The view's tipSha from its history. A moved tip fails with WORKSPACE_REF_MOVED. type: string ignoreWhitespace: type: boolean paths: items: type: string maxItems: 100 minItems: 1 type: array prNumber: description: Associated pull request to read instead of the checked-out worktree. Requires the committed scope. minimum: 1 type: integer scope: enum: - combined - uncommitted - committed - staged - unstaged - untracked type: string sourceUrl: description: Stable URL of the pull request, for PRs that share a number. Requires prNumber. type: string workspaceVersion: type: string required: - scope - paths - contextLines - ignoreWhitespace type: object WorkspaceDiffsResponse: properties: groups: items: $ref: '#/components/schemas/WorkspaceDiffGroupResponse' type: array sessionId: type: string workspaceVersion: type: string required: - sessionId - workspaceVersion - groups type: object WorkspaceFileResponse: properties: additions: type: integer binary: type: boolean compareBaseRef: type: string compareBaseSha: type: string compareMode: enum: - base - head_fallback type: string content: type: string contentTruncated: type: boolean deleted: type: boolean deletions: type: integer diff: type: string diffTruncated: type: boolean editable: type: boolean fileFingerprint: type: string historical: description: True only for a read-only revision, never a live worktree file. type: boolean imageMediaType: type: string path: type: string previousPath: type: string sessionId: type: string size: format: int64 type: integer status: enum: - unmodified - modified - added - deleted - renamed type: string workspaceVersion: type: string required: - sessionId - path - status - additions - deletions - size - binary - deleted - editable - content - contentTruncated - diff - diffTruncated - workspaceVersion - fileFingerprint type: object WorkspaceFileRevisionResponse: properties: binary: type: boolean content: type: string encoding: type: string exists: type: boolean mediaType: type: string path: type: string revision: type: string sessionId: type: string side: enum: - before - after type: string size: format: int64 type: integer truncated: type: boolean workspaceVersion: type: string required: - sessionId - path - side - workspaceVersion - size - exists - binary - truncated - content type: object WorkspaceFileSearchResponse: properties: nextCursor: type: string query: type: string results: items: $ref: '#/components/schemas/WorkspaceFileSearchResultResponse' type: array sessionId: type: string truncated: type: boolean required: - sessionId - query - results - truncated type: object WorkspaceFileSearchResultResponse: properties: binary: type: boolean fileFingerprint: type: string path: type: string size: format: int64 type: integer status: enum: - unmodified - modified - added - deleted - renamed type: string required: - path - status - size - binary - fileFingerprint type: object WorkspaceFileSections: properties: committed: items: $ref: '#/components/schemas/WorkspaceFileSummary' type: array staged: items: $ref: '#/components/schemas/WorkspaceFileSummary' type: array uncommitted: description: Worktree vs HEAD, untracked files included. Always present; a response without it comes from an older daemon. items: $ref: '#/components/schemas/WorkspaceFileSummary' type: array unstaged: items: $ref: '#/components/schemas/WorkspaceFileSummary' type: array untracked: items: $ref: '#/components/schemas/WorkspaceFileSummary' type: array required: - uncommitted - staged - unstaged - untracked - committed type: object WorkspaceFileSummary: properties: additions: type: integer binary: type: boolean deletions: type: integer editable: type: boolean fileFingerprint: type: string path: type: string previousPath: type: string size: format: int64 type: integer status: enum: - unmodified - modified - added - deleted - renamed type: string required: - path - status - additions - deletions - size - binary - editable - fileFingerprint type: object WorkspaceHistoryResponse: properties: ahead: description: Checked-out view only. type: - "null" - integer behind: description: Checked-out view only. type: - "null" - integer commits: items: $ref: '#/components/schemas/WorkspaceCommitSummary' type: array commitsTruncated: type: boolean rangeSummary: $ref: '#/components/schemas/WorkspaceSummary' description: Totals for All commits. Views only. sessionId: type: string view: $ref: '#/components/schemas/WorkspaceViewResponse' required: - sessionId - view - commits type: object WorkspaceManifestResponse: properties: compareBaseRef: type: string compareBaseSha: type: string compareMode: enum: - base - head_fallback type: string degraded: type: boolean degradedCode: type: string files: items: $ref: '#/components/schemas/WorkspaceFileSummary' type: array refreshing: type: boolean sections: $ref: '#/components/schemas/WorkspaceFileSections' sessionId: type: string stale: type: boolean summary: $ref: '#/components/schemas/WorkspaceSummary' truncated: type: boolean workspaceVersion: type: string required: - sessionId - workspaceVersion - files - sections - summary - truncated - stale - refreshing - degraded type: object WorkspacePathResolutionResponse: properties: kind: enum: - workspace - artifact - outside type: string path: type: string sessionId: type: string required: - sessionId - kind - path type: object WorkspaceRepo: properties: gitStatus: type: string name: type: string relativePath: type: string repo: type: string required: - name - relativePath - repo type: object WorkspaceSummary: properties: additions: type: integer deletions: type: integer files: type: integer required: - files - additions - deletions type: object WorkspaceTreeEntry: properties: binary: type: boolean hasChanges: type: boolean name: type: string path: type: string size: format: int64 type: integer status: enum: - unmodified - modified - added - deleted - renamed type: string type: enum: - file - dir type: string required: - name - path - type type: object WorkspaceViewResponse: properties: baseRef: type: string baseSha: description: Set only in since_base mode. Fence a later view read with it as expectedBaseSha. type: string kind: enum: - checked_out - branch - pull_request type: string name: description: Branch name, or the pull request's source branch. type: string rangeMode: description: since_base lists the commits since baseSha; recent lists the newest 50 first-parent commits of a default branch, or of a branch with no default branch to measure from. enum: - since_base - recent type: string tipSha: description: Fence a later view read with it as expectedTipSha. type: string required: - kind - rangeMode type: object tags: - description: Supported and locally runnable agent adapters name: agents - description: Project registry, configuration, and lifecycle administration name: projects - description: Agent session lifecycle and messaging name: sessions - description: Recurring daemon-owned session schedules and durable run history name: automations - description: Pull-request actions (SCM lane) name: prs - description: Code-review runs and findings name: reviews - description: Durable dashboard notifications name: notifications - description: Durable worker reports name: reports - description: Token usage telemetry for AO sessions name: usage - description: Mobile push-device registration for OS push notifications name: push - description: Server-sent CDC event stream with durable replay name: events - description: Legacy AO project import (availability probe and run) name: import - description: Developer-only maintenance operations name: dev - description: Connect Mobile LAN bridge control (loopback/desktop only) name: mobile - description: Target-isolated desktop browser runtime (loopback only) name: browser - description: Read-only filesystem browsing for remote clients name: fs - description: Local machine readiness checks the desktop app runs before showing the board name: system - description: Cua Driver computer-use integration behind Settings and the agents' computer-use tools (loopback only) name: computer-use - description: Server-side unfurl of external links for the CSP-locked renderer name: link-preview - description: Local GitHub personal access token storage and repository listing name: github