{
 "aiax_version": "0.1",
 "section_id": "domaincheck_domain",
 "purpose": "DomainCheck: Domain trust report for AI agents: is this domain real, how old is it, who registered it, and is its email locked down? DNS (A/AAAA/NS/MX/CAA), DNSSEC, SPF, DMARC, DKIM (common selectors), MTA-STS, TLS-RPT, BIMI, RDAP registration date + registrar + status, parking and disposable detection, risk flags, 0-100 score and verdict. Public DNS + RDAP, no data stored.",
 "inputs": {
  "type": "object",
  "properties": {
   "domain": {
    "type": "string",
    "description": "Domain name, URL or email address, e.g. \"example.com\" (IDN allowed)"
   }
  },
  "required": [
   "domain"
  ]
 },
 "outputs": {
  "type": "object",
  "properties": {
   "input": {
    "type": "string"
   },
   "domain": {
    "type": "string"
   },
   "registrable_domain": {
    "type": "string"
   },
   "public_suffix": {
    "type": "string"
   },
   "tier": {
    "type": "string"
   },
   "exists": {
    "type": "boolean"
   },
   "verdict": {
    "type": "string"
   },
   "score": {
    "type": "integer"
   },
   "flags": {
    "type": "array",
    "items": {
     "type": "object",
     "properties": {
      "id": {
       "type": "string"
      },
      "severity": {
       "type": "string"
      },
      "penalty": {
       "type": "integer"
      },
      "description": {
       "type": "string"
      }
     }
    }
   },
   "dns": {
    "type": "object",
    "properties": {
     "a": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "aaaa": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "ns": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "mx": {
      "type": "array",
      "items": {}
     },
     "null_mx": {
      "type": "boolean"
     },
     "cname": {
      "type": "array",
      "items": {}
     },
     "dnssec_validated": {
      "type": "boolean"
     },
     "caa": {
      "type": "array",
      "items": {}
     },
     "txt_count": {
      "type": "integer"
     }
    }
   },
   "email": {
    "type": "object",
    "properties": {
     "accepts_mail": {
      "type": "boolean"
     },
     "mx_provider": {},
     "spf": {
      "type": "object",
      "properties": {
       "present": {
        "type": "boolean"
       },
       "record": {
        "type": "string"
       },
       "multiple": {
        "type": "boolean"
       },
       "all": {
        "type": "string"
       },
       "policy": {
        "type": "string"
       },
       "includes": {
        "type": "array",
        "items": {}
       },
       "redirect": {},
       "dns_lookups_top_level": {
        "type": "integer"
       },
       "invalid_terms": {
        "type": "array",
        "items": {}
       }
      }
     },
     "dmarc": {
      "type": "object",
      "properties": {
       "present": {
        "type": "boolean"
       },
       "record": {
        "type": "string"
       },
       "multiple": {
        "type": "boolean"
       },
       "inherited_from": {},
       "policy": {
        "type": "string"
       },
       "subdomain_policy": {
        "type": "string"
       },
       "pct": {
        "type": "integer"
       },
       "rua": {
        "type": "boolean"
       },
       "ruf": {
        "type": "boolean"
       },
       "adkim": {
        "type": "string"
       },
       "aspf": {
        "type": "string"
       }
      }
     },
     "dkim": {
      "type": "object",
      "properties": {
       "selectors_found": {
        "type": "array",
        "items": {}
       },
       "revoked_selectors": {
        "type": "integer"
       },
       "selectors_checked": {
        "type": "integer"
       },
       "note": {
        "type": "string"
       }
      }
     },
     "mta_sts": {
      "type": "object",
      "properties": {
       "present": {
        "type": "boolean"
       }
      }
     },
     "tls_rpt": {
      "type": "object",
      "properties": {
       "present": {
        "type": "boolean"
       }
      }
     },
     "bimi": {
      "type": "object",
      "properties": {
       "present": {
        "type": "boolean"
       }
      }
     },
     "grade": {
      "type": "string"
     }
    }
   },
   "registration": {
    "type": "object",
    "properties": {
     "available": {
      "type": "boolean"
     },
     "found": {
      "type": "boolean"
     },
     "source": {
      "type": "string"
     },
     "server": {
      "type": "string"
     },
     "domain": {
      "type": "string"
     },
     "registrar": {
      "type": "string"
     },
     "registrar_iana_id": {
      "type": "string"
     },
     "created": {
      "type": "string"
     },
     "expires": {
      "type": "string"
     },
     "age_days": {
      "type": "integer"
     },
     "expires_in_days": {
      "type": "integer"
     },
     "status": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "nameservers": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "dnssec_signed": {
      "type": "boolean"
     }
    }
   },
   "engine": {
    "type": "string"
   },
   "dns_queries": {
    "type": "integer"
   },
   "ms": {
    "type": "integer"
   }
  }
 },
 "pricing": {
  "model": "per_call",
  "amount": "0.002",
  "currency": "USDC",
  "rail": "x402"
 },
 "examples": [
  {
   "description": "GET /domaincheck/v1/domain, paid over x402 (USDC on Base); an unpaid call answers 402 with the terms.",
   "request": {
    "method": "GET",
    "url": "https://api.youraitools.co/domaincheck/v1/domain",
    "query": {
     "domain": "example.com"
    }
   },
   "response": {
    "input": "example.com",
    "domain": "example.com",
    "registrable_domain": "example.com",
    "public_suffix": "com",
    "tier": "full",
    "exists": true,
    "verdict": "low_risk",
    "score": 90,
    "flags": [
     {
      "id": "null_mx",
      "severity": "medium",
      "penalty": 10,
      "description": "Null MX (RFC 7505): the domain explicitly accepts no email."
     }
    ],
    "dns": {
     "a": [
      "172.66.147.243",
      "104.20.23.154"
     ],
     "aaaa": [
      "2606:4700:10::6814:179a",
      "2606:4700:10::ac42:93f3"
     ],
     "ns": [
      "hera.ns.cloudflare.com",
      "elliott.ns.cloudflare.com"
     ],
     "mx": [],
     "null_mx": true,
     "cname": [],
     "dnssec_validated": true,
     "caa": [],
     "txt_count": 2
    },
    "email": {
     "accepts_mail": false,
     "mx_provider": null,
     "spf": {
      "present": true,
      "record": "v=spf1 -all",
      "multiple": false,
      "all": "-all",
      "policy": "fail",
      "includes": [],
      "redirect": null,
      "dns_lookups_top_level": 0,
      "invalid_terms": []
     },
     "dmarc": {
      "present": true,
      "record": "v=DMARC1;p=reject;sp=reject;adkim=s;aspf=s",
      "multiple": false,
      "inherited_from": null,
      "policy": "reject",
      "subdomain_policy": "reject",
      "pct": 100,
      "rua": false,
      "ruf": false,
      "adkim": "s",
      "aspf": "s"
     },
     "dkim": {
      "selectors_found": [],
      "revoked_selectors": 10,
      "selectors_checked": 10,
      "note": "DKIM selectors cannot be enumerated; only common selectors are checked, so none found does not mean DKIM is absent."
     },
     "mta_sts": {
      "present": false
     },
     "tls_rpt": {
      "present": false
     },
     "bimi": {
      "present": false
     },
     "grade": "A"
    },
    "registration": {
     "available": true,
     "found": true,
     "source": "iana-bootstrap",
     "server": "https://rdap.verisign.com/com/v1/",
     "domain": "example.com",
     "registrar": "RESERVED-Internet Assigned Numbers Authority",
     "registrar_iana_id": "376",
     "created": "1995-08-14T04:00:00Z",
     "expires": "2027-08-13T04:00:00Z",
     "age_days": 11391,
     "expires_in_days": 295,
     "status": [
      "client delete prohibited",
      "client transfer prohibited",
      "client update prohibited"
     ],
     "nameservers": [
      "elliott.ns.cloudflare.com",
      "hera.ns.cloudflare.com"
     ],
     "dnssec_signed": true
    },
    "engine": "domaincheck-2026.10.21",
    "dns_queries": 20,
    "ms": 180
   }
  }
 ],
 "pact_mandate_template": null,
 "extensions": {
  "youraitools": {
   "endpoint": "https://api.youraitools.co/domaincheck/v1/domain",
   "network": "eip155:8453",
   "x402_versions": [
    2,
    1
   ],
   "mcp": "https://api.youraitools.co/domaincheck/mcp",
   "openapi": "https://api.youraitools.co/domaincheck/openapi.json"
  }
 }
}
