{"openapi":"3.1.0","info":{"title":"PaceGrid API","version":"1.0.0","description":"One authorization and resource model for the application, API, SDK and embedding. JSON APIs; limits and capabilities are discoverable through /config. All mutations with human cookies require X-Requested-With: PaceGrid. See the API guide for role and scope restrictions, asynchronous execution semantics, signed webhook ingress and payment callbacks."},"servers":[{"url":"https://www.pacegrid.ai/api/v1"}],"security":[{"bearer":[]},{"session":[]}],"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]},"requestId":{"type":"string"}},"required":["error","requestId"]},"Register":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"email":{"type":"string","format":"email"},"password":{"type":"string","minLength":12,"maxLength":256,"writeOnly":true},"organizationName":{"type":"string"},"kind":{"enum":["personal","business","software"]},"plan":{"type":"string","description":"Optional configured self-service offer ID, saved as purchase intent. Registration creates a 14-day free evaluation with 100 execution units and 20 shared model requests per UTC month; paid access requires confirmed checkout."}},"required":["name","email","password","organizationName"]},"CheckoutRequest":{"type":"object","properties":{"plan":{"type":"string","description":"Optional configured self-service plan ID; defaults to the organization’s configured plan. Creating checkout does not change the current plan or charge the account."}}},"Login":{"type":"object","properties":{"email":{"type":"string","format":"email"},"password":{"type":"string","writeOnly":true},"code":{"type":"string","description":"Six-digit TOTP when MFA is enabled."}},"required":["email","password"]},"Definition":{"type":"object","properties":{"trigger":{"type":"object","properties":{"type":{"enum":["manual","webhook","schedule"]},"intervalMinutes":{"type":"number","minimum":1,"maximum":525600},"timezone":{"type":"string","description":"IANA timezone; elapsed-time schedule intervals coalesce missed runs."}},"required":["type"]},"steps":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/Step"}}},"required":["trigger","steps"]},"Step":{"type":"object","properties":{"id":{"type":"string","pattern":"^[\\w-]{1,80}$"},"name":{"type":"string"},"type":{"enum":["transform","condition","loop","parallel","wait","approval","http","connector","fail","subflow","migration-required","code"],"description":"code requires the explicitly enabled isolated Docker sandbox; otherwise validation rejects it."},"config":{"type":"object","additionalProperties":true},"retry":{"type":"object","properties":{"maxAttempts":{"type":"integer","minimum":1,"maximum":5},"delayMs":{"type":"number","minimum":0,"maximum":60000}},"required":["maxAttempts"]},"onError":{"enum":["stop","continue"]}},"required":["id","type","config"]},"WorkflowCreate":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"definition":{"$ref":"#/components/schemas/Definition"}},"required":["name","definition"]},"WorkflowUpdate":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"definition":{"$ref":"#/components/schemas/Definition"},"revision":{"type":"integer","minimum":1}},"required":["revision"]},"Workflow":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"definition":{"$ref":"#/components/schemas/Definition"},"status":{"enum":["draft","active","paused","archived"]},"revision":{"type":"integer"},"publishedVersionId":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","definition","status","revision"]},"RunRequest":{"type":"object","properties":{"mode":{"enum":["test","production"],"default":"test"},"input":{"type":"object","additionalProperties":true}}},"Run":{"type":"object","properties":{"id":{"type":"string"},"workflowId":{"type":"string"},"workflowName":{"type":"string"},"versionId":{"type":"string"},"mode":{"enum":["test","production"]},"status":{"enum":["queued","running","waiting","succeeded","failed","cancelled","uncertain"]},"input":{},"output":{},"error":{},"steps":{"type":"array","items":{"type":"object","additionalProperties":true}},"createdAt":{"type":"string","format":"date-time"}},"required":["id","workflowId","versionId","status"]},"Connection":{"type":"object","properties":{"integrationId":{"type":"string"},"name":{"type":"string"},"credentials":{"type":"object","additionalProperties":true,"writeOnly":true,"description":"Credentials are encrypted; only references are used in workflows."}},"required":["integrationId","name"]},"Key":{"type":"object","properties":{"name":{"type":"string"},"workspaceId":{"type":"string"},"environment":{"type":"string","enum":["development","test","production"],"default":"development"},"scopes":{"type":"array","items":{"type":"string"}}},"required":["name","workspaceId","environment","scopes"]},"EmbedRequest":{"type":"object","properties":{"workspaceId":{"type":"string"},"environment":{"type":"string","enum":["development","test","production"],"default":"development"},"origin":{"type":"string","format":"uri","description":"Exact preapproved parent origin."},"scopes":{"type":"array","items":{"type":"string"}}},"required":["workspaceId","environment","origin","scopes"]},"EmbedSession":{"type":"object","properties":{"token":{"type":"string","description":"Short-lived token; transport through an origin-checked iframe handshake."},"expiresAt":{"type":"string","format":"date-time"},"url":{"type":"string"}},"required":["token","expiresAt","url"]},"Collection":{"type":"object","properties":{"data":{"type":"array","items":{}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"]},"Proposal":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"definition":{"$ref":"#/components/schemas/Definition"},"warnings":{"type":"array","items":{"type":"string"}},"provider":{"type":"string"}},"required":["definition","provider"]},"AssistantMode":{"type":"string","enum":["chat","workflow","agent","team"]},"ChatAttachment":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"mimeType":{"type":"string"},"size":{"type":"integer"},"kind":{"enum":["text","image"]},"truncated":{"type":"boolean"},"contextLimit":{"type":"integer"},"warning":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","mimeType","size","kind"]},"ChatTool":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"integrationId":{"type":"string"},"integrationName":{"type":"string"},"action":{"type":"string"},"connectionId":{"type":"string"},"connectionName":{"type":"string"},"description":{"type":"string"},"inputSchema":{"type":"object","additionalProperties":true},"readOnly":{"type":"boolean"},"approvalRequired":{"const":true},"version":{"type":"string"}},"required":["id","name","integrationId","action","connectionId","approvalRequired"]},"ChatToolCall":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"integrationId":{"type":"string"},"action":{"type":"string"},"connectionId":{"type":"string"},"input":{"type":"object","additionalProperties":true},"inputHash":{"type":"string"},"status":{"enum":["pending","rejected","running","succeeded","failed","uncertain"]},"readOnly":{"type":"boolean"},"output":{},"error":{},"createdAt":{"type":"string","format":"date-time"},"finishedAt":{"type":"string","format":"date-time"}},"required":["id","name","input","inputHash","status"]},"ChatWorkflowContext":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"revision":{"type":"integer"},"definitionHash":{"type":"string"},"contentHash":{"type":"string"},"publishedVersionId":{"type":["string","null"]},"selectedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"agentId":{"type":"string"}},"required":["id","name","status","revision","definitionHash","contentHash"]},"ChatWorkflowAction":{"type":"object","properties":{"id":{"type":"string"},"type":{"enum":["create","update","delete"]},"workflowId":{"type":["string","null"]},"workflowName":{"type":"string"},"workflowRevision":{"type":"integer"},"definitionHash":{"type":"string"},"contentHash":{"type":"string"},"workflowStatus":{"type":"string"},"publishedVersionId":{"type":["string","null"]},"actionHash":{"type":"string"},"proposal":{"type":"object","additionalProperties":true},"proposalHash":{"type":"string"},"status":{"enum":["pending","rejected","succeeded"]},"risks":{"type":"array","items":{"type":"string"}},"requiredOperations":{"type":"array","items":{"enum":["create","update","delete"]}},"dependsOnActionId":{"type":"string"},"approvalMode":{"enum":["ask","skip"]},"resultWorkflowId":{"type":"string"},"resultRevision":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"finishedAt":{"type":"string","format":"date-time"}},"required":["id","type","workflowName","actionHash","status","risks"]},"Conversation":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"mode":{"$ref":"#/components/schemas/AssistantMode"},"permissionMode":{"enum":["ask","skip"],"default":"ask"},"messages":{"type":"array","items":{"type":"object","additionalProperties":true}},"revision":{"type":"integer"},"proposal":{},"workflowId":{"type":["string","null"]},"workflowRevision":{"type":["integer","null"]},"savedRevision":{"type":["integer","null"]},"workflowContext":{"oneOf":[{"$ref":"#/components/schemas/ChatWorkflowContext"},{"type":"null"}]},"workflowActions":{"type":"array","items":{"$ref":"#/components/schemas/ChatWorkflowAction"}},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ChatAttachment"}},"availableTools":{"type":"array","items":{"$ref":"#/components/schemas/ChatTool"}},"toolCalls":{"type":"array","items":{"$ref":"#/components/schemas/ChatToolCall"}},"requiredConnections":{"type":"array","items":{"type":"object","additionalProperties":true}}},"required":["id","title","mode","permissionMode","messages","revision"]},"AgentTrigger":{"type":"object","properties":{"type":{"const":"schedule"},"intervalMinutes":{"type":"number","minimum":1,"maximum":525600},"timezone":{"type":"string","description":"IANA timezone. Elapsed interval scheduling, with missed intervals coalesced."}},"required":["type","intervalMinutes","timezone"]},"AgentCreate":{"type":"object","properties":{"workflowId":{"type":"string"},"conversationId":{"type":"string"},"name":{"type":"string"},"instructions":{"type":"string","maxLength":8000},"sampleInput":{"type":"object","additionalProperties":true},"teamMode":{"enum":["single","review"],"default":"single"},"approvalPolicy":{"enum":["always","workflow"],"default":"always"},"trigger":{"$ref":"#/components/schemas/AgentTrigger"},"schedule":{"$ref":"#/components/schemas/AgentTrigger"},"intervalMinutes":{"type":"number","minimum":1,"maximum":525600},"timezone":{"type":"string"}},"oneOf":[{"required":["workflowId"],"not":{"required":["conversationId"]}},{"required":["conversationId"],"not":{"required":["workflowId"]}}]},"Agent":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"instructions":{"type":"string"},"sampleInput":{"type":"object","additionalProperties":true},"workflowId":{"type":"string"},"workflowRevision":{"type":["integer","null"]},"sourceWorkflowId":{"type":["string","null"]},"sourceConversationId":{"type":["string","null"]},"status":{"enum":["draft","active","paused","archived"]},"revision":{"type":"integer"},"teamMode":{"enum":["single","review"]},"approvalPolicy":{"enum":["always","workflow"]},"schedule":{"anyOf":[{"$ref":"#/components/schemas/AgentTrigger"},{"type":"null"}]},"nextScheduleAt":{"type":["string","null"]},"lastRun":{"anyOf":[{"$ref":"#/components/schemas/Run"},{"type":"null"}]},"pendingApprovals":{"type":["integer","null"]},"unfinishedRuns":{"type":["integer","null"]},"runtime":{"type":"object","properties":{"type":{"const":"published-workflow"},"scheduler":{"const":"workflow-worker"},"draftingTeamMode":{"enum":["single","review"]},"maxConcurrentRunsPerOrganization":{"const":1},"independentModelWorkers":{"const":false},"instructionsAppliedAtRuntime":{"const":false}}},"limits":{"type":"object","additionalProperties":true}},"required":["id","name","workflowId","status","revision"]},"McpRequest":{"type":"object","properties":{"jsonrpc":{"const":"2.0"},"id":{"type":["string","number"]},"method":{"type":"string"},"params":{"type":"object","additionalProperties":true}},"required":["jsonrpc","method"]},"McpResponse":{"type":"object","properties":{"jsonrpc":{"const":"2.0"},"id":{"type":["string","number","null"]},"result":{},"error":{"type":"object","properties":{"code":{"type":"integer"},"message":{"type":"string"},"data":{}},"required":["code","message"]}},"required":["jsonrpc","id"]}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"},"session":{"type":"apiKey","in":"cookie","name":"pacegrid_session"}}},"paths":{"/config":{"get":{"operationId":"get_config","summary":"Read config","tags":["config"],"security":[],"parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/health":{"get":{"operationId":"get_health","summary":"Read health","tags":["health"],"security":[],"parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/ready":{"get":{"operationId":"get_ready","summary":"Read ready","tags":["ready"],"security":[],"parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/catalog":{"get":{"operationId":"get_catalog","summary":"Browse installed and upstream community integration metadata","description":"Paginated metadata. Check installed and executable before offering an action. Catalog presence does not install code.","tags":["catalog"],"security":[],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/catalog/{id}":{"get":{"operationId":"get_catalog_id_","summary":"Read public integration action properties and installation status","tags":["catalog"],"security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/register":{"post":{"operationId":"post_auth_register","summary":"Register an organization and its first workspace","tags":["auth"],"security":[],"parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Register"}}}}}},"/auth/login":{"post":{"operationId":"post_auth_login","summary":"Create an HTTP-only human session","tags":["auth"],"security":[],"parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Login"}}}}}},"/auth/me":{"get":{"operationId":"get_auth_me","summary":"Read authenticated user and permitted workspaces","tags":["auth"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/logout":{"post":{"operationId":"post_auth_logout","summary":"Revoke the current human session","tags":["auth"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/demo":{"post":{"operationId":"post_auth_demo","summary":"Create an isolated, explicitly labelled demonstration tenant","tags":["auth"],"security":[],"parameters":[],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/forgot-password":{"post":{"operationId":"post_auth_forgot_password","summary":"Queue account recovery if the account exists","tags":["auth"],"security":[],"parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"}},"required":["email"]}}}}}},"/auth/reset-password":{"post":{"operationId":"post_auth_reset_password","summary":"Consume a recovery token and revoke existing sessions","tags":["auth"],"security":[],"parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"password":{"type":"string","minLength":10}},"required":["token","password"]}}}}}},"/auth/verify":{"post":{"operationId":"post_auth_verify","summary":"Consume an email-verification token","tags":["auth"],"security":[],"parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"}},"required":["token"]}}}}}},"/auth/mfa/setup":{"post":{"operationId":"post_auth_mfa_setup","summary":"Prepare authenticator enrollment","tags":["auth"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/mfa/enable":{"post":{"operationId":"post_auth_mfa_enable","summary":"Verify and enable an authenticator","tags":["auth"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"}},"required":["code"]}}}}}},"/workspaces":{"get":{"operationId":"get_workspaces","summary":"List scoped workspaces","tags":["workspaces"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post_workspaces","summary":"Create a customer workspace","tags":["workspaces"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"customerName":{"type":"string"}},"required":["name"]}}}}}},"/integrations":{"get":{"operationId":"get_integrations","summary":"List scoped integrations","tags":["integrations"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/connections":{"get":{"operationId":"get_connections","summary":"List scoped connections","tags":["connections"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post_connections","summary":"Store an encrypted account connection","tags":["connections"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Connection"}}}}}},"/workflows":{"get":{"operationId":"get_workflows","summary":"List scoped workflows","tags":["workflows"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post_workflows","summary":"Create a draft","tags":["workflows"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workflow"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowCreate"}}}}}},"/runs":{"get":{"operationId":"get_runs","summary":"List scoped runs","tags":["runs"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/repairs":{"get":{"operationId":"get_repairs","summary":"List scoped repairs","tags":["repairs"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/syncs":{"get":{"operationId":"get_syncs","summary":"List scoped syncs","tags":["syncs"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post_syncs","summary":"Create a durable local or paginated HTTPS synchronization","description":"Local collections support source-wins, skip-existing or bounded bidirectional latest-change-wins with tombstones. External HTTPS sources use an explicit record ID, items path, cursor path and optional schema. See the API guide for mappings, deletion policy, request limits and durable checkpoints.","tags":["syncs"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}},"/connectors":{"get":{"operationId":"get_connectors","summary":"List scoped connectors","tags":["connectors"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api-keys":{"get":{"operationId":"get_api_keys","summary":"List scoped api-keys","tags":["api-keys"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post_api_keys","summary":"Create a scoped service-account key; secret returned once","tags":["api-keys"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Key"}}}}}},"/webhook-subscriptions":{"get":{"operationId":"get_webhook_subscriptions","summary":"List scoped webhook-subscriptions","tags":["webhook-subscriptions"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post_webhook_subscriptions","summary":"Subscribe a public HTTPS endpoint to signed events","tags":["webhook-subscriptions"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"type":"string"}}},"required":["url","events"]}}}}}},"/audit":{"get":{"operationId":"get_audit","summary":"List scoped audit","tags":["audit"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/records":{"get":{"operationId":"get_records","summary":"List scoped records","tags":["records"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/logs":{"get":{"operationId":"get_logs","summary":"List scoped logs","tags":["logs"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/feedback":{"get":{"operationId":"get_feedback","summary":"List scoped feedback","tags":["feedback"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post_feedback","summary":"Record a customer message for the workspace operator","tags":["feedback"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"},"email":{"type":"string","format":"email"}},"required":["message"]}}}}}},"/integrations/{id}":{"get":{"operationId":"get_integrations_id_","summary":"Read integration action fields, authentication schema and execution availability","tags":["integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/integrations/{id}/actions":{"get":{"operationId":"get_integrations_id_actions","summary":"Search and paginate integration actions","tags":["integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/integrations/{id}/actions/{action}":{"get":{"operationId":"get_integrations_id_actions_action_","summary":"Read a versioned action and its input schema","tags":["integrations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"action","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/connections/composio/session":{"post":{"operationId":"post_connections_composio_session","summary":"Start a managed account authorization","tags":["connections"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"integrationId":{"type":"string"},"name":{"type":"string"},"connectionId":{"type":"string"}},"required":["integrationId"]}}}}}},"/connections/composio/sessions/{id}":{"get":{"operationId":"get_connections_composio_sessions_id_","summary":"Verify account authorization within its initiating workspace","tags":["connections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/connections/composio/callback":{"get":{"operationId":"get_connections_composio_callback","summary":"Return from managed authorization; authenticated polling verifies the connection","tags":["connections"],"security":[],"parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/connections/{id}":{"patch":{"operationId":"patch_connections_id_","summary":"Replace encrypted credentials","tags":["connections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"credentials":{"type":"object","additionalProperties":true}},"required":["credentials"]}}}}},"delete":{"operationId":"delete_connections_id_","summary":"Revoke an account connection","tags":["connections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/connections/{id}/test":{"post":{"operationId":"post_connections_id_test","summary":"Check connection capability and state","tags":["connections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/workflow-packages":{"get":{"operationId":"get_workflow_packages","summary":"List guided business process packages","description":"Fields, sample inputs, optional connection slots and explicit local/external outcomes. Uses workflows:read.","tags":["workflow-packages"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/workflow-packages/{id}/preview":{"post":{"operationId":"post_workflow_packages_id_preview","summary":"Preview configured process steps without executing","description":"Uses workflows:write. Bindings select real, scoped integration actions and accounts.","tags":["workflow-packages"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"values":{"type":"object","additionalProperties":true},"bindings":{"type":"object","additionalProperties":true}}}}}}}},"/workflow-packages/{id}/create":{"post":{"operationId":"post_workflow_packages_id_create","summary":"Create one idempotent process-package draft","description":"Requires Idempotency-Key. Returns workflow, sampleInput, checklist and warnings. Never publishes or executes.","tags":["workflow-packages"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":160},"description":"Stable request key for retries; changed input requires a new key."}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"values":{"type":"object","additionalProperties":true},"bindings":{"type":"object","additionalProperties":true}}}}}}}},"/workflow-imports/capabilities":{"get":{"operationId":"get_workflow_imports_capabilities","summary":"Read workflow import formats and AI/vision availability","tags":["workflow-imports"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/workflow-imports/discover":{"post":{"operationId":"post_workflow_imports_discover","summary":"Read workflows from an explicitly selected source instance","description":"Public HTTPS instances only. Activepieces listing requires projectId. Keys are used transiently for GET requests to this origin. No writes, redirects or credential copying.","tags":["workflow-imports"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"enum":["n8n","activepieces"]},"baseUrl":{"type":"string","format":"uri"},"apiKey":{"type":"string","writeOnly":true},"projectId":{"type":"string"},"cursor":{"type":"string"}},"required":["provider","baseUrl","apiKey"]}}}}}},"/workflow-imports/analyze":{"post":{"operationId":"post_workflow_imports_analyze","summary":"Convert or reconstruct a source workflow into a scoped migration report","description":"Uses workflows:write. Reuse Idempotency-Key for retries. JSON up to 1 MiB, PNG/JPEG/WebP up to 2 MiB, up to 100 source steps. Image is sent only to the configured model and not persisted. Unresolved semantics block execution; coverage is not a correctness guarantee.","tags":["workflow-imports"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":160},"description":"Stable request key for retries; changed input requires a new key."}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"enum":["json","image","url","instance","text"]},"text":{"type":"string"},"source":{"type":"object","additionalProperties":true},"image":{"type":"object","properties":{"dataUrl":{"type":"string","writeOnly":true},"name":{"type":"string"}}},"url":{"type":"string","format":"uri"},"provider":{"enum":["n8n","activepieces"]},"baseUrl":{"type":"string","format":"uri"},"apiKey":{"type":"string","writeOnly":true},"workflowId":{"type":"string"},"projectId":{"type":"string"},"useAI":{"type":"boolean"},"instructions":{"type":"string","maxLength":6000}},"required":["kind"]}}}}}},"/workflow-imports/{id}":{"get":{"operationId":"get_workflow_imports_id_","summary":"Read a scoped migration report","tags":["workflow-imports"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"delete_workflow_imports_id_","summary":"Remove a saved import report without removing its workflow","tags":["workflow-imports"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/workflow-imports/{id}/create":{"post":{"operationId":"post_workflow_imports_id_create","summary":"Create or retrieve the single draft associated with this import","description":"Repeated creation returns the same workflow. Unresolved items remain explicit migration-required steps that reject execution and publication.","tags":["workflow-imports"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"}}}}}}}},"/outcomes":{"get":{"operationId":"get_outcomes","summary":"Read scoped lead-result monitors","description":"Uses outcomes:read. Returns data and limits. Sources: intake, records, http. Destinations: records, http, hubspot.","tags":["outcomes"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post_outcomes","summary":"Create a paused independent lead monitor","description":"Uses outcomes:write. HTTP source timestamps are required. Cursor mapping must match the API. Incomplete, oversized or unavailable sources never produce a verified result. External requests each consume one execution credit.","tags":["outcomes"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"source":{"type":"object","additionalProperties":true},"target":{"type":"object","additionalProperties":true},"workflowId":{"type":"string"},"deadlineMinutes":{"type":"integer","minimum":0,"maximum":10080},"intervalMinutes":{"type":"integer","minimum":1,"maximum":1440},"lookbackDays":{"type":"integer","minimum":1,"maximum":90},"expectedOwner":{"type":"string"},"requireOwner":{"type":"boolean"},"requiredFields":{"type":"array","maxItems":20,"items":{"type":"string"}},"mappings":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"source":{"type":"string"},"target":{"type":"string"}},"required":["source","target"]}}},"required":["name","target"]}}}}}},"/outcomes/overview":{"get":{"operationId":"get_outcomes_overview","summary":"Read customer result overview","description":"Human sessions see their organization in the selected environment. Keys and embedded sessions remain in their assigned workspace.","tags":["outcomes"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/outcomes/lead-package":{"post":{"operationId":"post_outcomes_lead_package","summary":"Create an inbox, HubSpot workflow draft and independent monitor","description":"Requires Idempotency-Key; retries return the same package. Uses outcomes:write and workflows:write. Requires intake source, HubSpot HTTP connection and expectedOwner. Does not publish or enable anything.","tags":["outcomes"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":160},"description":"Stable request key for retries; changed input requires a new key."}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"source":{"type":"object","additionalProperties":true},"target":{"type":"object","additionalProperties":true},"workflowId":{"type":"string"},"deadlineMinutes":{"type":"integer","minimum":0,"maximum":10080},"intervalMinutes":{"type":"integer","minimum":1,"maximum":1440},"lookbackDays":{"type":"integer","minimum":1,"maximum":90},"expectedOwner":{"type":"string"},"requireOwner":{"type":"boolean"},"requiredFields":{"type":"array","maxItems":20,"items":{"type":"string"}},"mappings":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"source":{"type":"string"},"target":{"type":"string"}},"required":["source","target"]}}},"required":["name","target"]}}}}}},"/outcomes/demo":{"post":{"operationId":"post_outcomes_demo","summary":"Create ten local sample leads and queue their check","description":"Only development/test. No external CRM calls.","tags":["outcomes"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}},"/outcomes/checks/{checkId}":{"get":{"operationId":"get_outcomes_checks_checkId_","summary":"Read a scoped verification job","tags":["outcomes"],"parameters":[{"name":"checkId","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/outcomes/{id}":{"get":{"operationId":"get_outcomes_id_","summary":"Read monitor and recent verification evidence","tags":["outcomes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patch_outcomes_id_","summary":"Rename, enable or pause a monitor","tags":["outcomes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer"},"enabled":{"type":"boolean"},"name":{"type":"string"}},"required":["revision"]}}}}},"delete":{"operationId":"delete_outcomes_id_","summary":"Archive the monitor and stop its external inbox","tags":["outcomes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/outcomes/{id}/check":{"post":{"operationId":"post_outcomes_id_check","summary":"Queue one complete independent check","tags":["outcomes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"202":{"description":"Queued; observe the returned resource ID.","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}},"/outcomes/{id}/intake-secret":{"post":{"operationId":"post_outcomes_id_intake_secret","summary":"Rotate the external inbox secret","description":"Returns secret once. Invalidates the previous secret. Stored monitor responses and exports never contain the secret or its hash.","tags":["outcomes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}},"/outcomes/{id}/leads":{"post":{"operationId":"post_outcomes_id_leads","summary":"Capture a lead using authenticated workspace access","description":"Stores expected delivery before attempting dispatch to the published linked workflow. Repeated eventId deduplicates; changed data returns 409. dispatch may be blocked while captured remains true.","tags":["outcomes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"202":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"eventId":{"type":"string","maxLength":200},"data":{"type":"object","additionalProperties":true}},"required":["eventId","data"]}}}}}},"/outcome-intake/{id}":{"post":{"operationId":"post_outcome_intake_id_","summary":"Capture an independently authenticated lead event","description":"Requires X-PaceGrid-Intake-Secret and an enabled intake monitor. Server controls receipt time. Data limit 32 KiB. Do not expose this secret in a public browser form; send from the source backend.","tags":["outcome-intake"],"security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-PaceGrid-Intake-Secret","in":"header","required":true,"schema":{"type":"string","writeOnly":true},"description":"Secret issued by the monitor; the monitor must be enabled."}],"responses":{"202":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"eventId":{"type":"string","maxLength":200},"data":{"type":"object","additionalProperties":true}},"required":["eventId","data"]}}}}}},"/outcomes/{id}/repair":{"post":{"operationId":"post_outcomes_id_repair","summary":"Recheck and create one still-missing HubSpot contact","description":"Verified human developer/admin only. Requires exactly one captured lead, resolved original run and a fresh missing-contact read. External writes are never automatically repeated; uncertain results return 409.","tags":["outcomes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"identity":{"type":"string","format":"email"}},"required":["identity"]}}}}}},"/outcomes/{id}/demo-recover":{"post":{"operationId":"post_outcomes_id_demo_recover","summary":"Restore missing local sample contacts and recheck","tags":["outcomes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"202":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}}}},"/workflows/{id}":{"get":{"operationId":"get_workflows_id_","summary":"Read a scoped workflow","tags":["workflows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workflow"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patch_workflows_id_","summary":"Update an exact draft revision","tags":["workflows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workflow"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUpdate"}}}}},"delete":{"operationId":"delete_workflows_id_","summary":"Archive a workflow","tags":["workflows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/workflows/{id}/validate":{"post":{"operationId":"post_workflows_id_validate","summary":"validate a workflow","tags":["workflows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/workflows/{id}/publish":{"post":{"operationId":"post_workflows_id_publish","summary":"publish a workflow","tags":["workflows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/workflows/{id}/pause":{"post":{"operationId":"post_workflows_id_pause","summary":"pause a workflow","tags":["workflows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/workflows/{id}/webhook-secret":{"post":{"operationId":"post_workflows_id_webhook_secret","summary":"webhook-secret a workflow","tags":["workflows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/workflows/{id}/versions":{"get":{"operationId":"get_workflows_id_versions","summary":"List immutable published versions","tags":["workflows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/workflows/{id}/rollback":{"post":{"operationId":"post_workflows_id_rollback","summary":"Select a previous version; external side effects are not undone","tags":["workflows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"versionId":{"type":"string"}},"required":["versionId"]}}}}}},"/workflows/{id}/run":{"post":{"operationId":"post_workflows_id_run","summary":"Enqueue a version-pinned execution","tags":["workflows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"Stable event ID. Reuse with a different mode/input returns 409."}],"responses":{"202":{"description":"Queued; observe the returned resource ID.","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Run"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunRequest"}}}}}},"/runs/{id}":{"get":{"operationId":"get_runs_id_","summary":"Observe an execution and its protected step timeline","tags":["runs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Run"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs/{id}/cancel":{"post":{"operationId":"post_runs_id_cancel","summary":"cancel an execution","tags":["runs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs/{id}/resume":{"post":{"operationId":"post_runs_id_resume","summary":"resume an execution","tags":["runs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/runs/{id}/diagnose":{"post":{"operationId":"post_runs_id_diagnose","summary":"diagnose an execution","tags":["runs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/ai/generate":{"post":{"operationId":"post_ai_generate","summary":"Prepare a catalogue-validated workflow proposal","description":"Returns a proposal only. It does not publish changes. The local planner is explicitly identified.","tags":["ai"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Proposal"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","maxLength":6000},"workflowId":{"type":"string"}},"required":["prompt"]}}}}}},"/ai/conversations":{"get":{"operationId":"get_ai_conversations","summary":"List workspace conversations in personal order","description":"Manual order is persisted per authenticated actor, workspace and environment. New conversations appear first; opening, renaming and replying do not reorder existing rows. Without a saved order, immutable creation sequence determines the order, with creation time as the fallback for legacy conversations.","tags":["ai"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","title","updatedAt"]}}},"required":["data"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post_ai_conversations","summary":"Start a workspace conversation","description":"Set mode to chat for the shared assistant with native workflow tools and connected-app reasoning. Omitting mode preserves the legacy workflow planner for existing clients. Permission mode defaults to ask.","tags":["ai"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"$ref":"#/components/schemas/AssistantMode"},"permissionMode":{"enum":["ask","skip"],"default":"ask"}}}}}}}},"/ai/conversations/order":{"put":{"operationId":"put_ai_conversations_order","summary":"Save personal conversation order","description":"Supply every current conversation ID exactly once. Requires workflow write access. Scope-inaccessible IDs return 404; incomplete lists return 409. The returned list confirms the persisted order for this actor only.","tags":["ai"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","title","updatedAt"]}}},"required":["data"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","maxItems":100,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":120}}},"required":["ids"]}}}}}},"/ai/conversations/{id}":{"get":{"operationId":"get_ai_conversations_id_","summary":"Read a conversation, attachments and available connected tools","tags":["ai"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patch_ai_conversations_id_","summary":"Rename a conversation","description":"Requires workflow write access in the current workspace and environment. Trims the title and preserves it through subsequent replies. Does not move the conversation. An active reply or connected action returns 409.","tags":["ai"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120}},"required":["title"]}}}}},"delete":{"operationId":"delete_ai_conversations_id_","summary":"Delete a conversation and its attachments","description":"Requires workflow write access in the current workspace and environment. An active reply or connected action returns 409. Saved workflows, agents, execution records and audit history remain independent. No external operation is cancelled or undone.","tags":["ai"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"204":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/ai/conversations/{id}/messages":{"post":{"operationId":"post_ai_conversations_id_messages","summary":"Answer, propose connected tools or manage workflow drafts","description":"Uses server-configured AI and its budget. Resolves workflow names, IDs, descriptions and app/action metadata within the current scope. Ask mode prepares each internal workflow change for one human approval. Explicit Skip mode applies newly requested native workflow changes transactionally before the final persisted reply. Connected-app actions always remain approval proposals. Uploaded files and existing imports remain scoped. Optional independent review does not start unlimited autonomous agents. Accept: text/event-stream emits incremental human message deltas; the final conversation and done events confirm completion.","tags":["ai"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"Accept","in":"header","schema":{"enum":["application/json","text/event-stream"]},"description":"Choose a complete JSON conversation or streamed events."}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}},"text/event-stream":{"schema":{"type":"string"},"description":"SSE status {message,phase}, delta {text}, conversation {conversation}, done {}, or error {error}. Partial deltas are provisional. Only conversation followed by done confirms persisted completion. Read the latest conversation after interruption before retrying; retries must reuse the original messageId and body."}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","maxLength":4000},"messageId":{"type":"string","maxLength":100},"mode":{"$ref":"#/components/schemas/AssistantMode"},"review":{"type":"boolean","description":"Optional independent review of a proposed workflow in another budgeted model call. No mode switch is needed."},"importId":{"type":"string","maxLength":120},"importName":{"type":"string","maxLength":200},"attachmentIds":{"type":"array","maxItems":4,"uniqueItems":true,"items":{"type":"string"}},"enabledIntegrationIds":{"type":"array","maxItems":20,"items":{"type":"string"}}},"required":["message","messageId"]}}}}}},"/ai/conversations/{id}/attachments":{"post":{"operationId":"post_ai_conversations_id_attachments","summary":"Upload supported text or image context to a conversation","description":"Developer session or workflows:write credential. Maximum 1 MiB text, 2 MiB image, 4 attachments per message, 20 per conversation and 40 MiB per workspace/environment. Text context uses the first 24,000 characters with visible truncation metadata. PDF and office documents are unsupported. Raw file content is not included in attachment metadata.","tags":["ai"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatAttachment"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":180},"mimeType":{"enum":["text/plain","text/markdown","text/csv","application/json","image/png","image/jpeg","image/webp"]},"dataBase64":{"type":"string","writeOnly":true}},"required":["name","mimeType","dataBase64"]}}}}}},"/ai/conversations/{id}/attachments/{attachmentId}":{"delete":{"operationId":"delete_ai_conversations_id_attachments_attachmentId_","summary":"Remove stored conversation attachment context","tags":["ai"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"attachmentId","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/ai/conversations/{id}/tools/{toolCallId}/approve":{"post":{"operationId":"post_ai_conversations_id_tools_toolCallId_approve","summary":"Approve exactly one proposed tool call","description":"Developer session or explicit workflows:write, runs:write and connections:read credential. Requires the exact reviewed input hash. Server rechecks workspace, environment, account, pinned action/schema, budget and claim state. Duplicate approvals never automatically repeat an external operation. An uncertain outcome requires reconciliation.","tags":["ai"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"toolCallId","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"inputHash":{"type":"string"}},"required":["inputHash"]}}}}}},"/ai/conversations/{id}/tools/{toolCallId}/reject":{"post":{"operationId":"post_ai_conversations_id_tools_toolCallId_reject","summary":"Reject a pending tool proposal","description":"Explicit authorized decision; does not execute the provider action.","tags":["ai"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"toolCallId","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/ai/conversations/{id}/continue":{"post":{"operationId":"post_ai_conversations_id_continue","summary":"Request a budgeted follow-up using reviewed tool results","tags":["ai"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"Accept","in":"header","schema":{"enum":["application/json","text/event-stream"]},"description":"Choose a complete JSON conversation or streamed events."}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}},"text/event-stream":{"schema":{"type":"string"},"description":"SSE status {message,phase}, delta {text}, conversation {conversation}, done {}, or error {error}. Partial deltas are provisional. Only conversation followed by done confirms persisted completion. Read the latest conversation after interruption before retrying; retries must reuse the original messageId and body."}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messageId":{"type":"string","maxLength":100}},"required":["messageId"]}}}}}},"/ai/mcp":{"post":{"operationId":"post_ai_mcp","summary":"Use the legacy stateless MCP JSON-RPC action proposal surface","description":"Protocol 2025-11-25 only: initialize requires this exact protocolVersion; MCP-Protocol-Version, when supplied, must match. Supports initialize, ping, tools/list and tools/call. Notifications return 202 without a body. Uses existing application authorization: workflow write plus connection read, and run write for proposing calls. Each tool schema wraps conversationId and input. Tool calls return pending approval metadata in content and structuredContent. Does not configure arbitrary remote MCP servers, implement client OAuth registration, current transport discovery or resumable MCP sessions.","tags":["ai"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"MCP-Protocol-Version","in":"header","schema":{"const":"2025-11-25"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpResponse"}}}},"202":{"description":"Notification accepted; no response body."},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpRequest"}}}}}},"/ai/conversations/{id}/connections":{"post":{"operationId":"post_ai_conversations_id_connections","summary":"Bind an explicitly selected account to missing draft connections","description":"Requires workflow write access and connection read access. The account must be usable and belong to the same integration, workspace and environment. Revises only the conversation proposal.","tags":["ai"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer"},"integrationId":{"type":"string"},"connectionId":{"type":"string"}},"required":["revision","integrationId","connectionId"]}}}}}},"/ai/conversations/{id}/workflow-context":{"post":{"operationId":"post_ai_conversations_id_workflow_context","summary":"Select an existing workspace workflow draft or start a new draft","description":"Requires workflow read and write access in the current workspace and environment. Loads the exact draft and binds later saves to its ID and observed revision. Null clears the target for a separate new draft. Agent-owned and archived workflows cannot be edited from chat.","tags":["ai"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workflowId":{"type":["string","null"],"maxLength":120}},"required":["workflowId"]}}}}}},"/ai/conversations/{id}/permission-mode":{"post":{"operationId":"post_ai_conversations_id_permission_mode","summary":"Set Ask or Skip permission for this conversation","description":"Default Ask requires one explicit approval per requested workflow create, update or delete. Skip is an explicit human developer opt-in and applies newly requested internal workflow actions after the same scope, snapshot, validation and idempotency checks. Existing pending cards remain pending. This setting does not bypass external connected-app approval, workflow publication or agent activation.","tags":["ai"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"permissionMode":{"enum":["ask","skip"]}},"required":["permissionMode"]}}}}}},"/ai/conversations/{id}/workflow-actions":{"post":{"operationId":"post_ai_conversations_id_workflow_actions","summary":"Prepare an exact workflow change for human review","description":"Requires workflow read and write access. Update/delete require workflowId; create/update require a valid proposal. Always records a pending confirmation, including in Skip mode. Native chat actions use the conversation permission policy separately. Snapshot binds exact proposed content and target metadata. Agent-owned workflows and deletion with unfinished runs are blocked.","tags":["ai"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"enum":["create","update","delete"]},"workflowId":{"type":"string","maxLength":120},"proposal":{"type":"object","additionalProperties":true}},"required":["type"]}}}}}},"/ai/conversations/{id}/workflow-actions/{actionId}/approve":{"post":{"operationId":"post_ai_conversations_id_workflow_actions_actionId_approve","summary":"Apply the exact reviewed create, update or delete action once","description":"Requires a human developer session. Rechecks proposed content and original target snapshot, scope, role and agent ownership transactionally. Updates draft content while preserving publication. Delete blocks unfinished runs and archives without purging history or undoing completed external effects. Repeated successful confirmation does not repeat the mutation.","tags":["ai"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"actionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"actionHash":{"type":"string"}},"required":["actionHash"]}}}}}},"/ai/conversations/{id}/workflow-actions/{actionId}/reject":{"post":{"operationId":"post_ai_conversations_id_workflow_actions_actionId_reject","summary":"Reject a pending workflow action confirmation","description":"Requires workflow write access. Dismisses the pending request without changing the workflow.","tags":["ai"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"actionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/ai/conversations/{id}/draft":{"post":{"operationId":"post_ai_conversations_id_draft","summary":"Save the current conversation proposal as a workflow draft","description":"Does not execute or publish. Rejects stale proposals and intervening Studio edits.","tags":["ai"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer"}},"required":["revision"]}}}}}},"/agents":{"get":{"operationId":"get_agents","summary":"List managed agents in the selected workspace and environment","tags":["agents"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post_agents","summary":"Create an inactive agent and a separate managed workflow","description":"Human developer session. Select exactly one workflowId or conversationId in the same scope. Creates a cloned draft without altering the source. Maximum 50 nonarchived agents per workspace/environment. Always approval policy inserts a per-run approval.","tags":["agents"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreate"}}}}}},"/agents/{id}":{"get":{"operationId":"get_agents_id_","summary":"Read one scoped managed agent","tags":["agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patch_agents_id_","summary":"Update an exact agent revision","description":"Human developer session. Pause active agents before editing. Definition edits require workflowRevision and invalidate earlier model review. Settings changes return the agent to draft and require reactivation; accepted executions remain pinned. Stored instructions do not run as a model prompt at execution time.","tags":["agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer"},"workflowRevision":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string","maxLength":2000},"definition":{"$ref":"#/components/schemas/Definition"},"instructions":{"type":"string","maxLength":8000},"sampleInput":{"type":"object","additionalProperties":true},"teamMode":{"enum":["single","review"]},"approvalPolicy":{"enum":["always","workflow"]},"trigger":{"$ref":"#/components/schemas/AgentTrigger"},"schedule":{"$ref":"#/components/schemas/AgentTrigger"}},"required":["revision"]}}}}},"delete":{"operationId":"delete_agents_id_","summary":"Archive an agent and stop future managed workflow schedules","description":"Human developer session. Accepted work may finish; does not undo external effects.","tags":["agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/agents/{id}/activate":{"post":{"operationId":"post_agents_id_activate","summary":"Validate, publish and activate a managed agent","description":"Explicit human developer action. Requires a reviewed schedule, timezone and all recurring input fields. Uses the existing workflow scheduler and production entitlements.","tags":["agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer"},"sampleInput":{"type":"object","additionalProperties":true},"trigger":{"$ref":"#/components/schemas/AgentTrigger"},"schedule":{"$ref":"#/components/schemas/AgentTrigger"},"intervalMinutes":{"type":"number","minimum":1,"maximum":525600},"timezone":{"type":"string"}}}}}}}},"/agents/{id}/pause":{"post":{"operationId":"post_agents_id_pause","summary":"Pause future agent enqueues","description":"Human operator action. Already accepted runs may finish; pause does not undo provider effects.","tags":["agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/agents/{id}/resume":{"post":{"operationId":"post_agents_id_resume","summary":"Resume a paused managed agent","tags":["agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/agents/{id}/run":{"post":{"operationId":"post_agents_id_run","summary":"Enqueue one version-pinned agent workflow execution","description":"Human operator action. Test mode is available before activation and can perform real configured effects. Production requires an active agent and valid production entitlement. Run approvals use /runs/{id}/resume.","tags":["agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"202":{"description":"Queued; observe the returned resource ID.","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Run"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunRequest"}}}}}},"/agents/{id}/runs":{"get":{"operationId":"get_agents_id_runs","summary":"List executions of the agent managed workflow","tags":["agents"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/repairs/{id}/approve":{"post":{"operationId":"post_repairs_id_approve","summary":"Apply an authorized, bounded repair proposal","tags":["repairs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api-keys/{id}":{"delete":{"operationId":"delete_api_keys_id_","summary":"Revoke a service-account key","tags":["api-keys"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/embed/sessions":{"post":{"operationId":"post_embed_sessions","summary":"Create a short-lived customer/environment-scoped session","tags":["embed"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedSession"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedRequest"}}}}}},"/embed/verify":{"post":{"operationId":"post_embed_verify","summary":"Verify an embed token against its parent origin","tags":["embed"],"security":[],"parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"parentOrigin":{"type":"string"}},"required":["token","parentOrigin"]}}}}}},"/webhook-subscriptions/{id}":{"delete":{"operationId":"delete_webhook_subscriptions_id_","summary":"Remove an event subscription","tags":["webhook-subscriptions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/connectors/import":{"post":{"operationId":"post_connectors_import","summary":"Import a scoped OpenAPI connector draft","tags":["connectors"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"spec":{"type":"object","additionalProperties":true}},"required":["name","spec"]}}}}}},"/syncs/{id}/run":{"post":{"operationId":"post_syncs_id_run","summary":"Continue a synchronization from its saved checkpoint","tags":["syncs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/overview":{"get":{"operationId":"get_overview","summary":"Read overview","tags":["overview"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/usage":{"get":{"operationId":"get_usage","summary":"Read usage","tags":["usage"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/billing":{"get":{"operationId":"get_billing","summary":"Read billing","tags":["billing"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patch_billing","summary":"Set organization budget or configurable plan","tags":["billing"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"budget":{"type":"number","minimum":0},"plan":{"type":"string"}}}}}}}},"/settings":{"get":{"operationId":"get_settings","summary":"Read settings","tags":["settings"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patch_settings","summary":"Update permitted organization settings","tags":["settings"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"allowedOrigins":{"type":"array","items":{"type":"string","format":"uri"}},"repairPolicy":{"enum":["suggestions_only","approval_required","bounded_automatic"]}}}}}}}},"/export":{"get":{"operationId":"get_export","summary":"Read export","tags":["export"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/operations":{"get":{"operationId":"get_operations","summary":"Read operations","tags":["operations"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/billing/checkout":{"post":{"operationId":"post_billing_checkout","summary":"Create checkout for the selected plan","description":"Requires an owner or administrator in a real account. Enterprise agreements and existing subscriptions use separate paths. Reuse Idempotency-Key when retrying an uncertain request; a changed plan needs a new key. Checkout availability is returned per plan by GET /billing.","tags":["billing"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}}}}},"/contact":{"post":{"operationId":"post_contact","summary":"Save an inquiry to the platform operator inbox","description":"Rate limited and deduplicated. Persists an inquiry; does not send an external message.","tags":["contact"],"security":[],"parameters":[],"responses":{"202":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"message":{"type":"string","maxLength":5000}},"required":["email","message"]}}}}}},"/oauth/providers":{"get":{"operationId":"get_oauth_providers","summary":"Discover operator-configured OAuth providers","tags":["oauth"],"security":[],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/oauth/callback":{"get":{"operationId":"get_oauth_callback","summary":"Consume a single-use OAuth state and authorization code","description":"Provider callback parameters: state, code, optional error and iss. Negotiates HTML or JSON. PKCE and tenant binding are checked server-side.","tags":["oauth"],"security":[],"parameters":[],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/connections/oauth/session":{"post":{"operationId":"post_connections_oauth_session","summary":"Start an OAuth authorization bound to the current scope","tags":["connections"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"providerId":{"type":"string"},"name":{"type":"string"},"connectionId":{"type":"string"}},"required":["providerId"]}}}}}},"/connections/{id}/refresh":{"post":{"operationId":"post_connections_id_refresh","summary":"Refresh an OAuth credential through its configured provider","tags":["connections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/workflows/{id}/promote":{"post":{"operationId":"post_workflows_id_promote","summary":"Copy a draft into another environment with credential references cleared","description":"Human developer permission required. Target is a new draft. Reconnect accounts and review references before publication.","tags":["workflows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"environment":{"type":"string","enum":["development","test","production"],"default":"development"},"name":{"type":"string"}},"required":["environment"]}}}}}},"/workflows/{id}/steps/{stepId}/test":{"post":{"operationId":"post_workflows_id_steps_stepId_test","summary":"Test one top-level step (developer role or both workflows:write and runs:write scopes)","tags":["workflows"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"stepId","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"202":{"description":"Queued; observe the returned resource ID.","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true},"dependencyOutputs":{"type":"object","additionalProperties":true}}}}}}}},"/sync-jobs":{"get":{"operationId":"get_sync_jobs","summary":"List durable external synchronization jobs","tags":["sync-jobs"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/sync-jobs/{id}":{"get":{"operationId":"get_sync_jobs_id_","summary":"Read a synchronization cursor, outcome and errors","tags":["sync-jobs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/sync-jobs/{id}/resume":{"post":{"operationId":"post_sync_jobs_id_resume","summary":"Resume a failed synchronization at its durable cursor","tags":["sync-jobs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/members":{"get":{"operationId":"get_members","summary":"List permitted members","tags":["members"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/invitations":{"get":{"operationId":"get_invitations","summary":"List permitted invitations","tags":["invitations"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post_invitations","summary":"Create a seven-day email-bound organization invitation","tags":["invitations"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"201":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"role":{"enum":["viewer","operator","developer","admin"]}},"required":["email"]}}}}}},"/organizations":{"get":{"operationId":"get_organizations","summary":"List permitted organizations","tags":["organizations"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/webhook-deliveries":{"get":{"operationId":"get_webhook_deliveries","summary":"List permitted webhook-deliveries","tags":["webhook-deliveries"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/members/{id}":{"patch":{"operationId":"patch_members_id_","summary":"Change a non-owner organization membership","tags":["members"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"enum":["viewer","operator","developer","admin"]}},"required":["role"]}}}}},"delete":{"operationId":"delete_members_id_","summary":"Revoke a non-owner membership and its sessions","tags":["members"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/invitations/accept":{"post":{"operationId":"post_invitations_accept","summary":"Accept an invitation for the signed-in email address","tags":["invitations"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"}},"required":["token"]}}}}}},"/organizations/switch":{"post":{"operationId":"post_organizations_switch","summary":"Switch the human session to an existing membership","tags":["organizations"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"}},"required":["organizationId"]}}}}}},"/billing/cancel":{"post":{"operationId":"post_billing_cancel","summary":"Request cancellation at the end of the configured subscription period","tags":["billing"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/billing/portal":{"post":{"operationId":"post_billing_portal","summary":"Open the current organization’s Stripe customer portal","description":"Human owner or administrator only. Requires an existing Stripe customer and subscription. Customer ID and return URL are resolved server-side; request fields cannot override them. Returns a validated HTTPS billing.stripe.com session URL. Configure the Stripe portal before use; live mode additionally requires STRIPE_ALLOW_LIVE.","tags":["billing"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/retention/run":{"post":{"operationId":"post_retention_run","summary":"Apply scoped retention to eligible historical operational data","description":"Preserves active and uncertain runs, audit evidence and the financial ledger.","tags":["retention"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/metrics":{"get":{"operationId":"get_metrics","summary":"Read measured activation and usage with unknown economics explicitly null","tags":["metrics"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/platform/overview":{"get":{"operationId":"get_platform_overview","summary":"Read aggregate platform operational counts","description":"Allowlisted human platform operators only; production additionally requires verified email and MFA. No customer workflow content.","tags":["platform"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/platform/leads":{"get":{"operationId":"get_platform_leads","summary":"Read the operator inquiry inbox","description":"Restricted to configured platform operators.","tags":["platform"],"parameters":[{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/platform/leads/{id}":{"patch":{"operationId":"patch_platform_leads_id_","summary":"Update inquiry review state","tags":["platform"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-Workspace-Id","in":"header","schema":{"type":"string"},"description":"Selected workspace; server checks membership or token scope."},{"name":"X-Environment","in":"header","schema":{"type":"string","enum":["development","test","production"],"default":"development"}}],"responses":{"200":{"description":"Success","headers":{"X-Request-Id":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope or role denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found in the authorized scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Revision/idempotency/state conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate or queue limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Required provider is unconfigured or unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"enum":["new","reviewed","closed"]}},"required":["status"]}}}}}}}}