{
    "additionalProperties": true,
    "description": "Schema for a Mailgun message complained event",
    "properties": {
        "attachmentCount": {
            "description": "Number of attachments in attachment-x (where x is a number) fields.",
            "maximum": 65535,
            "type": "integer"
        },
        "campaignId": {
            "description": "The id of campaign triggering the event.",
            "type": "string"
        },
        "campaignName": {
            "description": "The name of campaign triggering the event.",
            "type": "string"
        },
        "domain": {
            "_format": "hostname",
            "description": "Domain that sent the original message.",
            "maxLength": 256,
            "type": "string"
        },
        "mailingList": {
            "description": "The address of mailing list the original message was sent to.",
            "type": "string"
        },
        "messageHeaders": {
            "description": "String list of all MIME headers of the original message dumped to a JSON string (order of headers preserved).",
            "type": "string"
        },
        "messageId": {
            "description": "The Id of the message that complained.",
            "maxLength": 1024,
            "type": "string"
        },
        "recipient": {
            "_format": "email",
            "description": "Recipient that complained.",
            "maxLength": 256,
            "type": "string"
        },
        "signature": {
            "description": "String with hexadecimal digits generate by HMAC algorithm (see securing webhooks).",
            "maxLength": 128,
            "type": "string"
        },
        "tag": {
            "description": "Message tag, if it was tagged. See Tagging.",
            "type": "string"
        },
        "timestamp": {
            "_format": "date-time",
            "description": "Timestamp in ISO8601 format.",
            "type": "string"
        },
        "token": {
            "description": "Randomly generated string with length 50 (see securing webhooks).",
            "maxLength": 50,
            "minLength": 50,
            "type": "string"
        }
    },
    "self": {
        "format": "jsonschema",
        "name": "message_complained",
        "vendor": "com.mailgun",
        "version": "1-0-0"
    },
    "type": "object"
}