{
  "openapi": "3.1.0",
  "info": {
    "title": "MedSignalWatch FDA 510(k) Clearance, Review-Time & Recall API",
    "version": "1.1.0",
    "summary": "B2B U.S. FDA CDRH medical device regulatory intelligence API covering 500 active 3-letter product codes, empirical 510(k) review-time medians (134-day global median), FOIA Summary PDF-drop tracking, normalized parent OEMs, and Class I/II/III enforcement recalls.",
    "description": "Public CC0-1.0 benchmark and 14-day embargoed preview endpoints require no authentication. Real-time (<14-day) daily clearances, FOIA 510(k) Summary PDF live-drop alerts, FEI/Correspondent Phone BD triggers, and full multi-year archives are served via Bearer token on /api/pro/feed.json and /api/pro/signals.csv.",
    "license": {
      "name": "CC0-1.0",
      "url": "https://creativecommons.org/publicdomain/zero/1.0/"
    },
    "contact": {
      "name": "MedSignalWatch Support",
      "url": "https://medsignalwatch.com/contact",
      "email": "support@medsignalwatch.com"
    }
  },
  "servers": [
    {
      "url": "https://medsignalwatch.com",
      "description": "Production Cloudflare Edge API"
    }
  ],
  "paths": {
    "/api/v1/code/{code}.json": {
      "get": {
        "operationId": "getProductCodeBenchmarkAndFilings",
        "summary": "Get 24-month 510(k) clearance count, recall ratio, median review days, normalized top OEMs, and 5 matured filings for a 3-letter FDA product code",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "description": "Official 3-letter U.S. FDA CDRH medical device product code (for example QIH, LLZ, LNH, KGN, OWB)",
            "schema": {
              "type": "string",
              "pattern": "^[A-Z0-9]{3}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Product-code benchmark metrics, top parent OEMs, FOIA PDF status, and 14-day embargoed preview rows"
          },
          "404": {
            "description": "Unknown or unindexed 3-letter FDA product code"
          },
          "429": {
            "description": "Uncached preview rate limit reached"
          }
        }
      }
    },
    "/api/v1/benchmarks.json": {
      "get": {
        "operationId": "getGlobalFda510kBenchmarks",
        "summary": "Get global 134-day FDA 510(k) median review duration, 17 specialty panel medians, AI/ML software device cohort, and recall ratio leaderboard",
        "responses": {
          "200": {
            "description": "Aggregate 2024-2026 FDA CDRH review-time and recall benchmark study payload"
          }
        }
      }
    },
    "/api/public/codes-index.json": {
      "get": {
        "operationId": "listActiveFdaProductCodes",
        "summary": "List all 500 indexed active 3-letter FDA medical device product codes, device names, and CDRH specialty panels",
        "responses": {
          "200": {
            "description": "Compact directory array of active FDA product codes ordered by 24-month clearance volume"
          }
        }
      }
    },
    "/exports/fda-code-benchmarks.csv": {
      "get": {
        "operationId": "downloadProductCodeBenchmarksCsv",
        "summary": "Download full 500-row CC0-1.0 CSV benchmark table by 3-letter FDA product code",
        "responses": {
          "200": {
            "description": "Formula-safe UTF-8 CSV dataset with 21 CFR citations, clearances, recalls, and median review days"
          }
        }
      }
    },
    "/api/pro/feed.json": {
      "get": {
        "operationId": "getSubscriberRealtimeSignalsJson",
        "summary": "Subscriber real-time (<14-day) FDA 510(k) clearances, De Novos, FOIA Summary PDF drops, FEI/Correspondent Phone BD triggers, and recalls",
        "security": [
          {
            "SubscriberBearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional 3-letter FDA product code filter"
          },
          {
            "name": "cmo_gap",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            },
            "description": "Filter to clearances with non-US manufacturing / CMO opportunity flags"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Real-time unembargoed subscriber signal feed"
          },
          "401": {
            "description": "Missing or invalid subscriber Bearer token"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "SubscriberBearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Full Feed & API ($199/mo or $1,790/yr) subscriber token formatted as msw_pro_<32_hex_chars>"
      }
    }
  }
}