{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/brevo/main/json-schema/brevo-send-report-schema.json",
  "title": "sendReport",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brevo-sms-campaigns-api-openapi.yml#/components/schemas/sendReport",
  "type": "object",
  "properties": {
    "email": {
      "$ref": "#/$defs/SendReportEmail",
      "description": "Custom attributes for the report email."
    },
    "language": {
      "$ref": "#/$defs/SendReportLanguage",
      "default": "fr",
      "description": "Language of email content for campaign report sending."
    }
  },
  "required": [
    "email"
  ],
  "$defs": {
    "SendReportEmail": {
      "type": "object",
      "properties": {
        "body": {
          "type": "string",
          "description": "Custom text message to be presented in the report email."
        },
        "to": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "email"
          },
          "description": "Email addresses of the recipients"
        }
      },
      "required": [
        "body",
        "to"
      ],
      "description": "Custom attributes for the report email.",
      "title": "SendReportEmail"
    },
    "SendReportLanguage": {
      "type": "string",
      "enum": [
        "fr",
        "es",
        "pt",
        "it",
        "de",
        "en"
      ],
      "default": "fr",
      "description": "Language of email content for campaign report sending.",
      "title": "SendReportLanguage"
    }
  }
}