{
  "openapi": "3.1.0",
  "info": {
    "title": "TonggwaPass (통과패스) Public Regulatory Data API",
    "version": "1.1.0",
    "description": "Machine-readable deterministic Korean import (KC/Radio/Children/MFDS), 2026 MFDS advertising law, and K-Beauty US FDA MoCRA / EU INCI regulatory datasets served over HTTPS with CORS enabled for AI agents, LLMs, and automation workflows.",
    "contact": {
      "name": "TonggwaPass",
      "url": "https://ttthkim-hue.github.io/tonggwapass/api-docs/"
    }
  },
  "servers": [
    {
      "url": "https://ttthkim-hue.github.io/tonggwapass",
      "description": "TonggwaPass Static Edge CDN (GitHub Pages)"
    }
  ],
  "paths": {
    "/api/v1/ingredients.json": {
      "get": {
        "operationId": "getKoreanCosmeticIngredients",
        "summary": "K-Beauty Korean (KCID) to PCPC INCI, FDA UNII, EU Allergen & US OTC Active dataset",
        "responses": {
          "200": {
            "description": "Deterministic cosmetic ingredient mapping table",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": { "type": "string" },
                    "updated": { "type": "string" },
                    "count": { "type": "integer" },
                    "ingredients": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ko": { "type": "string" },
                          "aliases": { "type": "array", "items": { "type": "string" } },
                          "inci": { "type": "string" },
                          "unii": { "type": ["string", "null"] },
                          "euAllergen": { "type": "boolean" },
                          "fdaOtcActive": { "type": "boolean" },
                          "fdaNote": { "type": "string" }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/mfds-rules.json": {
      "get": {
        "operationId": "getMfds2026AdvertisingRules",
        "summary": "Korean MFDS 2026 advertising law & AI virtual expert ban ruleset",
        "responses": {
          "200": {
            "description": "Structured MFDS violation categories, regex patterns, legal clauses, penalties, and compliant alternatives",
            "content": {
              "application/json": {
                "schema": { "type": "object" }
              }
            }
          }
        }
      }
    },
    "/api/v1/kc-rules.json": {
      "get": {
        "operationId": "getKoreanImportKcRules",
        "summary": "Korean 4-law import & buying-agent (KC/Radio/Children/Food-Contact) pre-screening ruleset",
        "responses": {
          "200": {
            "description": "Structured Korean import compliance rules and mandatory buying-agent notice templates",
            "content": {
              "application/json": {
                "schema": { "type": "object" }
              }
            }
          }
        }
      }
    },
    "/api/v1/fda-claims.json": {
      "get": {
        "operationId": "getFdaDrugClaimRules",
        "summary": "US FDA Warning Letter drug claim patterns and 21 CFR 701 / MoCRA label checklist",
        "responses": {
          "200": {
            "description": "Structured FDA drug claim detection patterns and cosmetic-safe English alternatives",
            "content": {
              "application/json": {
                "schema": { "type": "object" }
              }
            }
          }
        }
      }
    }
  }
}
