Skip to content

Commit df6cb2a

Browse files
authored
feat(tem): add field to accept new headers in create email endpoint (#1970)
1 parent ab21447 commit df6cb2a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

api/tem/v1alpha1/tem_sdk.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,15 @@ type CreateEmailRequestAttachment struct {
393393
Content []byte `json:"content"`
394394
}
395395

396+
// CreateEmailRequestHeader: create email request header.
397+
type CreateEmailRequestHeader struct {
398+
// Key: email header key.
399+
Key string `json:"key"`
400+
401+
// Value: email header value.
402+
Value string `json:"value"`
403+
}
404+
396405
// Email: email.
397406
type Email struct {
398407
// ID: technical ID of the email.
@@ -585,6 +594,9 @@ type CreateEmailRequest struct {
585594

586595
// SendBefore: maximum date to deliver the email.
587596
SendBefore *time.Time `json:"send_before,omitempty"`
597+
598+
// AdditionalHeaders: array of additional headers as key-value.
599+
AdditionalHeaders []*CreateEmailRequestHeader `json:"additional_headers"`
588600
}
589601

590602
// CreateEmailResponse: create email response.

0 commit comments

Comments
 (0)