Bounce

@Serializable
data class Bounce(val message: String, val subType: String? = null, val type: String? = null)

Represents a bounce notification from a Resend webhook event.

Resend sends subType and type in camelCase, unlike the snake_case envelope fields.

Constructors

Link copied to clipboard
constructor(message: String, subType: String? = null, type: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "message")
val message: String

the bounce message describing the reason for the bounce.

Link copied to clipboard
@SerialName(value = "subType")
val subType: String?

the bounce sub-type, such as Suppressed or MessageRejected, or null if not sent.

Link copied to clipboard
@SerialName(value = "type")
val type: String?

the bounce type, such as Permanent or Transient, or null if not sent.