{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ses/json-schema/amazon-ses-send-bounce-request-schema.json",
  "title": "SendBounceRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ses-operations-api-openapi.yml#/components/schemas/SendBounceRequest",
  "type": "object",
  "properties": {
    "OriginalMessageId": {
      "type": "string",
      "description": "The message ID of the message to be bounced."
    },
    "BounceSender": {
      "type": "string",
      "description": "The address to use in the \"From\" header of the bounce message. This must be an identity that you have verified with Amazon SES."
    },
    "Explanation": {
      "type": "string",
      "description": "Human-readable text for the bounce message to explain the failure. If not specified, the text is auto-generated based on the bounced recipient information."
    },
    "MessageDsn": {
      "$ref": "#/$defs/MessageDsn"
    },
    "BouncedRecipientInfoList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BouncedRecipientInfo"
      },
      "description": "A list of recipients of the bounced message, including the information required to create the Delivery Status Notifications (DSNs) for the recipients. You must specify at least one BouncedRecipientInfo in the list."
    },
    "BounceSenderArn": {
      "type": "string",
      "description": "This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the address in the \"From\" header of the bounce. For more information about sending authorization, see the Amazon SES Developer Guide."
    }
  },
  "required": [
    "OriginalMessageId",
    "BounceSender",
    "BouncedRecipientInfoList"
  ],
  "$defs": {
    "BouncedRecipientInfo": {
      "type": "object",
      "properties": {
        "Recipient": {
          "type": "string",
          "description": "The email address of the recipient of the bounced email."
        },
        "RecipientArn": {
          "type": "string",
          "description": "This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to receive email for the recipient of the bounced email. For more information about sending authorization, see the Amazon SES Developer Guide."
        },
        "BounceType": {
          "type": "string",
          "enum": [
            "DoesNotExist",
            "MessageTooLarge",
            "ExceededQuota",
            "ContentRejected",
            "Undefined",
            "TemporaryFailure"
          ],
          "description": "The reason for the bounce. You must provide either this parameter or RecipientDsnFields."
        },
        "RecipientDsnFields": {
          "$ref": "#/$defs/RecipientDsnFields"
        }
      },
      "required": [
        "Recipient"
      ]
    },
    "ExtensionField": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only."
        },
        "Value": {
          "type": "string",
          "description": "The value of the header to add. Must contain 2048 characters or fewer, and must not contain newline characters (\"\\r\" or \"\\n\")."
        }
      },
      "required": [
        "Name",
        "Value"
      ]
    },
    "MessageDsn": {
      "type": "object",
      "properties": {
        "ReportingMta": {
          "type": "string",
          "description": "The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name). The default value is dns; inbound-smtp.[region].amazonaws.com."
        },
        "ArrivalDate": {
          "type": "string",
          "format": "date-time",
          "description": "When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format."
        },
        "ExtensionFields": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ExtensionField"
          },
          "description": "Additional X-headers to include in the DSN."
        }
      },
      "required": [
        "ReportingMta"
      ]
    },
    "RecipientDsnFields": {
      "type": "object",
      "properties": {
        "FinalRecipient": {
          "type": "string",
          "description": "The email address that the message was ultimately delivered to. This corresponds to the Final-Recipient in the DSN. If not specified, FinalRecipient is set to the Recipient specified in the BouncedRecipientInfo structure. Either FinalRecipient or the recipient in BouncedRecipientInfo must be a recipient of the original bounced message. Do not prepend the FinalRecipient email address with rfc 822;, as described in RFC 3798."
        },
        "Action": {
          "type": "string",
          "enum": [
            "failed",
            "delayed",
            "delivered",
            "relayed",
            "expanded"
          ],
          "description": "The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address. This is required by RFC 3464."
        },
        "RemoteMta": {
          "type": "string",
          "description": "The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name). This parameter typically applies only to propagating synchronous bounces."
        },
        "Status": {
          "type": "string",
          "description": "The status code that indicates what went wrong. This is required by RFC 3464."
        },
        "DiagnosticCode": {
          "type": "string",
          "description": "An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 for the correct formatting of this parameter."
        },
        "LastAttemptDate": {
          "type": "string",
          "format": "date-time",
          "description": "The time the final delivery attempt was made, in RFC 822 date-time format."
        },
        "ExtensionFields": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ExtensionField"
          },
          "description": "Additional X-headers to include in the DSN."
        }
      },
      "required": [
        "Action",
        "Status"
      ]
    }
  }
}