{
  "openapi": "3.1.0",
  "info": {
    "title": "CEDX Systems Unified Enterprise Platform API",
    "version": "1.0.0",
    "summary": "REST API for CEDX Systems - 132 unified enterprise cloud applications by CEDX Corporation.",
    "description": "Official REST API specification for CEDX Systems (https://cedxsystems.com/), the 132-application enterprise cloud estate built by CEDX Corporation (307 W 38th St, 16th Floor, New York, NY 10018). All applications share one customer record, one OAuth 2.0 / OIDC identity plane, and one immutable audit trail.",
    "termsOfService": "https://cedxsystems.com/terms/",
    "contact": {
      "name": "CEDX Platform Engineering",
      "url": "https://docs.cedxsystems.com/",
      "email": "support@cedxsystems.com"
    }
  },
  "externalDocs": {
    "description": "CEDX Developer & API Documentation Portal",
    "url": "https://docs.cedxsystems.com/"
  },
  "servers": [
    {
      "url": "https://api.cedxsystems.com/v1",
      "description": "Production United States (Microsoft Azure)"
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "operationId": "getPlatformHealth",
        "summary": "Platform health and operational status check",
        "responses": {
          "200": {
            "description": "Operational health payload across CEDX Systems services",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/crm/accounts": {
      "get": {
        "operationId": "listAccounts",
        "summary": "List unified customer accounts across the 132-application estate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated account list"
          }
        }
      }
    },
    "/crm/deals": {
      "get": {
        "operationId": "listDeals",
        "summary": "List commercial pipeline deals and stage history",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated deal list"
          }
        }
      }
    },
    "/finance/invoices": {
      "get": {
        "operationId": "listInvoices",
        "summary": "List ledger-backed invoices and receivables",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated invoice list"
          }
        }
      }
    },
    "/audit/events": {
      "get": {
        "operationId": "listAuditEvents",
        "summary": "Query immutable tenant audit log events across applications and AI queues",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Paginated audit trail events"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Tenant-scoped OAuth 2.0 / OIDC Bearer token issued via CEDX Access."
      }
    }
  }
}
