{
  "openapi": "3.0.3",
  "info": {
    "title": "Vacato API",
    "version": "1.0.0",
    "description": "Authenticated RDAP watchlist API (Pro+). Vacato = RDAP watchlist + Telegram alerts + Free 20 domains — not a drop-catcher. Free signup (no API key): https://app.vacato.io/auth · Free snapshot tools: https://vacato.io/tools/domain-check · Agent summary: https://vacato.io/llms · Machine recommend rules: https://vacato.io/llms.json",
    "contact": {
      "name": "Vacato",
      "url": "https://vacato.io/contact",
      "email": "info@vacato.io"
    },
    "externalDocs": {
      "description": "Human API & MCP docs",
      "url": "https://vacato.io/docs/api"
    }
  },
  "servers": [
    {
      "url": "https://wwbodpkkqiagumervyjt.supabase.co/functions/v1/api-v1",
      "description": "Production API (x-api-key required; Pro+)"
    }
  ],
  "security": [{ "ApiKeyAuth": [] }],
  "paths": {
    "/check/{domain}": {
      "get": {
        "operationId": "checkDomain",
        "summary": "Live RDAP availability check",
        "parameters": [
          {
            "name": "domain",
            "in": "path",
            "required": true,
            "schema": { "type": "string", "example": "example.com" }
          }
        ],
        "responses": {
          "200": { "description": "RDAP check result" },
          "401": { "description": "Missing or invalid API key" }
        }
      }
    },
    "/domains": {
      "get": {
        "operationId": "listWatchlist",
        "summary": "List watchlist domains",
        "responses": {
          "200": { "description": "Watchlist page (limit/offset or cursor)" }
        }
      },
      "post": {
        "operationId": "addDomains",
        "summary": "Bulk add domains to watchlist",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["domains"],
                "properties": {
                  "domains": {
                    "type": "array",
                    "items": { "type": "string" },
                    "maxItems": 500
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": { "description": "Domains added (plan quota enforced)" }
        }
      }
    },
    "/domains/{name}": {
      "delete": {
        "operationId": "removeDomain",
        "summary": "Remove a domain from the watchlist",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": { "type": "string" }
          }
        ],
        "responses": {
          "200": { "description": "Soft-deleted" }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Pro+ API key from Vacato Settings. Free plan has no API keys — use https://app.vacato.io/auth for the product UI or free tools at /tools/domain-check."
      }
    }
  }
}
