@@ -458,6 +458,8 @@ type ListEmailsRequest struct {
458458 ProjectID * string `json:"-"`
459459 // DomainID: optional ID of the domain for which to list the emails
460460 DomainID * string `json:"-"`
461+ // MessageID: optional ID of the message for which to list the emails
462+ MessageID * string `json:"-"`
461463 // Since: optional, list emails created after this date
462464 Since * time.Time `json:"-"`
463465 // Until: optional, list emails created before this date
@@ -489,6 +491,7 @@ func (s *API) ListEmails(req *ListEmailsRequest, opts ...scw.RequestOption) (*Li
489491 parameter .AddToQuery (query , "page_size" , req .PageSize )
490492 parameter .AddToQuery (query , "project_id" , req .ProjectID )
491493 parameter .AddToQuery (query , "domain_id" , req .DomainID )
494+ parameter .AddToQuery (query , "message_id" , req .MessageID )
492495 parameter .AddToQuery (query , "since" , req .Since )
493496 parameter .AddToQuery (query , "until" , req .Until )
494497 parameter .AddToQuery (query , "mail_from" , req .MailFrom )
0 commit comments