{"openapi":"3.1.0","jsonSchemaDialect":"https://json-schema.org/draft/2020-12/schema","info":{"title":"OpenCEO Executive Intelligence API","version":"1.0.0","summary":"Autonomous executive intelligence, strategy execution, and portfolio allocation API.","description":"OpenCEO separates recommendation, authorization, execution, and independent outcome verification. All monetary amounts use integer minor units paired with ISO-4217 currency codes.","contact":{"name":"OpenCEO Support","url":"https://openceo.run/help"}},"servers":[{"url":"https://openceo.run","description":"Active OpenCEO API server"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"oceo_grant_or_session","description":"Scoped API grant (oceo_*) or interactive session token (sess_*)."},"OAuth2":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://openceo.run/oauth/authorize","tokenUrl":"https://openceo.run/oauth/token","scopes":{"read":"Read authorized goals, KPIs, decisions, and initiatives","propose":"Create goals, scenarios, and initiative proposals","authorize":"Approve, reject, modify, or revoke executive decisions","execute":"Reserve budget and delegate authorized initiatives","portfolio":"Read multi-business portfolio summaries"}}}}},"schemas":{"Money":{"type":"object","required":["amountMinor","currency"],"properties":{"amountMinor":{"type":"integer","examples":[120000]},"currency":{"type":"string","examples":["EUR"]}}},"ApiError":{"type":"object","required":["code","message","correlation_id"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"correlation_id":{"type":"string"},"details":{"type":["object","array","string","null"]}}},"Goal":{"type":"object","required":["id","business_id","title","metric_key","baseline_value","current_value","target_value","version"],"properties":{"id":{"type":"string","format":"uuid"},"business_id":{"type":"string","format":"uuid"},"title":{"type":"string"},"description":{"type":["string","null"]},"metric_key":{"type":"string"},"unit":{"type":"string"},"currency":{"type":["string","null"]},"baseline_value":{"type":"number"},"current_value":{"type":"number"},"target_value":{"type":"number"},"is_estimate":{"type":"boolean"},"version":{"type":"integer","minimum":1},"status":{"type":"string","enum":["active","paused","achieved","archived"]}}},"Initiative":{"type":"object","required":["id","business_id","title","state","estimated_cost_minor","currency","version"],"properties":{"id":{"type":"string","format":"uuid"},"business_id":{"type":"string","format":"uuid"},"title":{"type":"string"},"state":{"type":"string","enum":["draft","proposed","authorized","queued","running","awaiting_verification","verified","failed","blocked","cancelled","closed"]},"estimated_cost_minor":{"type":"integer","minimum":0},"reserved_cost_minor":{"type":"integer","minimum":0},"actual_cost_minor":{"type":"integer","minimum":0},"currency":{"type":"string"},"target_provider":{"type":["string","null"]},"version":{"type":"integer","minimum":1}}}}},"paths":{"/api/health":{"get":{"summary":"Service health check","security":[],"responses":{"200":{"description":"Healthy API and database"}}}},"/api/revision":{"get":{"summary":"Deployed release revision metadata","security":[],"responses":{"200":{"description":"Deployed git SHA and build timestamp"}}}},"/api/v1/auth/providers":{"get":{"summary":"Truthful authentication provider availability","security":[],"responses":{"200":{"description":"Enabled and gated auth providers"}}}},"/api/v1/auth/signup":{"post":{"summary":"Create account and organization","security":[],"responses":{"201":{"description":"Created"}}}},"/api/v1/auth/login":{"post":{"summary":"Sign in with email and password","security":[],"responses":{"200":{"description":"Authenticated"}}}},"/api/v1/auth/grants":{"get":{"summary":"List scoped API/agent grants","responses":{"200":{"description":"Grant list"}}},"post":{"summary":"Mint least-privilege scoped API/agent grant (oceo_*)","responses":{"201":{"description":"Grant created"}}}},"/api/v1/overview":{"get":{"summary":"Executive Home overview with freshness and exceptions","responses":{"200":{"description":"Overview"}}}},"/api/v1/businesses":{"get":{"summary":"List authorized business units","responses":{"200":{"description":"Business units"}}},"post":{"summary":"Create business unit","responses":{"201":{"description":"Created"}}}},"/api/v1/metrics":{"get":{"summary":"List KPI observations with source lineage and freshness","responses":{"200":{"description":"Observations"}}},"post":{"summary":"Record KPI observation","responses":{"201":{"description":"Recorded"}}}},"/api/v1/metrics/anomalies":{"get":{"summary":"Detect KPI staleness and variance anomalies","responses":{"200":{"description":"Anomalies"}}}},"/api/v1/goals":{"get":{"summary":"List measurable goals","responses":{"200":{"description":"Goals"}}},"post":{"summary":"Create versioned goal","responses":{"201":{"description":"Created"}}}},"/api/v1/goals/parse":{"post":{"summary":"Parse natural-language goal with data availability validation","responses":{"200":{"description":"Parsed goal"}}}},"/api/v1/scenarios/evaluate":{"post":{"summary":"Evaluate deterministic what-if scenario (forecast vs fact)","responses":{"201":{"description":"Scenario forecast"}}}},"/api/v1/initiatives/propose":{"post":{"summary":"Propose ranked strategic initiative","responses":{"201":{"description":"Proposed"}}}},"/api/v1/initiatives/{id}/delegate":{"post":{"summary":"Delegate authorized, budget-reserved initiative to verified provider","responses":{"201":{"description":"Delegated"}}}},"/api/v1/initiatives/{id}/cancel":{"post":{"summary":"Cancel initiative and release unspent budget reservations","responses":{"200":{"description":"Cancelled"}}}},"/api/v1/initiatives/{id}/evidence":{"post":{"summary":"Record independent verified outcome evidence","responses":{"201":{"description":"Verified"}}}},"/api/v1/budgets/reserve":{"post":{"summary":"Transactionally reserve integer minor-unit budget (SELECT FOR UPDATE)","responses":{"201":{"description":"Reserved"}}}},"/api/v1/budgets/allocate":{"post":{"summary":"Run deterministic portfolio allocation constraint solver","responses":{"200":{"description":"Allocation plan"}}}},"/api/v1/decisions":{"get":{"summary":"List append-only executive decisions","responses":{"200":{"description":"Decisions"}}},"post":{"summary":"Record append-only approval/rejection/modification with optimistic locking","responses":{"201":{"description":"Recorded"}}}},"/api/v1/decisions/kill-switch":{"post":{"summary":"Trigger one-tap executive kill switch","responses":{"200":{"description":"Halted"}}}},"/api/v1/experiments":{"get":{"summary":"List growth experiments","responses":{"200":{"description":"Experiments"}}},"post":{"summary":"Create growth experiment with fixed cap and guardrail","responses":{"201":{"description":"Created"}}}},"/api/v1/portfolio":{"get":{"summary":"Consolidated multi-business and agency portfolio summary","responses":{"200":{"description":"Portfolio"}}}},"/api/v1/connectors/directory":{"get":{"summary":"Verified Open Group & external integration readiness directory","security":[],"responses":{"200":{"description":"Directory"}}}},"/api/v1/assistant/query":{"post":{"summary":"Grounded executive assistant Q&A with record citations","responses":{"200":{"description":"Grounded answer"}}}},"/api/v1/reports":{"get":{"summary":"Reproducible executive ROI and decision report","responses":{"200":{"description":"Report"}}}},"/api/v1/connect-ai/status":{"get":{"summary":"Universal Connect AI (og-connect v0.3.4) status","responses":{"200":{"description":"Status"}}}},"/api/v1/billing/plans":{"get":{"summary":"Subscription plans and test-mode launch gate","security":[],"responses":{"200":{"description":"Plans"}}}},"/mcp":{"post":{"summary":"Model Context Protocol Streamable HTTP (2025-06-18)","responses":{"200":{"description":"JSON-RPC 2.0 response"}}}},"/a2a/v1":{"post":{"summary":"Agent2Agent v1.0 JSON-RPC task endpoint","responses":{"200":{"description":"JSON-RPC 2.0 response"}}}}},"webhooks":{"goal.updated":{"post":{"summary":"Signed webhook emitted when a goal is created or versioned","responses":{"200":{"description":"Acknowledged"}}}},"kpi.observed":{"post":{"summary":"Signed webhook emitted when a verified KPI observation is ingested","responses":{"200":{"description":"Acknowledged"}}}},"budget.reserved":{"post":{"summary":"Signed webhook emitted when minor-unit budget is reserved","responses":{"200":{"description":"Acknowledged"}}}},"decision.authorized":{"post":{"summary":"Signed webhook emitted when an executive decision is recorded","responses":{"200":{"description":"Acknowledged"}}}},"initiative.state_changed":{"post":{"summary":"Signed webhook emitted on initiative state transitions","responses":{"200":{"description":"Acknowledged"}}}},"provider.receipt_recorded":{"post":{"summary":"Signed webhook emitted when an external provider returns an execution receipt","responses":{"200":{"description":"Acknowledged"}}}},"evidence.verified":{"post":{"summary":"Signed webhook emitted when independent outcome evidence is verified","responses":{"200":{"description":"Acknowledged"}}}}}}