{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/responsys/json-schema/responsys-trigger-email-message-with-attachments-schema.json",
  "title": "Trigger Email Message With Attachments",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/responsys-attachments-api-openapi.yml#/components/schemas/triggerEmailMessageWithAttachments",
  "type": "object",
  "properties": {
    "recipientData": {
      "description": "Array of Recipients with Optional Data",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "recipient": {
            "type": "object",
            "description": "Information about the Recipient.",
            "properties": {
              "emailAddress": {
                "type": "string",
                "description": "Recipient's Email Address."
              },
              "recipientId": {
                "type": "number",
                "description": "Recipient's RIID."
              },
              "mobileNumber": {
                "type": "string",
                "description": "Recipient's Mobile Number."
              },
              "customerId": {
                "type": "string",
                "description": "Recipient's Customer ID."
              },
              "emailMD5Hash": {
                "type": "string",
                "description": "Recipient's Email's MD5 Hash."
              },
              "emailSHA256Hash": {
                "type": "string",
                "description": "Recipient's Email's SHA256 Hash."
              }
            },
            "required": [
              "customerId",
              "emailAddress",
              "recipientId",
              "mobileNumber",
              "emailMD5Hash",
              "emailSHA256Hash"
            ]
          },
          "optionalData": {
            "type": "array",
            "description": "Array of optional data containing name value pairs.",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [
                "name",
                "value"
              ]
            }
          },
          "attachmentData": {
            "type": "array",
            "description": "Attachment data containing array of pairs of file name and content value.",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [
                "name",
                "value"
              ]
            }
          }
        },
        "required": [
          "recipient",
          "optionalData",
          "attachmentData"
        ]
      }
    }
  },
  "required": [
    "recipientData"
  ]
}