{
  "openapi": "3.0.3",
  "info": {
    "title": "United Health Portal Clinical Model Registry API",
    "version": "2026.09",
    "description": "Production registry for clinical ML artifacts and PHI-adjacent datasets."
  },
  "servers": [
    {
      "url": "https://unitedhealthportal.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      },
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    },
    {
      "apiKey": []
    }
  ],
  "paths": {
    "/api/v1/models": {
      "get": {
        "summary": "List registered models",
        "tags": [
          "models"
        ]
      }
    },
    "/api/v1/models/{model}": {
      "get": {
        "summary": "Get model metadata",
        "tags": [
          "models"
        ]
      }
    },
    "/api/v1/models/{model}/weights": {
      "get": {
        "summary": "Download model weights",
        "tags": [
          "artifacts"
        ]
      }
    },
    "/api/v1/models/{model}/versions": {
      "get": {
        "summary": "List model versions",
        "tags": [
          "models"
        ]
      }
    },
    "/api/v1/datasets": {
      "get": {
        "summary": "List datasets",
        "tags": [
          "datasets"
        ]
      }
    },
    "/api/v1/patients": {
      "get": {
        "summary": "Search patient records",
        "tags": [
          "phi"
        ]
      }
    },
    "/api/v1/patients/{id}": {
      "get": {
        "summary": "Patient detail",
        "tags": [
          "phi"
        ]
      }
    },
    "/api/v1/inference": {
      "post": {
        "summary": "Online inference",
        "tags": [
          "inference"
        ]
      }
    },
    "/api/v1/registry/health": {
      "get": {
        "summary": "Registry health",
        "tags": [
          "ops"
        ]
      }
    },
    "/metrics": {
      "get": {
        "summary": "Prometheus metrics",
        "tags": [
          "ops"
        ]
      }
    }
  }
}