{
  "type" : "object",
  "id" : "urn:jsonschema:com:mailslurp:lib:dtos:webhook:payload:WebhookPayload",
  "properties" : {
    "messageId" : {
      "type" : "string",
      "required" : true,
      "description" : "Idempotent message ID. Store this ID locally or in a database to prevent message duplication."
    },
    "webhookId" : {
      "type" : "string",
      "required" : true,
      "description" : "ID of webhook entity being triggered",
      "format" : "uuid"
    },
    "webhookName" : {
      "type" : "string",
      "description" : "Name of the webhook being triggered"
    },
    "eventName" : {
      "type" : "string",
      "required" : true,
      "description" : "Name of the event type webhook is being triggered for.",
      "enum" : [ "EMAIL_RECEIVED", "NEW_AI_TRANSFORM_RESULT", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS", "NEW_GUEST_USER" ]
    },
    "inboxId" : {
      "type" : "string",
      "required" : true,
      "description" : "Id of the inbox",
      "format" : "uuid"
    },
    "emailId" : {
      "type" : "string",
      "required" : true,
      "description" : "ID of the email that was received. Use this ID for fetching the email with the `EmailController`.",
      "format" : "uuid"
    },
    "createdAt" : {
      "type" : "any",
      "required" : true,
      "description" : "Date time of event creation"
    },
    "to" : {
      "type" : "array",
      "required" : true,
      "description" : "List of `To` recipient email addresses that the email was addressed to. See recipients object for names.",
      "items" : {
        "type" : "string"
      }
    },
    "from" : {
      "type" : "string",
      "required" : true,
      "description" : "Who the email was sent from. An email address - see fromName for the sender name."
    },
    "cc" : {
      "type" : "array",
      "required" : true,
      "description" : "List of `CC` recipients email addresses that the email was addressed to. See recipients object for names.",
      "items" : {
        "type" : "string"
      }
    },
    "bcc" : {
      "type" : "array",
      "required" : true,
      "description" : "List of `BCC` recipients email addresses that the email was addressed to. See recipients object for names.",
      "items" : {
        "type" : "string"
      }
    },
    "subject" : {
      "type" : "string",
      "description" : "The subject line of the email message as specified by SMTP subject header"
    },
    "attachmentMetaDatas" : {
      "type" : "array",
      "required" : true,
      "description" : "List of attachment meta data objects if attachments present",
      "items" : {
        "type" : "object",
        "id" : "urn:jsonschema:com:mailslurp:lib:dtos:attachment:AttachmentMetaData",
        "properties" : {
          "name" : {
            "type" : "string",
            "required" : true
          },
          "contentType" : {
            "type" : "string",
            "required" : true
          },
          "contentLength" : {
            "type" : "integer",
            "required" : true
          },
          "id" : {
            "type" : "string",
            "required" : true
          },
          "contentId" : {
            "type" : "string"
          }
        }
      }
    }
  }
}