diff --git a/src/Resend.Webhooks/EmailEventData.cs b/src/Resend.Webhooks/EmailEventData.cs index 91cf50b..1b98874 100644 --- a/src/Resend.Webhooks/EmailEventData.cs +++ b/src/Resend.Webhooks/EmailEventData.cs @@ -14,6 +14,13 @@ public class EmailEventData : IWebhookData [JsonPropertyName( "email_id" )] public Guid EmailId { get; set; } + /// + /// RFC Message-ID header value for the email. + /// + [JsonPropertyName( "message_id" )] + [JsonIgnore( Condition = JsonIgnoreCondition.WhenWritingNull )] + public string? MessageId { get; set; } + /// [JsonPropertyName( "from" )] public EmailAddress From { get; set; } = default!; diff --git a/src/Resend/EmailReceipt.cs b/src/Resend/EmailReceipt.cs index bfdcb94..c2a357f 100644 --- a/src/Resend/EmailReceipt.cs +++ b/src/Resend/EmailReceipt.cs @@ -52,6 +52,13 @@ public class EmailReceipt [JsonPropertyName( "subject" )] public string Subject { get; set; } = default!; + /// + /// RFC Message-ID header value for the email. + /// + [JsonPropertyName( "message_id" )] + [JsonIgnore( Condition = JsonIgnoreCondition.WhenWritingNull )] + public string? MessageId { get; set; } + /// /// The plain text version of the message.