{
  "openapi": "3.1.0",
  "info": {
    "title": "NovaMX public and MailControl APIs",
    "version": "1.0.0",
    "summary": "Read-oriented HTTP APIs for marketing discovery and MailControl monitoring.",
    "description": "Public marketing endpoints on novamx.eu are intended for the website and for MCP clients. The MailControl API on my.novamx.eu uses customer Bearer tokens from My NovaMX (Growth bundle or larger). There is no public npm or PyPI SDK; prefer MCP or these HTTP calls.",
    "contact": {
      "name": "NovaMX B.V.",
      "url": "https://novamx.eu/contact.html",
      "email": "support@novamx.eu"
    }
  },
  "servers": [
    {
      "url": "https://novamx.eu",
      "description": "Public marketing origin (packages, free mail check via browser Origin, MCP, OpenAPI)"
    },
    {
      "url": "https://my.novamx.eu",
      "description": "My NovaMX customer host (MailControl Bearer API)"
    }
  ],
  "tags": [
    { "name": "public", "description": "Unauthenticated or browser-gated marketing APIs" },
    { "name": "mcp", "description": "Public read-only Model Context Protocol" },
    { "name": "research", "description": "Public research reports and aggregate datasets under /onderzoek/" },
    { "name": "mailcontrol", "description": "Customer MailControl API (Bearer token)" }
  ],
  "paths": {
    "/api/v1/registrar/public/packages": {
      "get": {
        "tags": ["public"],
        "operationId": "getPublicPackages",
        "summary": "List catalog packages, services and add-ons",
        "description": "Returns live monthly net EUR prices from the registrar catalog. Prefer calling this from the marketing site (Origin/Referer novamx.eu) or via MCP get_packages.",
        "parameters": [
          {
            "name": "language",
            "in": "query",
            "schema": { "type": "string", "enum": ["en", "nl"], "default": "en" }
          }
        ],
        "security": [],
        "responses": {
          "200": { "description": "Catalog payload with packages, services and add_ons" },
          "403": { "description": "Not allowed from this Origin/Host" },
          "429": { "description": "Rate limited" }
        }
      }
    },
    "/api/v1/registrar/public/domains/tld-prices": {
      "get": {
        "tags": ["public"],
        "operationId": "getPublicTldPrices",
        "summary": "List public TLD registration price seeds",
        "security": [],
        "responses": {
          "200": { "description": "TLD price rows" },
          "403": { "description": "Not allowed from this Origin/Host" },
          "429": { "description": "Rate limited" }
        }
      }
    },
    "/api/v1/registrar/public/mail-auth/check": {
      "get": {
        "tags": ["public"],
        "operationId": "publicMailAuthCheck",
        "summary": "Free SPF/DKIM/DMARC check (marketing site)",
        "description": "Browser tool for novamx.eu. Requires marketing Origin or Host. Agents should prefer MCP tool check_mail_auth or the MailControl Bearer API.",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "schema": { "type": "string" }
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": ["all", "spf", "dkim", "dmarc", "bimi", "tls-rpt", "mta-sts"],
              "default": "all"
            }
          }
        ],
        "security": [],
        "responses": {
          "200": { "description": "Status cards for the domain" },
          "400": { "description": "Invalid domain or type" },
          "403": { "description": "Landing preview only / wrong Origin" },
          "429": { "description": "Rate limited" }
        }
      }
    },
    "/api/v1/registrar/public/ai-help/status": {
      "get": {
        "tags": ["public"],
        "operationId": "publicAiHelpStatus",
        "summary": "Marketing Nova assistant enabled flag",
        "security": [],
        "responses": {
          "200": { "description": "JSON with enabled boolean" },
          "403": { "description": "Not from marketing host" }
        }
      }
    },
    "/mcp": {
      "post": {
        "tags": ["mcp"],
        "operationId": "mcpJsonRpc",
        "summary": "Public MCP Streamable HTTP endpoint",
        "description": "JSON-RPC 2.0 over HTTP. No authentication. Tools: search_docs, get_packages, check_mail_auth, list_research, get_research, get_dataset. See /.well-known/mcp.json and /.well-known/mcp-server-card.json.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": { "type": "object", "additionalProperties": true }
            }
          }
        },
        "responses": {
          "200": { "description": "JSON-RPC result" },
          "202": { "description": "Notification accepted" },
          "429": { "description": "Rate limited" },
          "503": { "description": "MCP disabled via kill-switch" }
        }
      }
    },
    "/mcp/status": {
      "get": {
        "tags": ["mcp"],
        "operationId": "mcpStatus",
        "summary": "MCP kill-switch and tool flags",
        "security": [],
        "responses": {
          "200": { "description": "enabled flag and per-tool booleans" }
        }
      }
    },
    "/onderzoek/noab-mailbeveiliging-2026-cijfers.json": {
      "get": {
        "tags": ["research"],
        "operationId": "getNoab2026FiguresJson",
        "summary": "NOAB 2026 aggregate figures (JSON)",
        "description": "Already-public DNS aggregates for NOAB offices. No domain or organisation names.",
        "security": [],
        "responses": {
          "200": { "description": "Aggregate JSON object" }
        }
      }
    },
    "/onderzoek/noab-mailbeveiliging-2026-cijfers.csv": {
      "get": {
        "tags": ["research"],
        "operationId": "getNoab2026FiguresCsv",
        "summary": "NOAB 2026 aggregate figures (CSV)",
        "security": [],
        "responses": {
          "200": { "description": "Flat CSV derived from the public JSON" }
        }
      }
    },
    "/onderzoek/noab-mailbeveiliging-2026-dataset.jsonld": {
      "get": {
        "tags": ["research"],
        "operationId": "getNoab2026DatasetJsonLd",
        "summary": "NOAB 2026 schema.org Dataset JSON-LD",
        "security": [],
        "responses": {
          "200": { "description": "Dataset metadata with DataDownload links" }
        }
      }
    },
    "/onderzoek/nederland-mailbeveiliging-sectoren-2026-cijfers.json": {
      "get": {
        "tags": ["research"],
        "operationId": "getSector2026FiguresJson",
        "summary": "Dutch sectors 2026 aggregate figures (JSON)",
        "description": "Sector and branch aggregates for 110,172 unique Dutch domains. No domain list.",
        "security": [],
        "responses": {
          "200": { "description": "Aggregate JSON object" }
        }
      }
    },
    "/onderzoek/nederland-mailbeveiliging-sectoren-2026-cijfers.csv": {
      "get": {
        "tags": ["research"],
        "operationId": "getSector2026FiguresCsv",
        "summary": "Dutch sectors 2026 aggregate figures (CSV)",
        "security": [],
        "responses": {
          "200": { "description": "One CSV row per branch aggregate" }
        }
      }
    },
    "/onderzoek/nederland-mailbeveiliging-sectoren-2026-dataset.jsonld": {
      "get": {
        "tags": ["research"],
        "operationId": "getSector2026DatasetJsonLd",
        "summary": "Dutch sectors 2026 schema.org Dataset JSON-LD",
        "security": [],
        "responses": {
          "200": { "description": "Dataset metadata with DataDownload links" }
        }
      }
    },
    "/api/v1/registrar/mail-auth/check": {
      "get": {
        "tags": ["mailcontrol"],
        "operationId": "mailControlAuthCheck",
        "summary": "Authenticated mail-auth check (MailControl API)",
        "description": "Customer monitoring API. Create a token in My NovaMX (MailControl Growth or larger): Checks → MailControl API. Send Authorization: Bearer novamx_mc_…. Host: my.novamx.eu.",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "schema": { "type": "string" }
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": ["all", "spf", "dkim", "dmarc", "bimi", "tls-rpt", "mta-sts"],
              "default": "all"
            }
          }
        ],
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "description": "Status cards plus token label metadata" },
          "400": { "description": "Invalid domain or type" },
          "401": { "description": "Missing or invalid Bearer token" },
          "429": { "description": "Rate limited" }
        }
      }
    },
    "/api/v1/registrar/mail-auth/pulse": {
      "get": {
        "tags": ["mailcontrol"],
        "operationId": "mailControlPulse",
        "summary": "MailControl Pulse export (Business+)",
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "description": "Pulse events payload" },
          "401": { "description": "Missing or invalid Bearer token" },
          "403": { "description": "Bundle does not include SIEM/Pulse API" }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "novamx_mc_…",
        "description": "MailControl API token (prefix novamx_mc_). Create it in My NovaMX: MailControl → Checks (#mailcontrol-checks) → MailControl API → Create API token (Growth or larger). Copy once from New token (copy now). Header: Authorization: Bearer <token>. Not used for public MCP or marketing browser tools."
      }
    }
  }
}
