{
  "openapi": "3.1.0",
  "info": {
    "title": "CheckNewBrands Public & AI Discovery API",
    "version": "1.0.0",
    "summary": "Check brand name availability across 73+ live RDAP domains and 31+ social media networks worldwide in 62 languages.",
    "description": "CheckNewBrands provides zero front-running live RDAP domain checks (73+ gTLDs & ccTLDs), 31+ social handle checks, algorithmic brand name generation, Brand Radio Test & INPI/USPTO/EUIPO/WIPO trademark pre-check, SVG Brand Kit generation, and daily RDAP expiration watchlists. Direct user report deep link: https://checknewbrands.com/{locale}/check/{brand}. Public MCP endpoint: https://api.checknewbrands.com/mcp.",
    "contact": {
      "name": "CheckNewBrands Support",
      "email": "contact@checknewbrands.com",
      "url": "https://checknewbrands.com/en-US/developers"
    }
  },
  "servers": [
    {
      "url": "https://api.checknewbrands.com",
      "description": "Production Global Edge API (Cloudflare Workers)"
    }
  ],
  "paths": {
    "/mcp": {
      "post": {
        "operationId": "invokeMcpJsonRpc",
        "summary": "Model Context Protocol (MCP) JSON-RPC 2.0 endpoint",
        "description": "Supports initialize, tools/list, tools/call (check_brand_availability, evaluate_brand_intelligence, list_supported_markets_and_pricing), resources/list, and resources/read.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["jsonrpc", "method"],
                "properties": {
                  "jsonrpc": { "type": "string", "enum": ["2.0"] },
                  "id": { "type": ["string", "integer", "null"] },
                  "method": { "type": "string", "example": "tools/call" },
                  "params": { "type": "object" }
                }
              }
            }
          }
        },
        "responses": {
          "200": { "description": "JSON-RPC 2.0 MCP response" }
        }
      }
    },
    "/api/v1/public/suggestions": {
      "get": {
        "operationId": "getBrandNameSuggestions",
        "summary": "Generate algorithmic brand name ideas by seed keyword and industry",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": { "type": "string", "minLength": 2, "maxLength": 40 },
            "description": "Seed keyword or concept"
          },
          {
            "name": "industry",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": ["general", "tech", "saas", "ecommerce", "creator", "agency", "ai"]
            }
          }
        ],
        "responses": {
          "200": { "description": "List of suggested brand names with clickable check URLs" }
        }
      }
    },
    "/api/v1/plans": {
      "get": {
        "operationId": "listPlans",
        "summary": "List CheckNewBrands Free, Pro ($9/mo), and Business ($29/mo) subscription plans",
        "responses": {
          "200": { "description": "Subscription plans and feature matrix" }
        }
      }
    },
    "/api/v1/badge/{brand}.svg": {
      "get": {
        "operationId": "getBrandAvailabilityBadgeSvg",
        "summary": "Live dynamic SVG availability score badge for READMEs and docs",
        "parameters": [
          {
            "name": "brand",
            "in": "path",
            "required": true,
            "schema": { "type": "string" }
          }
        ],
        "responses": {
          "200": { "description": "SVG badge image" }
        }
      }
    },
    "/docs/openapi.json": {
      "get": {
        "operationId": "getFullOpenApiSpec",
        "summary": "Full REST API OpenAPI specification including authenticated Pro/Business endpoints",
        "responses": {
          "200": { "description": "Complete OpenAPI JSON specification" }
        }
      }
    }
  }
}
