{
  "openapi": "3.1.0",
  "info": {
    "title": "Drug Safety Alerts and Recalls API",
    "description": "Returns drug safety alerts and recalls matching a medicine name or therapeutic area. Pre-launch design; endpoints are not live yet.",
    "version": "0.1.0",
    "x-planned-pricing": {
      "model": "free tier for evaluation, paid tiers by volume",
      "status": "planned; nothing charged before launch"
    }
  },
  "servers": [
    {
      "url": "https://openapiregistry.com/api/v1/drug-safety-alerts",
      "description": "Pre-launch: endpoints are not live yet and answer 503."
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/alerts": {
      "get": {
        "summary": "List drug safety alerts and recalls",
        "description": "Returns matching safety alerts, recalls and advisories for a medicine name or therapeutic area.",
        "tags": [
          "health/safety"
        ],
        "operationId": "drug-safety-alerts-get-alerts",
        "parameters": [
          {
            "name": "medicine",
            "in": "query",
            "required": false,
            "description": "Medicine name to match against alerts.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "therapeutic_area",
            "in": "query",
            "required": false,
            "description": "Therapeutic area to filter alerts by.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching alerts returned.",
            "content": {
              "application/json": {
                "example": {
                  "alerts": [
                    {
                      "medicine": "duloxetine",
                      "type": "recall",
                      "published": "2025-06-02"
                    }
                  ]
                },
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid query parameters."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Planned for launch: an API key issued on request. Free tier for evaluation, paid tiers by volume; nothing is charged before launch."
      }
    }
  }
}
