{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-email-exchange-domain-schema.json",
  "title": "email.exchange.Domain",
  "description": "Exchange domain",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-email-exchange-openapi.yml#/components/schemas/email.exchange.Domain",
  "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.exchange.DomainDkimDiagnostics"
        }
      ],
      "description": "DKIM diagnostics on this domain",
      "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
    },
    "main": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "If true this is an organization (Exchange 2010 only)",
      "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"
    },
    "name": {
      "type": "string",
      "description": "Domain name",
      "readOnly": true
    },
    "organization2010": {
      "type": [
        "string",
        "null"
      ],
      "description": "If specified, indicates to which organization this domain belongs (Exchange 2010 only)",
      "readOnly": true
    },
    "sbrDefault": {
      "type": [
        "string",
        "null"
      ],
      "description": "Relay domain address that will be used to all newly created accounts",
      "readOnly": true
    },
    "sendConnectorIdDefault": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Send connector id that will be used to all newly created accounts",
      "readOnly": true
    },
    "spfIsValid": {
      "type": "boolean",
      "description": "Wether your SPF record is valid",
      "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.exchange.ObjectStateEnum"
        }
      ],
      "description": "Domain state",
      "readOnly": true
    },
    "taskPendingId": {
      "type": "integer",
      "description": "Pending taks id",
      "readOnly": true
    },
    "type": {
      "allOf": [
        {
          "$ref": "#/$defs/email.exchange.DomainTypeEnum"
        }
      ],
      "description": "Domain type"
    }
  },
  "$defs": {
    "email.exchange.DomainDkimDiagnostics": {
      "type": "object",
      "description": "DKIM diagnostics information for domain",
      "properties": {
        "errorCode": {
          "type": [
            "integer",
            "null"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "$ref": "#/$defs/email.exchange.DomainDkimDiagnosticsStateEnum"
        }
      }
    },
    "email.exchange.DomainDkimDiagnosticsStateEnum": {
      "type": "string",
      "description": "Domain DKIM state",
      "enum": [
        "active",
        "disabled",
        "error",
        "inProgress",
        "toConfigure"
      ]
    },
    "email.exchange.DomainTypeEnum": {
      "type": "string",
      "description": "Domain type",
      "enum": [
        "authoritative",
        "nonAuthoritative"
      ]
    },
    "email.exchange.ObjectStateEnum": {
      "type": "string",
      "description": "Current object state",
      "enum": [
        "creating",
        "deleting",
        "internalMigration",
        "ok",
        "reopening",
        "suspended",
        "suspending"
      ]
    }
  }
}