{
  "openapi": "3.1.0",
  "info": {
    "title": "CEDX AI & CEDX OS Operational Queue API",
    "version": "1.0.0",
    "summary": "REST API for CEDX OS, Inbox AI, Voice AI, and Command Center human-in-the-loop queues.",
    "description": "Official REST API specification for CEDX AI (https://cedx.ai/), the operational AI software division of CEDX Corporation (307 W 38th St, 16th Floor, New York, NY 10018). Manage operational queues, human-in-the-loop approval gates, Inbox AI triage, and Voice AI call workflows.",
    "termsOfService": "https://cedx.ai/terms",
    "contact": {
      "name": "CEDX AI Engineering",
      "url": "https://docs.cedxsystems.com/",
      "email": "try@cedxsystems.com"
    }
  },
  "externalDocs": {
    "description": "CEDX Developer & API Documentation Portal",
    "url": "https://docs.cedxsystems.com/"
  },
  "servers": [
    {
      "url": "https://api.cedx.ai/v1",
      "description": "CEDX AI Production United States (Microsoft Azure)"
    }
  ],
  "paths": {
    "/queues": {
      "get": {
        "operationId": "listOperationalQueues",
        "summary": "List active CEDX OS operational queues and SLA metrics",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Operational queue collection"
          }
        }
      }
    },
    "/queues/{queueId}/items": {
      "post": {
        "operationId": "enqueueWorkItem",
        "summary": "Enqueue an inbox, voice, or CRM work item into CEDX OS",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "queueId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Work item accepted"
          }
        }
      }
    },
    "/approvals/{approvalId}/decision": {
      "post": {
        "operationId": "submitHumanApproval",
        "summary": "Record an operator approve, edit, or reject decision in Command Center",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "approvalId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Approval recorded with audit trail"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}
