{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usemektup-com/json-schema/usemektup-com-create-domain-result-schema.json",
  "title": "CreateDomainResult",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usemektup-com-openapi.yaml#/components/schemas/CreateDomainResult",
  "type": "object",
  "properties": {
    "domain": {
      "$ref": "#/$defs/Domain"
    },
    "dkimKeyPath": {
      "type": "string"
    },
    "records": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DnsRecord"
      }
    },
    "recommendation": {
      "$ref": "#/$defs/Recommendation"
    }
  },
  "$defs": {
    "DnsRecord": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "MX",
            "TXT"
          ]
        },
        "host": {
          "type": "string"
        },
        "value": {
          "type": "string"
        },
        "priority": {
          "type": "integer"
        },
        "label": {
          "type": "string"
        }
      }
    },
    "Domain": {
      "type": "object",
      "properties": {
        "domain": {
          "type": "string"
        },
        "verified": {
          "type": "boolean"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "Recommendation": {
      "type": "object",
      "properties": {
        "nameservers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "detectedHost": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "cloudflare",
            "simply.com",
            "godaddy",
            "route53",
            "vercel",
            null
          ]
        },
        "action": {
          "type": "string",
          "enum": [
            "delegate",
            "push-to-known-host",
            "manual"
          ]
        },
        "note": {
          "type": "string",
          "description": "Present only if NS lookup failed"
        }
      }
    }
  }
}