{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-email-pro-domain-native-schema.json",
  "title": "email.pro.DomainNative",
  "description": "Domain",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-email-pro-openapi.yml#/components/schemas/email.pro.DomainNative",
  "type": "object",
  "properties": {
    "cnameToCheck": {
      "type": [
        "string",
        "null"
      ],
      "description": "Cname that will be checked to prove the domain ownership",
      "readOnly": true
    },
    "dkimDiagnostics": {
      "allOf": [
        {
          "$ref": "#/$defs/email.pro.DomainDkimDiagnostics"
        }
      ],
      "description": "Dkim selectors and DNS configuration state",
      "nullable": true,
      "readOnly": true
    },
    "domainAliases": {
      "type": "array",
      "description": "List of aliases for this domain",
      "items": {
        "type": "string"
      },
      "readOnly": true
    },
    "domainValidated": {
      "type": "boolean",
      "description": "Domain validation status",
      "readOnly": true
    },
    "expectedAutodiscoverSRV": {
      "type": "string",
      "description": "Expected SRV record on this domain",
      "readOnly": true
    },
    "expectedMX": {
      "type": "array",
      "description": "Expected MX record(s) on this domain",
      "items": {
        "type": "string"
      },
      "readOnly": true
    },
    "expectedSPF": {
      "type": "string",
      "description": "Expected SPF record on this domain",
      "readOnly": true
    },
    "isAliasDomain": {
      "type": "boolean",
      "description": "Indicate if this domain is an alias for another domain",
      "readOnly": true
    },
    "mxIsValid": {
      "type": "boolean",
      "description": "If true your DNS MX configuration is valid",
      "readOnly": true
    },
    "mxRecord": {
      "type": [
        "array",
        "null"
      ],
      "description": "Domain MX record configured in DNS",
      "items": {
        "type": "string"
      },
      "readOnly": true
    },
    "mxRelay": {
      "type": [
        "string",
        "null"
      ],
      "description": "If specified, emails to not existing address will be redirected to that domain",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "Domain name",
      "readOnly": true
    },
    "spfIsValid": {
      "type": "boolean",
      "description": "SPF record validation passed",
      "readOnly": true
    },
    "spfRecord": {
      "type": [
        "array",
        "null"
      ],
      "description": "Domain's SPF record configured in the DNS",
      "items": {
        "type": "string"
      },
      "readOnly": true
    },
    "srvIsValid": {
      "type": "boolean",
      "description": "If true your DNS SRV record is valid",
      "readOnly": true
    },
    "srvRecord": {
      "type": [
        "array",
        "null"
      ],
      "description": "Domain SRV record configured in DNS",
      "items": {
        "type": "string"
      },
      "readOnly": true
    },
    "state": {
      "allOf": [
        {
          "$ref": "#/$defs/email.pro.ObjectStateEnum"
        }
      ],
      "description": "Domain state",
      "readOnly": true
    },
    "taskPendingId": {
      "type": "integer",
      "description": "Pending tasks id",
      "readOnly": true
    },
    "type": {
      "allOf": [
        {
          "$ref": "#/$defs/email.pro.DomainTypeEnum"
        }
      ],
      "description": "Domain type",
      "readOnly": true
    }
  },
  "$defs": {
    "email.pro.DomainDkimDiagnostics": {
      "type": "object",
      "description": "Dkim selectors and DNS configuration state",
      "properties": {
        "errorCode": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Error code related to misconfiguration of DKIM, if exists",
          "readOnly": true
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "DKIM misconfiguration description, if exists",
          "readOnly": true
        },
        "state": {
          "allOf": [
            {
              "$ref": "#/$defs/email.pro.DomainDkimDiagnosticsStateEnum"
            }
          ],
          "description": "State of DKIM selectors",
          "nullable": true,
          "readOnly": true
        }
      }
    },
    "email.pro.DomainDkimDiagnosticsStateEnum": {
      "type": "string",
      "description": "DKIM status",
      "enum": [
        "active",
        "disabled",
        "error",
        "inProgress",
        "toConfigure"
      ]
    },
    "email.pro.DomainTypeEnum": {
      "type": "string",
      "description": "Domain type",
      "enum": [
        "authoritative",
        "nonAuthoritative"
      ]
    },
    "email.pro.ObjectStateEnum": {
      "type": "string",
      "description": "Current object state",
      "enum": [
        "creating",
        "deleting",
        "ok",
        "reopening",
        "suspended",
        "suspending",
        "unknown"
      ]
    }
  }
}