{
    "additionalProperties": true,
    "description": "Schema for a Mailgun message bounced 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"
        },
        "code": {
            "description": "SMTP bounce error code in form (X.X.X).",
            "maxLength": 8,
            "type": "string"
        },
        "domain": {
            "_format": "hostname",
            "description": "Domain that sent the original message.",
            "maxLength": 256,
            "type": "string"
        },
        "error": {
            "description": "SMTP bounce error string.",
            "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 bounced.",
            "maxLength": 1024,
            "type": "string"
        },
        "notification": {
            "description": "Detailed reason for bouncing (optional).",
            "type": "string"
        },
        "recipient": {
            "_format": "email",
            "description": "Recipient who could not be reached.",
            "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"
        },
        "xMailgunSid": {
            "description": "Mailgun identifying header.",
            "type": "string"
        }
    },
    "self": {
        "format": "jsonschema",
        "name": "message_bounced",
        "vendor": "com.mailgun",
        "version": "1-0-0"
    },
    "type": "object"
}