{
  "openapi": "3.1.0",
  "info": {
    "title": "Canada Natural Health Product Check MCP",
    "description": "Verify supplements and natural health products are licensed in Canada (NPN).\n\nThis specification documents the HTTP x402 pay-per-call routes only (not the MCP /mcp transport). Unpaid calls return HTTP 402. Retry with a PAYMENT-SIGNATURE header (x402 v2, scheme exact, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). A payout address is included only in the live 402 challenge served by the Worker, not in this file. MCP endpoint: https://ca-natural-health-products-mcp.donniertf.workers.dev/mcp. Manifest: https://ca-natural-health-products-mcp.donniertf.workers.dev/.well-known/x402. Paper/free discovery routes are not billed.",
    "version": "1.0.0",
    "contact": {
      "name": "Donnie Morrison",
      "email": "dmorrisonwebdesign@gmail.com",
      "url": "https://ca-natural-health-products-mcp.donniertf.workers.dev/"
    },
    "license": {
      "name": "See product landing page and source licences"
    },
    "x-guidance": "Use the paid HTTP routes documented in paths (POST JSON, or GET with query args). Unpaid calls return HTTP 402; retry with a PAYMENT-SIGNATURE header (x402 v2, USDC on Base; legacy X-PAYMENT v1 also accepted). The MCP transport is at /mcp. Verify supplements and natural health products are licensed in Canada (NPN)."
  },
  "servers": [
    {
      "url": "https://ca-natural-health-products-mcp.donniertf.workers.dev",
      "description": "Canada Natural Health Product Check MCP origin"
    }
  ],
  "tags": [
    {
      "name": "x402",
      "description": "USDC on Base pay-per-call routes"
    }
  ],
  "paths": {
    "/x402/npn_check": {
      "post": {
        "summary": "PAID (x402). $0.03 USDC per call. Also free via /mcp (5 free calls/day per IP). Verify a Natural Product Number (NPN/DIN-HM) is licensed by Health Canada: product, company, form, status.",
        "description": "PAID (x402). $0.03 USDC per call. Also free via /mcp (5 free calls/day per IP). Verify a Natural Product Number (NPN/DIN-HM) is licensed by Health Canada: product, company, form, status.",
        "operationId": "post_x402_npn_check",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "npn": {
                    "type": "string"
                  }
                },
                "required": [
                  "npn"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PAID (x402). $0.03 USDC per call. Also free via /mcp (5 free calls/day per IP). Verify a Natural Product Number (NPN/DIN-HM) is licensed by Health Canada: product, company, form, status. (query or 402 probe)",
        "description": "PAID (x402). $0.03 USDC per call. Also free via /mcp (5 free calls/day per IP). Verify a Natural Product Number (NPN/DIN-HM) is licensed by Health Canada: product, company, form, status. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_npn_check",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "parameters": [
          {
            "name": "npn",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/x402/npn_detail": {
      "post": {
        "summary": "PRO. Medicinal ingredients with quantities, recommended uses/claims, dose and risk information for an NPN.",
        "description": "PRO. Medicinal ingredients with quantities, recommended uses/claims, dose and risk information for an NPN.",
        "operationId": "post_x402_npn_detail",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "npn": {
                    "type": "string"
                  }
                },
                "required": [
                  "npn"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Medicinal ingredients with quantities, recommended uses/claims, dose and risk information for an NPN. (query or 402 probe)",
        "description": "PRO. Medicinal ingredients with quantities, recommended uses/claims, dose and risk information for an NPN. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_npn_detail",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "parameters": [
          {
            "name": "npn",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/x402/batch_npn_check": {
      "post": {
        "summary": "PRO. Check up to 50 NPNs at once (e.g. a marketplace or store catalogue) — licensed or not, product and company names.",
        "description": "PRO. Check up to 50 NPNs at once (e.g. a marketplace or store catalogue) — licensed or not, product and company names.",
        "operationId": "post_x402_batch_npn_check",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "npns": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "npns"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Check up to 50 NPNs at once (e.g. a marketplace or store catalogue) — licensed or not, product and company names. (query or 402 probe)",
        "description": "PRO. Check up to 50 NPNs at once (e.g. a marketplace or store catalogue) — licensed or not, product and company names. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_batch_npn_check",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "parameters": [
          {
            "name": "npns",
            "in": "query",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ]
      }
    }
  }
}