{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/brevo/main/json-schema/brevo-domains-create-domain-response-200-schema.json",
  "title": "Domains_createDomain_Response_200",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brevo-domains-api-openapi.yml#/components/schemas/Domains_createDomain_Response_200",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64",
      "description": "ID of the Domain created"
    },
    "domain_name": {
      "type": "string",
      "description": "Domain name"
    },
    "domain_provider": {
      "type": "string",
      "description": "Detected domain provider"
    },
    "message": {
      "type": "string",
      "description": "Success message with next steps"
    },
    "dns_records": {
      "$ref": "#/$defs/SendersDomainsPostResponsesContentApplicationJsonSchemaDnsRecords",
      "description": "DNS records required for domain authentication"
    }
  },
  "required": [
    "id",
    "domain_name",
    "message"
  ],
  "$defs": {
    "SendersDomainsPostResponsesContentApplicationJsonSchemaDnsRecords": {
      "type": "object",
      "properties": {
        "brevo_code": {
          "$ref": "#/$defs/SendersDomainsPostResponsesContentApplicationJsonSchemaDnsRecordsBrevoCode",
          "description": "Brevo verification code record"
        },
        "dkim_record": {
          "$ref": "#/$defs/SendersDomainsPostResponsesContentApplicationJsonSchemaDnsRecordsDkimRecord",
          "description": "DKIM authentication record"
        },
        "dmarc_record": {
          "$ref": "#/$defs/SendersDomainsPostResponsesContentApplicationJsonSchemaDnsRecordsDmarcRecord",
          "description": "DMARC policy record"
        }
      },
      "required": [
        "brevo_code",
        "dkim_record",
        "dmarc_record"
      ],
      "description": "DNS records required for domain authentication",
      "title": "SendersDomainsPostResponsesContentApplicationJsonSchemaDnsRecords"
    },
    "SendersDomainsPostResponsesContentApplicationJsonSchemaDnsRecordsBrevoCode": {
      "type": "object",
      "properties": {
        "host_name": {
          "type": "string",
          "description": "DNS record hostname"
        },
        "type": {
          "type": "string",
          "description": "DNS record type"
        },
        "value": {
          "type": "string",
          "description": "DNS record value"
        },
        "status": {
          "type": "boolean",
          "description": "Whether the record is properly configured"
        }
      },
      "required": [
        "host_name",
        "type",
        "value",
        "status"
      ],
      "description": "Brevo verification code record",
      "title": "SendersDomainsPostResponsesContentApplicationJsonSchemaDnsRecordsBrevoCode"
    },
    "SendersDomainsPostResponsesContentApplicationJsonSchemaDnsRecordsDkimRecord": {
      "type": "object",
      "properties": {
        "host_name": {
          "type": "string",
          "description": "DNS record hostname"
        },
        "type": {
          "type": "string",
          "description": "DNS record type"
        },
        "value": {
          "type": "string",
          "description": "DNS record value"
        },
        "status": {
          "type": "boolean",
          "description": "Whether the record is properly configured"
        }
      },
      "required": [
        "host_name",
        "type",
        "value",
        "status"
      ],
      "description": "DKIM authentication record",
      "title": "SendersDomainsPostResponsesContentApplicationJsonSchemaDnsRecordsDkimRecord"
    },
    "SendersDomainsPostResponsesContentApplicationJsonSchemaDnsRecordsDmarcRecord": {
      "type": "object",
      "properties": {
        "host_name": {
          "type": "string",
          "description": "DNS record hostname"
        },
        "type": {
          "type": "string",
          "description": "DNS record type"
        },
        "value": {
          "type": "string",
          "description": "DNS record value"
        },
        "status": {
          "type": "boolean",
          "description": "Whether the record is properly configured"
        }
      },
      "required": [
        "host_name",
        "type",
        "value",
        "status"
      ],
      "description": "DMARC policy record",
      "title": "SendersDomainsPostResponsesContentApplicationJsonSchemaDnsRecordsDmarcRecord"
    }
  }
}