{
  "openapi": "3.1.0",
  "info": {
    "title": "enrich-domain \u2014 x402 paid endpoint",
    "version": "1.0.0",
    "description": "Send one domain, get its public footprint: RDAP registration (registrar, created/updated dates, status), subdomains from certificate transparency, HTTP server/status/title, and the organization when the registry declares it. No account, no API key.",
    "x-guidance": "POST /api/enrich-domain with JSON {\"domain\":\"example.com\"}. Unpaid calls return HTTP 402 with x402 v2 terms (USDC on Base, $0.01 per call). The paid response is JSON with registration, subdomains and HTTP metadata.",
    "contact": {
      "email": "hello@desk.node01.org",
      "url": "https://market.node01.org/"
    }
  },
  "servers": [
    {
      "url": "https://enrich.node01.org"
    }
  ],
  "paths": {
    "/api/enrich-domain": {
      "post": {
        "operationId": "enrich_domain",
        "summary": "Domain enrichment from public data: registrar and dates, subdomains, HTTP headers, technology and declared organization.",
        "tags": [
          "x402",
          "enrichment",
          "domain",
          "dns"
        ],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.010000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "domain": {
                    "type": "string",
                    "description": "Domain name to enrich, e.g. example.com",
                    "examples": [
                      "example.com"
                    ]
                  }
                },
                "required": [
                  "domain"
                ]
              },
              "example": {
                "domain": "example.com"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Paid call succeeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "domain": "example.com",
                  "subdomain_count": 1,
                  "subdomains": [
                    "www.example.com"
                  ],
                  "registration": {
                    "registrar": "Example Registrar Inc"
                  },
                  "http": {
                    "status": 200,
                    "server": "ECS"
                  },
                  "queried_at": "2026-10-21T06:00:00Z"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required \u2014 x402 v2 challenge in the PAYMENT-REQUIRED header"
          }
        }
      }
    },
    "/api/health": {
      "get": {
        "operationId": "health_check",
        "summary": "Free liveness check",
        "security": [],
        "responses": {
          "200": {
            "description": "Service is alive"
          }
        }
      }
    }
  }
}
