Versions in this module Expand all Collapse all v0 v0.1.1 Oct 22, 2026 Changes in this version + const Version + func Bool(b bool) *bool + func Int(n int64) *int64 + func IsForbidden(err error) bool + func IsNotFound(err error) bool + func IsRateLimited(err error) bool + func IsUnauthorized(err error) bool + func String(s string) *string + func VerifyWebhookSignature(payload []byte, signature, secret string) bool + type APIError struct + Body []byte + Header http.Header + Message string + StatusCode int + func (e *APIError) Error() string + type APIKey struct + CreatedAt string + ExpiresAt Nullable[string] + GrantExpiresAt Nullable[string] + ID string + LastUsedAt Nullable[string] + Name string + Prefix string + RevokedAt Nullable[string] + Scopes []string + type APIKeyCreated struct + CreatedAt *string + ID *string + Key *string + Name *string + Prefix *string + Scopes []string + type APIKeysService struct + func (s *APIKeysService) Create(ctx context.Context, params *CreateAPIKeyRequest, opts ...RequestOption) (*APIKeyCreated, error) + func (s *APIKeysService) List(ctx context.Context, opts ...RequestOption) (*ListAPIKeysResponse, error) + func (s *APIKeysService) Revoke(ctx context.Context, id string, opts ...RequestOption) (*RevokeAPIKeyResponse, error) + func (s *APIKeysService) Update(ctx context.Context, id string, params *UpdateAPIKeyParams, ...) (*UpdateAPIKeyResponse, error) + type AccountService struct + func (s *AccountService) Me(ctx context.Context, opts ...RequestOption) (*GetCapabilitiesResponse, error) + func (s *AccountService) Usage(ctx context.Context, opts ...RequestOption) (*Usage, error) + type AddDomainRequest struct + Domain string + type AddSuppressionsBatchParams struct + Emails []string + type Analytics struct + AwaitingReport *int64 + BounceRate *float64 + Bounced *int64 + Canceled *int64 + Complained *int64 + Daily []AnalyticsDailyItem + Delivered *int64 + DeliveryRate *float64 + Failed *int64 + Pending *int64 + Sent *int64 + ThisWeek *int64 + Today *int64 + Total *int64 + Usage *AnalyticsUsage + Window *AnalyticsWindow + type AnalyticsDailyItem struct + Bounced *int64 + Date *string + Delivered *int64 + Sent *int64 + type AnalyticsService struct + func (s *AnalyticsService) Get(ctx context.Context, query *GetAnalyticsQuery, opts ...RequestOption) (*Analytics, error) + type AnalyticsUsage struct + Bounced *int64 + Delivered *int64 + Limit *int64 + Period *string + Sent *int64 + Tier *string + type AnalyticsWindow struct + Complete *bool + Counts *AnalyticsWindowCounts + Days *int64 + Domain Nullable[string] + From *string + RatesPercent *AnalyticsWindowRatesPercent + To *string + type AnalyticsWindowCounts struct + Complained *int64 + Delivered *int64 + Failed *int64 + HardBounced *int64 + Sent *int64 + SoftBounced *int64 + type AnalyticsWindowRatesPercent struct + Complained *float64 + Delivered *float64 + HardBounced *float64 + SoftBounced *float64 + type ApproveAllPendingSignupsParams struct + Q *string + type ApproveAllPendingSignupsResponse struct + Approved int64 + Remaining int64 + Skipped int64 + SkippedTor int64 + SkippedUndeliverable int64 + type ApprovePendingSignupResponse struct + AlreadyConfirmed *bool + Approved bool + ContactID *string + Email string + type BatchSendResponse struct + BatchID string + Count int64 + Data []BatchSendResponseDataItem + Emails []BatchSendResponseEmailsItem + type BatchSendResponseDataItem struct + ID string + type BatchSendResponseEmailsItem struct + ID string + Status string + type Broadcast struct + ArchivedAt Nullable[string] + Audience *string + AudienceMeta map[string]any + CanceledAt Nullable[string] + CreatedAt string + ExpectedRecipients Nullable[int64] + FanoutCompletedAt Nullable[string] + From Nullable[string] + HTML Nullable[string] + ID string + Markdown Nullable[string] + Metrics *BroadcastMetrics + Name string + Object *string + PauseReason Nullable[string] + PausedAt Nullable[string] + PreviewText Nullable[string] + QueuedAt Nullable[string] + RecipientCount *int64 + ReplyTo Nullable[string] + ScheduledAt Nullable[string] + SegmentID Nullable[string] + SendOverMinutes *int64 + SentAt Nullable[string] + Status string + Subject Nullable[string] + Text Nullable[string] + TrackClicks *bool + TrackOpens *bool + UpdatedAt string + type BroadcastDetail struct + ArchivedAt Nullable[string] + Audience *string + AudienceMeta map[string]any + CanceledAt Nullable[string] + CreatedAt string + ExpectedRecipients Nullable[int64] + FanoutCompletedAt Nullable[string] + From Nullable[string] + HTML Nullable[string] + ID string + Links []BroadcastDetailLinksItem + Markdown Nullable[string] + Metrics *BroadcastMetrics + Name string + Object *string + PauseReason Nullable[string] + PausedAt Nullable[string] + PreviewText Nullable[string] + QueuedAt Nullable[string] + RecipientCount *int64 + Recipients []BroadcastRecipientDetail + ReplyTo Nullable[string] + ScheduledAt Nullable[string] + SegmentID Nullable[string] + SendOverMinutes *int64 + SentAt Nullable[string] + Status string + Subject Nullable[string] + Text Nullable[string] + TrackClicks *bool + TrackOpens *bool + UpdatedAt string + type BroadcastDetailLinksItem struct + Clicks int64 + URL string + type BroadcastList struct + ArchivedTotal *int64 + Data []Broadcast + FilteredTotal *int64 + HasMore bool + Object string + Page *int64 + PageSize *int64 + StatusCounts map[string]int64 + Total *int64 + type BroadcastMetrics struct + BounceRate *float64 + Bounced *int64 + Canceled *int64 + ClickRate *float64 + Clicked *int64 + Complained *int64 + Delivered *int64 + DeliveryRate *float64 + Failed *int64 + HandedOff *int64 + OpenRate *float64 + Opened *int64 + Queued *int64 + Sending *int64 + Sent *int64 + Skipped *int64 + Total *int64 + UnsubscribeRate *float64 + Unsubscribed *int64 + type BroadcastRecipientDetail struct + BouncedAt Nullable[string] + ClickedAt Nullable[string] + ComplainedAt Nullable[string] + DeliveredAt Nullable[string] + Email string + EmailID Nullable[string] + ErrorMessage Nullable[string] + Events []BroadcastRecipientDetailEventsItem + FailedAt Nullable[string] + FirstName Nullable[string] + ID string + LastName Nullable[string] + OpenedAt Nullable[string] + QueuedAt Nullable[string] + SentAt Nullable[string] + SkipReason Nullable[string] + Status string + UnsubscribedAt Nullable[string] + type BroadcastRecipientDetailEventsItem struct + CreatedAt string + ID string + Metadata map[string]any + Type string + type BroadcastSendResult struct + ArchivedAt Nullable[string] + Audience *string + AudienceMeta map[string]any + BatchID string + CanceledAt Nullable[string] + CreatedAt string + ExpectedRecipients Nullable[int64] + FanoutCompletedAt Nullable[string] + From Nullable[string] + HTML Nullable[string] + ID string + Markdown Nullable[string] + Metrics *BroadcastMetrics + Name string + Object string + PauseReason Nullable[string] + PausedAt Nullable[string] + PreviewText Nullable[string] + QueuedAt Nullable[string] + RecipientCount *int64 + Recipients int64 + ReplyTo Nullable[string] + ScheduledAt Nullable[string] + SegmentID Nullable[string] + SendOverMinutes *int64 + SentAt Nullable[string] + Skipped int64 + Status string + Subject Nullable[string] + Text Nullable[string] + TrackClicks *bool + TrackOpens *bool + UpdatedAt string + type BroadcastsRecipientsService struct + func (s *BroadcastsRecipientsService) List(ctx context.Context, id string, query *ListBroadcastRecipientsQuery, ...) (map[string]any, error) + type BroadcastsService struct + Recipients *BroadcastsRecipientsService + func (s *BroadcastsService) Archive(ctx context.Context, id string, opts ...RequestOption) (*Broadcast, error) + func (s *BroadcastsService) Cancel(ctx context.Context, id string, opts ...RequestOption) (*Broadcast, error) + func (s *BroadcastsService) Create(ctx context.Context, params *CreateBroadcastRequest, opts ...RequestOption) (*Broadcast, error) + func (s *BroadcastsService) Delete(ctx context.Context, id string, opts ...RequestOption) (*DeletedObject, error) + func (s *BroadcastsService) Duplicate(ctx context.Context, id string, opts ...RequestOption) (*DuplicateBroadcastResponse, error) + func (s *BroadcastsService) Get(ctx context.Context, id string, opts ...RequestOption) (*BroadcastDetail, error) + func (s *BroadcastsService) GetAudience(ctx context.Context, query *GetBroadcastAudienceQuery, opts ...RequestOption) (map[string]any, error) + func (s *BroadcastsService) List(ctx context.Context, query *ListBroadcastsQuery, opts ...RequestOption) (*BroadcastList, error) + func (s *BroadcastsService) ListClickedLinks(ctx context.Context, id string, opts ...RequestOption) (*ListBroadcastClickedLinksResponse, error) + func (s *BroadcastsService) Send(ctx context.Context, id string, params *SendBroadcastParams, ...) (*BroadcastSendResult, error) + func (s *BroadcastsService) SendTest(ctx context.Context, id string, params *SendBroadcastTestParams, ...) (*SendBroadcastTestResponse, error) + func (s *BroadcastsService) Unarchive(ctx context.Context, id string, opts ...RequestOption) (*Broadcast, error) + func (s *BroadcastsService) Update(ctx context.Context, id string, params *UpdateBroadcastRequest, ...) (*Broadcast, error) + type CancelEmailResponse struct + ID string + Object string + type ClaimDomainParams struct + Domain string + type ClaimDomainResponse struct + CreatedAt *string + Domain *string + ID *string + Message *string + Status *string + type Client struct + func NewClient(opts ...Option) *Client + type ConnectionError struct + Err error + Timeout bool + func (e *ConnectionError) Error() string + func (e *ConnectionError) Unwrap() error + type Contact struct + CreatedAt string + Disposable bool + Email string + FirstName Nullable[string] + ID string + LastName Nullable[string] + Object *string + Properties map[string]any + Segments []ContactSegmentsItem + Suppressed bool + Suppression Nullable[ContactSuppression] + Unsubscribed bool + type ContactBatchCreated struct + Data []ContactSummary + HasMore bool + Object string + type ContactCreated struct + ID string + Object string + type ContactDeleted struct + Contact string + Deleted bool + Object string + type ContactExport struct + Data []ContactListItem + ExportedAt string + HasMore bool + Object string + type ContactList struct + ContactLimit *int64 + ContactLimitBase *int64 + Data []ContactListItem + Disposable *int64 + FilteredTotal *int64 + HasMore bool + New30d *int64 + New7d *int64 + Object string + Page *int64 + PageSize *int64 + Subscribed *int64 + Tier *string + Total *int64 + Unsubscribed *int64 + type ContactListItem struct + CreatedAt string + Disposable bool + Email string + FirstName Nullable[string] + ID string + LastName Nullable[string] + Properties map[string]any + Segments []ContactListItemSegmentsItem + Suppressed bool + Suppression *ContactSuppression + Unsubscribed bool + type ContactListItemSegmentsItem struct + Color *string + ID string + Name string + type ContactPropertiesService struct + func (s *ContactPropertiesService) Create(ctx context.Context, params *CreateContactPropertyParams, ...) (*CreateContactPropertyResponse, error) + func (s *ContactPropertiesService) Delete(ctx context.Context, id string, opts ...RequestOption) (*Success, error) + func (s *ContactPropertiesService) Get(ctx context.Context, id string, opts ...RequestOption) (*GetContactPropertyResponse, error) + func (s *ContactPropertiesService) List(ctx context.Context, opts ...RequestOption) (*ListContactPropertiesResponse, error) + func (s *ContactPropertiesService) Update(ctx context.Context, id string, params *UpdateContactPropertyParams, ...) (*UpdateContactPropertyResponse, error) + type ContactProperty struct + CreatedAt string + FallbackValue any + ID string + Key string + Type string + type ContactSegmentsItem struct + Color *string + ID string + Name string + type ContactSummary struct + CreatedAt string + Disposable bool + Email string + FirstName Nullable[string] + ID string + LastName Nullable[string] + Segments []ContactSummarySegmentsItem + Suppressed bool + Unsubscribed bool + type ContactSummarySegmentsItem struct + Color *string + ID string + Name string + type ContactSuppression struct + CreatedAt string + ID string + Reason string + Scope string + Source string + type ContactsSegmentsService struct + func (s *ContactsSegmentsService) Add(ctx context.Context, id string, segmentID string, opts ...RequestOption) (map[string]any, error) + func (s *ContactsSegmentsService) List(ctx context.Context, id string, opts ...RequestOption) (map[string]any, error) + func (s *ContactsSegmentsService) Remove(ctx context.Context, id string, segmentID string, opts ...RequestOption) (map[string]any, error) + type ContactsService struct + Segments *ContactsSegmentsService + func (s *ContactsService) Create(ctx context.Context, params *CreateContactParams, opts ...RequestOption) (*CreateContactResponse, error) + func (s *ContactsService) Delete(ctx context.Context, id string, opts ...RequestOption) (*ContactDeleted, error) + func (s *ContactsService) DeleteMany(ctx context.Context, params *DeleteContactsParams, opts ...RequestOption) (map[string]any, error) + func (s *ContactsService) Export(ctx context.Context, query *ExportContactsQuery, opts ...RequestOption) (*ContactExport, error) + func (s *ContactsService) Get(ctx context.Context, id string, opts ...RequestOption) (*Contact, error) + func (s *ContactsService) List(ctx context.Context, query *ListContactsQuery, opts ...RequestOption) (*ContactList, error) + func (s *ContactsService) Update(ctx context.Context, id string, params *UpdateContactRequest, ...) (*ContactCreated, error) + type CreateAPIKeyRequest struct + Name string + Scopes []string + type CreateBroadcastRequest struct + Audience *string + AudienceMeta map[string]any + From *string + HTML Nullable[string] + Markdown *string + Name *string + PreviewText Nullable[string] + ReplyTo Nullable[string] + SegmentID *string + SendOverMinutes Nullable[int64] + Subject *string + TemplateID *string + Text Nullable[string] + TrackClicks *bool + TrackOpens *bool + type CreateContactBatchRequest struct + Contacts []CreateContactRequest + SegmentIDs []string + type CreateContactParams struct + Contacts []CreateContactRequest + Email *string + FirstName *string + FirstName_ *string + LastName *string + LastName_ *string + Properties map[string]any + SegmentIDs []string + Unsubscribed *bool + type CreateContactPropertyParams struct + FallbackValue Nullable[any] + Key string + Type string + type CreateContactPropertyResponse struct + ContactProperty ContactProperty + type CreateContactRequest struct + Email string + FirstName *string + FirstName_ *string + LastName *string + LastName_ *string + Properties map[string]any + SegmentIDs []string + Unsubscribed *bool + type CreateContactResponse struct + Data []ContactSummary + HasMore *bool + ID *string + Object string + type CreateInboxDraftParams struct + Bcc Nullable[StringList] + Cc Nullable[StringList] + HTML Nullable[string] + ReplyToEmailID *string + Subject Nullable[string] + Text Nullable[string] + ThreadID *string + To Nullable[StringList] + type CreateInboxLabelParams struct + Color *string + Name string + type CreateInboxParams struct + EmailAddress string + Forwarding *bool + FromName *string + Name *string + type CreateLinkDomainRequest struct + Hostname string + type CreateSegmentRequest struct + Color Nullable[string] + Description Nullable[string] + Name string + type CreateSignupFormRequest struct + Active *bool + BlockDisposableEmails *bool + ButtonColor *string + ButtonText *string + CaptchaEnabled *bool + CaptchaProvider *string + ConfirmationEmailFrom Nullable[string] + DoubleOptIn *bool + Fields []string + Name string + RedirectURL Nullable[string] + SuccessMessage *string + TurnstileSecretKey Nullable[string] + TurnstileSiteKey Nullable[string] + WelcomeEmailEnabled *bool + WelcomeEmailFrom Nullable[string] + WelcomeEmailMarkdown Nullable[string] + WelcomeEmailSubject Nullable[string] + type CreateSuppressionRequest struct + DiagnosticCode *string + Email string + Reason *string + Scope *string + type CreateTeamInviteParams struct + Email string + Role *string + type CreateTemplateRequest struct + Alias Nullable[string] + Category Nullable[string] + From Nullable[string] + HTML *string + Markdown Nullable[string] + Name string + PreviewText Nullable[string] + ReplyTo Nullable[StringList] + Subject Nullable[string] + Text Nullable[string] + Variables []TemplateVariable + type CreateWebhookRequest struct + Events []string + Format *string + URL string + type DNSRecord struct + ActualValue Nullable[string] + ActualValue_ Nullable[string] + Category *string + LiveCheck Nullable[string] + LiveCheck_ Nullable[string] + Name string + Priority Nullable[int64] + Purpose *string + Status *string + Ttl *string + Type string + Value string + type DeleteContactsParams struct + Confirm *string + IDs []string + Status *string + type DeleteInboxDraftResponse struct + Deleted *bool + ID *string + Object *string + type DeleteInboxLabelResponse struct + Deleted *bool + ID *string + Object *string + type DeleteInboxResponse struct + Deleted *bool + ID *string + Object *string + type DeleteInboxThreadResponse struct + Deleted *bool + ID *string + Object *string + type DeleteReceivedEmailResponse struct + Deleted *bool + ID *string + Object *string + type DeletedObject struct + Deleted *bool + ID *string + Object *string + type Domain struct + CreatedAt string + DKIMStatus *string + DMARCStatus *string + DNSRecords []DNSRecord + Domain string + Events []DomainEventsItem + ID string + LastCheckedAt Nullable[string] + MailFromDomain Nullable[string] + MailFromStatus *string + Name *string + NextAutoCheckAt Nullable[string] + Provider *DomainProvider + Receiving *DomainReceiving + Region *string + SPFStatus *string + Status string + VerificationMessage *string + VerificationPhase *string + VerifiedAt Nullable[string] + type DomainEventsItem struct + At Nullable[string] + Done *bool + Key *string + Label *string + type DomainListItem struct + CreatedAt string + DKIMStatus string + DMARCStatus string + Domain string + ID string + Name *string + ReceivingEnabled bool + ReceivingStatus string + SPFStatus string + Status string + VerifiedAt *string + type DomainProvider struct + Badge *string + ID *string + Name *string + Zone *string + type DomainReceiving struct + CompetingMX []string + Enabled *bool + MXRecord *DomainReceivingMXRecord + PublishedMX []DomainReceivingPublishedMXItem + Status *string + type DomainReceivingMXRecord struct + Priority *int64 + Type *string + Value *string + type DomainReceivingPublishedMXItem struct + Exchange *string + Priority *int64 + type DomainsService struct + func (s *DomainsService) Claim(ctx context.Context, params *ClaimDomainParams, opts ...RequestOption) (*ClaimDomainResponse, error) + func (s *DomainsService) ConnectCloudflare(ctx context.Context, id string, opts ...RequestOption) (map[string]any, error) + func (s *DomainsService) ConnectCloudflareInbound(ctx context.Context, id string, opts ...RequestOption) (map[string]any, error) + func (s *DomainsService) Create(ctx context.Context, params *AddDomainRequest, opts ...RequestOption) (*Domain, error) + func (s *DomainsService) Delete(ctx context.Context, id string, opts ...RequestOption) (map[string]any, error) + func (s *DomainsService) Get(ctx context.Context, id string, opts ...RequestOption) (*Domain, error) + func (s *DomainsService) GetClaimRecord(ctx context.Context, query *GetDomainClaimRecordQuery, opts ...RequestOption) (*GetDomainClaimRecordResponse, error) + func (s *DomainsService) List(ctx context.Context, opts ...RequestOption) (*ListDomainsResponse, error) + func (s *DomainsService) Update(ctx context.Context, id string, params *UpdateDomainReceivingParams, ...) (*UpdateDomainReceivingResponse, error) + func (s *DomainsService) Verify(ctx context.Context, id string, opts ...RequestOption) (*VerifyDomainResponse, error) + type DuplicateBroadcastResponse struct + Broadcast Broadcast + type Email struct + Bcc []string + BodyClearedAt *string + BouncedAt *string + Category string + Cc []string + ClickedAt *string + CreatedAt string + DeliveredAt *string + ErrorMessage *string + Events []EmailEventsItem + From string + HTML *string + ID string + LastEvent string + MessageID *string + OpenedAt *string + ReplyTo *string + SentAt *string + SesMessageID *string + Source string + Status string + Subject string + Tags []EmailTagsItem + Text *string + To []string + UnsubscribedAt *string + type EmailEventsItem struct + Metadata map[string]any + Timestamp string + Type string + type EmailList struct + Data []EmailSummary + HasMore bool + Limit int64 + Object string + Page *int64 + Total int64 + type EmailSummary struct + BouncedAt *string + Category string + ClickedAt *string + CreatedAt string + DeliveredAt *string + ErrorMessage *string + From string + ID string + OpenedAt *string + SentAt *string + Source string + Status string + Subject string + To []string + type EmailTagsItem struct + Name string + Value string + type EmailsReceivingAttachmentsService struct + func (s *EmailsReceivingAttachmentsService) Get(ctx context.Context, id string, attachmentID string, opts ...RequestOption) (*ReceivedAttachment, error) + func (s *EmailsReceivingAttachmentsService) List(ctx context.Context, id string, opts ...RequestOption) (*ListReceivedEmailAttachmentsResponse, error) + type EmailsReceivingService struct + Attachments *EmailsReceivingAttachmentsService + func (s *EmailsReceivingService) Delete(ctx context.Context, id string, opts ...RequestOption) (*DeleteReceivedEmailResponse, error) + func (s *EmailsReceivingService) Get(ctx context.Context, id string, opts ...RequestOption) (*ReceivedEmail, error) + func (s *EmailsReceivingService) List(ctx context.Context, query *ListReceivedEmailsQuery, opts ...RequestOption) (*ListReceivedEmailsResponse, error) + func (s *EmailsReceivingService) ListAll(ctx context.Context, query *ListReceivedEmailsQuery, opts ...RequestOption) iter.Seq2[ReceivedEmailSummary, error] + func (s *EmailsReceivingService) Mark(ctx context.Context, params *MarkReceivedEmailsParams, opts ...RequestOption) (*MarkReceivedEmailsResponse, error) + func (s *EmailsReceivingService) Reply(ctx context.Context, id string, params *ReplyToReceivedEmailParams, ...) (*ReplyToReceivedEmailResponse, error) + func (s *EmailsReceivingService) Update(ctx context.Context, id string, params *UpdateReceivedEmailParams, ...) (*UpdateReceivedEmailResponse, error) + type EmailsService struct + Receiving *EmailsReceivingService + func (s *EmailsService) Cancel(ctx context.Context, id string, opts ...RequestOption) (*CancelEmailResponse, error) + func (s *EmailsService) Get(ctx context.Context, id string, opts ...RequestOption) (*Email, error) + func (s *EmailsService) GetMetrics(ctx context.Context, query *GetEmailMetricsQuery, opts ...RequestOption) (*GetEmailMetricsResponse, error) + func (s *EmailsService) List(ctx context.Context, query *ListEmailsQuery, opts ...RequestOption) (*EmailList, error) + func (s *EmailsService) ListAll(ctx context.Context, query *ListEmailsQuery, opts ...RequestOption) iter.Seq2[EmailSummary, error] + func (s *EmailsService) ListClickedLinks(ctx context.Context, query *ListClickedLinksQuery, opts ...RequestOption) (map[string]any, error) + func (s *EmailsService) Send(ctx context.Context, params *SendEmailRequest, opts ...RequestOption) (*SendEmailResponse, error) + func (s *EmailsService) SendBatch(ctx context.Context, params []SendEmailRequest, opts ...RequestOption) (*BatchSendResponse, error) + func (s *EmailsService) Share(ctx context.Context, id string, params *ShareEmailParams, ...) (*ShareEmailResponse, error) + func (s *EmailsService) Update(ctx context.Context, id string, params *UpdateEmailParams, ...) (*UpdateEmailResponse, error) + type Error struct + Error string + type ExportContactsQuery struct + Disposable *bool + Format *string + Status *string + type FormsPendingService struct + func (s *FormsPendingService) Approve(ctx context.Context, id string, pendingID string, opts ...RequestOption) (*ApprovePendingSignupResponse, error) + func (s *FormsPendingService) ApproveAll(ctx context.Context, id string, params *ApproveAllPendingSignupsParams, ...) (*ApproveAllPendingSignupsResponse, error) + func (s *FormsPendingService) List(ctx context.Context, id string, query *ListPendingSignupsQuery, ...) (*PendingSignupList, error) + func (s *FormsPendingService) Remove(ctx context.Context, id string, pendingID string, opts ...RequestOption) (*RemovePendingSignupResponse, error) + type FormsService struct + Pending *FormsPendingService + func (s *FormsService) Create(ctx context.Context, params *CreateSignupFormRequest, opts ...RequestOption) (*SignupForm, error) + func (s *FormsService) Delete(ctx context.Context, id string, opts ...RequestOption) (*SignupFormDeleted, error) + func (s *FormsService) Get(ctx context.Context, id string, opts ...RequestOption) (*SignupForm, error) + func (s *FormsService) List(ctx context.Context, opts ...RequestOption) (*SignupFormList, error) + func (s *FormsService) PreviewWelcomeEmail(ctx context.Context, id string, params *PreviewFormWelcomeEmailParams, ...) (map[string]any, error) + func (s *FormsService) Update(ctx context.Context, id string, params *UpdateSignupFormRequest, ...) (*SignupForm, error) + type ForwardInboxThreadEmailParams struct + Bcc StringList + Cc StringList + HTML *string + Subject *string + Text *string + To StringList + type GetAnalyticsQuery struct + Days *int64 + Domain *string + type GetBroadcastAudienceQuery struct + SegmentID *string + type GetCapabilitiesResponse struct + APIKeyID string + Account GetCapabilitiesResponseAccount + RateLimit GetCapabilitiesResponseRateLimit + Scopes []string + SendChecks GetCapabilitiesResponseSendChecks + TeamID *string + TeamSendingStatus *string + UserID string + type GetCapabilitiesResponseAccount struct + Status *string + Tier *string + type GetCapabilitiesResponseRateLimit struct + PerSecond *int64 + Remaining *int64 + Reset *int64 + type GetCapabilitiesResponseSendChecks struct + DisplayNameEnforced *bool + LinkScanEnforced *bool + type GetContactPropertyResponse struct + ContactProperty ContactProperty + type GetDomainClaimRecordQuery struct + Domain *string + type GetDomainClaimRecordResponse struct + Domain *string + Record *GetDomainClaimRecordResponseRecord + type GetDomainClaimRecordResponseRecord struct + Name *string + Ttl *string + Type *string + Value *string + type GetEmailMetricsQuery struct + BroadcastID *string + Dimensions *string + DomainID *string + EmailID *string + EndDate *string + Granularity *string + Metrics *string + StartDate *string + Timezone *string + type GetEmailMetricsResponse struct + Data []GetEmailMetricsResponseDataItem + Dimensions []string + EndDate string + Granularity string + Metrics []string + Object string + StartDate string + Timezone string + Totals map[string]float64 + type GetEmailMetricsResponseDataItem struct + BroadcastID Nullable[string] + BroadcastName Nullable[string] + DomainID Nullable[string] + DomainName Nullable[string] + EmailID Nullable[string] + Period Nullable[string] + type GetWebhookDeliveryResponse struct + AttemptLog []GetWebhookDeliveryResponseAttemptLogItem + Attempts *int64 + CreatedAt *string + DeliveredAt Nullable[string] + DurationMs Nullable[int64] + Error Nullable[string] + Event *string + ID *string + MaxAttempts *int64 + NextAttemptAt Nullable[string] + Object *string + Payload *string + Response Nullable[string] + Status *string + StatusCode Nullable[int64] + WebhookID *string + type GetWebhookDeliveryResponseAttemptLogItem struct + At *string + DurationMs *int64 + Error Nullable[string] + StatusCode Nullable[int64] + type Inbox struct + CreatedAt *string + DomainID *string + Drafts *int64 + EmailAddress *string + FromName Nullable[string] + ID *string + LastReceived Nullable[string] + Name *string + Object *string + ReceivingAddress Nullable[any] + Unread *int64 + type InboxDraft struct + Bcc []string + Cc []string + CreatedAt *string + CreatedVia *string + EmailID Nullable[string] + HTML Nullable[string] + ID *string + Object *string + ReplyToEmailID Nullable[string] + Revision *int64 + SentAt Nullable[string] + Subject Nullable[string] + Text Nullable[string] + ThreadID Nullable[string] + ThreadSubject Nullable[string] + To Nullable[[]string] + Type *string + UpdatedAt *string + type InboxDraftListItem struct + Bcc []string + Cc []string + CreatedAt *string + CreatedVia *string + ID *string + ReplyToEmailID Nullable[string] + Revision *int64 + Snippet Nullable[string] + Subject Nullable[string] + ThreadID Nullable[string] + ThreadSubject Nullable[string] + To Nullable[[]string] + Type *string + UpdatedAt *string + type InboxLabel struct + Color *string + CreatedAt *string + ID *string + Name *string + Object *string + type InboxLabelRef struct + Color *string + ID *string + Name *string + type InboxListItem struct + CreatedAt *string + DomainID *string + Drafts *int64 + EmailAddress *string + FromName Nullable[string] + ID *string + LastReceived Nullable[string] + Name Nullable[string] + Unread *int64 + type InboxSentEmail struct + Attachments []InboxSentEmailAttachmentsItem + Bcc []string + Cc []string + Direction *string + EmailID *string + From *string + HTML Nullable[string] + ID *string + InReplyTo Nullable[string] + MessageID Nullable[string] + Read *bool + ReceivedAt *string + ReplyTo []string + Status *string + Subject Nullable[string] + Text Nullable[string] + ThreadID *string + To []string + Verdicts Nullable[InboxSentEmailVerdicts] + type InboxSentEmailAttachmentsItem struct + ContentType Nullable[string] + Filename Nullable[string] + ID *string + Size Nullable[int64] + type InboxSentEmailVerdicts struct + DKIM Nullable[string] + DMARC Nullable[string] + SPF Nullable[string] + Spam Nullable[string] + Virus Nullable[string] + type InboxThread struct + DeleteAfter Nullable[string] + Folder *string + ID *string + Labels []InboxLabelRef + Object *string + Read *bool + ReceivedAt *string + Subject Nullable[string] + type InboxThreadEmail struct + Attachments []InboxThreadEmailAttachmentsItem + Bcc []string + Cc []string + Direction *string + From *string + HTML Nullable[string] + ID *string + InReplyTo Nullable[string] + MessageID Nullable[string] + Read *bool + ReceivedAt *string + ReplyTo []string + Status *string + Subject Nullable[string] + Text Nullable[string] + To []string + Verdicts Nullable[InboxThreadEmailVerdicts] + type InboxThreadEmailAttachmentsItem struct + ContentType Nullable[string] + Filename Nullable[string] + ID *string + Size Nullable[int64] + type InboxThreadEmailVerdicts struct + DKIM Nullable[string] + DMARC Nullable[string] + SPF Nullable[string] + Spam Nullable[string] + Virus Nullable[string] + type InboxThreadListItem struct + Bcc []string + Cc []string + Folder *string + From Nullable[string] + HasAttachment *bool + HasDraft *bool + ID *string + Labels []InboxLabelRef + MessageCount *int64 + Read *bool + ReceivedAt *string + Snippet Nullable[string] + Subject Nullable[string] + To []string + UnreadCount *int64 + type InboxesDraftsService struct + func (s *InboxesDraftsService) Create(ctx context.Context, inboxID string, params *CreateInboxDraftParams, ...) (*InboxDraft, error) + func (s *InboxesDraftsService) Delete(ctx context.Context, inboxID string, draftID string, opts ...RequestOption) (*DeleteInboxDraftResponse, error) + func (s *InboxesDraftsService) Get(ctx context.Context, inboxID string, draftID string, opts ...RequestOption) (*InboxDraft, error) + func (s *InboxesDraftsService) List(ctx context.Context, inboxID string, query *ListInboxDraftsQuery, ...) (*ListInboxDraftsResponse, error) + func (s *InboxesDraftsService) ListAll(ctx context.Context, inboxID string, query *ListInboxDraftsQuery, ...) iter.Seq2[InboxDraftListItem, error] + func (s *InboxesDraftsService) Send(ctx context.Context, inboxID string, draftID string, ...) (*SendInboxDraftResponse, error) + func (s *InboxesDraftsService) Update(ctx context.Context, inboxID string, draftID string, ...) (*InboxDraft, error) + type InboxesLabelsService struct + func (s *InboxesLabelsService) Create(ctx context.Context, inboxID string, params *CreateInboxLabelParams, ...) (*InboxLabel, error) + func (s *InboxesLabelsService) Delete(ctx context.Context, inboxID string, labelID string, opts ...RequestOption) (*DeleteInboxLabelResponse, error) + func (s *InboxesLabelsService) Get(ctx context.Context, inboxID string, labelID string, opts ...RequestOption) (*InboxLabel, error) + func (s *InboxesLabelsService) List(ctx context.Context, inboxID string, opts ...RequestOption) (*ListInboxLabelsResponse, error) + func (s *InboxesLabelsService) Update(ctx context.Context, inboxID string, labelID string, ...) (*UpdateInboxLabelResponse, error) + type InboxesService struct + Drafts *InboxesDraftsService + Labels *InboxesLabelsService + Threads *InboxesThreadsService + func (s *InboxesService) Create(ctx context.Context, params *CreateInboxParams, opts ...RequestOption) (*Inbox, error) + func (s *InboxesService) Delete(ctx context.Context, inboxID string, opts ...RequestOption) (*DeleteInboxResponse, error) + func (s *InboxesService) Get(ctx context.Context, inboxID string, opts ...RequestOption) (*Inbox, error) + func (s *InboxesService) List(ctx context.Context, query *ListInboxesQuery, opts ...RequestOption) (*ListInboxesResponse, error) + func (s *InboxesService) ListAll(ctx context.Context, query *ListInboxesQuery, opts ...RequestOption) iter.Seq2[InboxListItem, error] + func (s *InboxesService) Update(ctx context.Context, inboxID string, params *UpdateInboxParams, ...) (*UpdateInboxResponse, error) + type InboxesThreadsEmailsService struct + func (s *InboxesThreadsEmailsService) Forward(ctx context.Context, inboxID string, threadID string, emailID string, ...) (*InboxSentEmail, error) + func (s *InboxesThreadsEmailsService) Get(ctx context.Context, inboxID string, threadID string, emailID string, ...) (*InboxThreadEmail, error) + func (s *InboxesThreadsEmailsService) List(ctx context.Context, inboxID string, threadID string, ...) (*ListInboxThreadEmailsResponse, error) + func (s *InboxesThreadsEmailsService) ListAll(ctx context.Context, inboxID string, threadID string, ...) iter.Seq2[InboxThreadEmail, error] + func (s *InboxesThreadsEmailsService) Reply(ctx context.Context, inboxID string, threadID string, emailID string, ...) (*InboxSentEmail, error) + type InboxesThreadsService struct + Emails *InboxesThreadsEmailsService + func (s *InboxesThreadsService) Delete(ctx context.Context, inboxID string, threadID string, opts ...RequestOption) (*DeleteInboxThreadResponse, error) + func (s *InboxesThreadsService) Get(ctx context.Context, inboxID string, threadID string, opts ...RequestOption) (*InboxThread, error) + func (s *InboxesThreadsService) List(ctx context.Context, inboxID string, query *ListInboxThreadsQuery, ...) (*ListInboxThreadsResponse, error) + func (s *InboxesThreadsService) ListAll(ctx context.Context, inboxID string, query *ListInboxThreadsQuery, ...) iter.Seq2[InboxThreadListItem, error] + func (s *InboxesThreadsService) Update(ctx context.Context, inboxID string, threadID string, ...) (*InboxThread, error) + type LinkDomain struct + CreatedAt string + DNSRecords []LinkDomainDNSRecord + Domain *string + DomainID *string + Hostname string + ID string + LastCheckedAt *string + LastError *string + Object string + SslStatus *string + Status string + VerifiedAt *string + type LinkDomainConnectCheck struct + Available bool + Provider *string + Reason *string + type LinkDomainConnectLink struct + Provider string + URL string + type LinkDomainDNSRecord struct + Name string + Purpose string + Required bool + Status string + Ttl string + Type string + Value string + type LinkDomainDeleted struct + Deleted bool + ID string + Object string + type LinkDomainError struct + Code *string + Error string + type LinkDomainList struct + Available bool + Data []LinkDomain + HasMore bool + IncludedInPlan bool + Object string + type LinkDomainsService struct + func (s *LinkDomainsService) Create(ctx context.Context, params *CreateLinkDomainRequest, opts ...RequestOption) (*LinkDomain, error) + func (s *LinkDomainsService) Delete(ctx context.Context, id string, opts ...RequestOption) (*LinkDomainDeleted, error) + func (s *LinkDomainsService) Get(ctx context.Context, id string, opts ...RequestOption) (*LinkDomain, error) + func (s *LinkDomainsService) GetDomainConnect(ctx context.Context, id string, opts ...RequestOption) (*LinkDomainConnectCheck, error) + func (s *LinkDomainsService) List(ctx context.Context, opts ...RequestOption) (*LinkDomainList, error) + func (s *LinkDomainsService) Refresh(ctx context.Context, id string, opts ...RequestOption) (*LinkDomain, error) + func (s *LinkDomainsService) StartDomainConnect(ctx context.Context, id string, opts ...RequestOption) (*LinkDomainConnectLink, error) + type ListAPIKeysResponse struct + Data []APIKey + HasMore bool + Object string + type ListBroadcastClickedLinksResponse struct + BroadcastID string + Links []ListBroadcastClickedLinksResponseLinksItem + TotalClicks int64 + type ListBroadcastClickedLinksResponseLinksItem struct + Clicks int64 + URL string + UniqueClicks int64 + type ListBroadcastRecipientsQuery struct + After *string + Before *string + BounceType *string + Email *string + Limit *int64 + Type *string + type ListBroadcastsQuery struct + Archived *string + Q *string + Status *string + type ListClickedLinksQuery struct + Days *int64 + DomainID *string + URL *string + type ListContactPropertiesResponse struct + Data []ContactProperty + HasMore bool + Object string + type ListContactsQuery struct + Disposable *bool + Limit *int64 + Page *int64 + Q *string + SegmentID *string + Status *string + type ListDomainsResponse struct + Data []DomainListItem + HasMore bool + Object string + type ListEmailsQuery struct + After *string + Before *string + Limit *int64 + Page *int64 + Status *string + To *string + type ListInboxDraftsQuery struct + After *string + Before *string + Limit *int64 + type ListInboxDraftsResponse struct + Data []InboxDraftListItem + HasMore *bool + Object *string + type ListInboxLabelsResponse struct + Data []InboxLabel + HasMore *bool + Object *string + type ListInboxThreadEmailsQuery struct + After *string + Before *string + Latest *bool + Limit *int64 + type ListInboxThreadEmailsResponse struct + Data []InboxThreadEmail + HasMore *bool + Object *string + type ListInboxThreadsQuery struct + After *string + Before *string + Folder *string + Label []string + Limit *int64 + Query *string + type ListInboxThreadsResponse struct + Data []InboxThreadListItem + HasMore *bool + Object *string + type ListInboxesQuery struct + After *string + Before *string + Limit *int64 + type ListInboxesResponse struct + Data []InboxListItem + HasMore *bool + Object *string + type ListLogsQuery struct + After *string + Before *string + Domain *string + DomainID *string + EmailID *string + Limit *int64 + Recipient *string + Since *string + Tag *string + Type *string + Until *string + type ListLogsResponse struct + Data []LogEvent + HasMore *bool + Object *string + type ListPendingSignupsQuery struct + Page *int64 + PerPage *int64 + Q *string + type ListReceivedEmailAttachmentsResponse struct + Data []ReceivedAttachment + Object *string + type ListReceivedEmailsQuery struct + After *string + Before *string + DomainID *string + Limit *int64 + Q *string + To *string + Unread *bool + type ListReceivedEmailsResponse struct + Data []ReceivedEmailSummary + HasMore *bool + Object *string + UnreadCount *int64 + type ListSegmentContactsQuery struct + Limit *int64 + Page *int64 + type ListSuppressionsQuery struct + Limit *int64 + Q *string + Reason *string + type ListTeamInvitesResponse struct + Data []TeamInvite + HasMore bool + Object string + type ListTeamMembersResponse struct + Data []TeamMember + HasMore bool + Object string + type ListTemplatesQuery struct + After *string + Before *string + Limit *int64 + Q *string + type ListWebhookDeliveriesQuery struct + After *string + Limit *int64 + Status *string + type ListWebhookDeliveriesResponse struct + Data []WebhookDelivery + HasMore *bool + Object *string + type ListWebhookEventAttemptsResponse struct + Data []ListWebhookEventAttemptsResponseDataItem + HasMore *bool + Object *string + type ListWebhookEventAttemptsResponseDataItem struct + DurationMs Nullable[int64] + HTTPStatusCode Nullable[int64] + ID *string + Response Nullable[string] + SentAt Nullable[string] + type ListWebhookEventsQuery struct + After *string + Limit *int64 + Status *string + type ListWebhookEventsResponse struct + Data []WebhookEventSummary + HasMore *bool + Object *string + type ListWebhooksResponse struct + Data []Webhook + HasMore bool + Object string + type LogEvent struct + CreatedAt *string + Data map[string]any + DomainID Nullable[string] + EmailID *string + From *string + ID *string + Object *string + Subject *string + Tags []LogEventTagsItem + To []string + Type *string + type LogEventTagsItem struct + Name *string + Value *string + type LogsService struct + func (s *LogsService) List(ctx context.Context, query *ListLogsQuery, opts ...RequestOption) (*ListLogsResponse, error) + func (s *LogsService) ListAll(ctx context.Context, query *ListLogsQuery, opts ...RequestOption) iter.Seq2[LogEvent, error] + type MarkReceivedEmailsParams struct + IDs []string + Read bool + type MarkReceivedEmailsResponse struct + Object *string + Read *bool + Updated *int64 + type Nullable struct + Set bool + Valid bool + Value T + func Null[T any]() Nullable[T] + func Value[T any](v T) Nullable[T] + func (n *Nullable[T]) UnmarshalJSON(b []byte) error + func (n Nullable[T]) IsZero() bool + func (n Nullable[T]) MarshalJSON() ([]byte, error) + type Option func(*core) + func WithAPIKey(key string) Option + func WithBaseURL(u string) Option + func WithHTTPClient(h *http.Client) Option + func WithMaxRetries(n int) Option + func WithTimeout(d time.Duration) Option + type PendingSignup struct + ConfirmationEmail *PendingSignupConfirmationEmail + Country *string + CreatedAt string + Email string + ExpiresAt string + FirstName *string + ID string + LastName *string + SourceURL *string + type PendingSignupConfirmationEmail struct + ID *string + Status *string + type PendingSignupList struct + ApprovableTotal int64 + Data []PendingSignup + HasMore bool + Object string + Page int64 + PerPage int64 + TorTotal int64 + Total int64 + UndeliverableTotal int64 + type PreviewFormWelcomeEmailParams struct + Markdown *string + Sample *PreviewFormWelcomeEmailParamsSample + Subject *string + type PreviewFormWelcomeEmailParamsSample struct + Email *string + FirstName *string + LastName *string + type PublishTemplateParams struct + ExpectedUpdatedAt *string + type ReceivedAttachment struct + ContentDisposition *string + ContentID Nullable[string] + ContentType *string + DownloadURL *string + ExpiresAt *string + Filename *string + ID *string + Size *int64 + type ReceivedEmail struct + Attachments []ReceivedAttachment + Bcc []string + Cc []string + CreatedAt *string + DomainID Nullable[string] + EnvelopeFrom Nullable[string] + EnvelopeTo []string + From *string + HTML Nullable[string] + Headers map[string]string + ID *string + InReplyTo Nullable[string] + InboxID Nullable[string] + MessageID *string + Object *string + Raw Nullable[ReceivedEmailRaw] + ReadAt Nullable[string] + ReceivedFor []string + References []string + ReplyTo []string + Size Nullable[int64] + Status *string + Subject *string + Text Nullable[string] + ThreadID Nullable[string] + To []string + Verdicts *ReceivedEmailVerdicts + type ReceivedEmailRaw struct + DownloadURL *string + ExpiresAt *string + type ReceivedEmailSummary struct + Attachments []ReceivedAttachment + Bcc []string + Cc []string + CreatedAt *string + DomainID Nullable[string] + EnvelopeFrom Nullable[string] + EnvelopeTo []string + From *string + ID *string + InReplyTo Nullable[string] + InboxID Nullable[string] + MessageID *string + Object *string + ReadAt Nullable[string] + ReceivedFor []string + References []string + ReplyTo []string + Size Nullable[int64] + Status *string + Subject *string + ThreadID Nullable[string] + To []string + Verdicts *ReceivedEmailSummaryVerdicts + type ReceivedEmailSummaryVerdicts struct + DKIM Nullable[string] + DMARC Nullable[string] + SPF Nullable[string] + Spam Nullable[string] + Virus Nullable[string] + type ReceivedEmailVerdicts struct + DKIM Nullable[string] + DMARC Nullable[string] + SPF Nullable[string] + Spam Nullable[string] + Virus Nullable[string] + type RemovePendingSignupResponse struct + Deleted bool + type RemoveSuppressionsBatchParams struct + Emails []string + IDs []string + type ReplayWebhookEventResponse struct + Delivered *bool + Error *string + ID *string + Object *string + type ReplyToInboxThreadEmailParams struct + Bcc StringList + Cc StringList + HTML *string + Subject *string + Text *string + type ReplyToReceivedEmailParams struct + Cc StringList + From *string + HTML *string + Subject *string + Text *string + To StringList + type ReplyToReceivedEmailResponse struct + ID *string + type RequestOption func(*requestSettings) + func WithHeader(key, value string) RequestOption + func WithIdempotencyKey(key string) RequestOption + func WithRequestMaxRetries(n int) RequestOption + func WithRequestTimeout(d time.Duration) RequestOption + type RetryWebhookDeliveryResponse struct + Delivery *WebhookDelivery + Message *string + Success *bool + type RevokeAPIKeyResponse struct + Message string + Success bool + type RotateWebhookSigningSecretResponse struct + ID *string + Object *string + SigningSecret *string + type Segment struct + Color Nullable[string] + ContactCount *int64 + CreatedAt *string + Description Nullable[string] + ID string + Name string + Object *string + UpdatedAt *string + type SegmentContactList struct + Data []ContactListItem + HasMore bool + Object string + Page int64 + PageSize int64 + Segment SegmentContactListSegment + Total int64 + type SegmentContactListSegment struct + ID string + Name string + type SegmentList struct + Data []SegmentSummary + HasMore bool + Object string + SegmentLimit int64 + Tier *string + Total int64 + type SegmentSummary struct + Color Nullable[string] + ContactCount *int64 + CreatedAt *string + Description Nullable[string] + ID string + Name string + UpdatedAt *string + type SegmentsContactsService struct + func (s *SegmentsContactsService) List(ctx context.Context, id string, query *ListSegmentContactsQuery, ...) (*SegmentContactList, error) + type SegmentsService struct + Contacts *SegmentsContactsService + func (s *SegmentsService) Create(ctx context.Context, params *CreateSegmentRequest, opts ...RequestOption) (*Segment, error) + func (s *SegmentsService) Delete(ctx context.Context, id string, opts ...RequestOption) (*DeletedObject, error) + func (s *SegmentsService) Get(ctx context.Context, id string, opts ...RequestOption) (*Segment, error) + func (s *SegmentsService) List(ctx context.Context, opts ...RequestOption) (*SegmentList, error) + func (s *SegmentsService) Update(ctx context.Context, id string, params *UpdateSegmentRequest, ...) (*Segment, error) + type SendBroadcastParams struct + ScheduledAt *string + SendOverMinutes *int64 + type SendBroadcastTestParams struct + To string + type SendBroadcastTestResponse struct + ID string + Object string + Status string + type SendEmailRequest struct + Attachments []SendEmailRequestAttachmentsItem + Bcc StringList + Category *string + Cc StringList + From *string + HTML *string + Headers map[string]string + ReplyTo StringList + ScheduledAt *string + Subject *string + Tags []SendEmailRequestTagsItem + Template *SendEmailRequestTemplate + Text *string + To StringList + TrackClicks *bool + TrackOpens *bool + type SendEmailRequestAttachmentsItem struct + Content string + ContentID *string + ContentType *string + Filename string + Inline *bool + type SendEmailRequestTagsItem struct + Name string + Value string + type SendEmailRequestTemplate struct + ID string + Variables map[string]any + type SendEmailResponse struct + ID string + type SendInboxDraftParams struct + Revision *int64 + type SendInboxDraftResponse struct + EmailID *string + ID *string + Object *string + SentRevision *int64 + ThreadID *string + Warning *string + type Service struct + APIKeys *APIKeysService + Account *AccountService + Analytics *AnalyticsService + Broadcasts *BroadcastsService + ContactProperties *ContactPropertiesService + Contacts *ContactsService + Domains *DomainsService + Emails *EmailsService + Forms *FormsService + Inboxes *InboxesService + LinkDomains *LinkDomainsService + Logs *LogsService + Segments *SegmentsService + Suppressions *SuppressionsService + Team *TeamService + Templates *TemplatesService + Webhooks *WebhooksService + type ShareEmailParams struct + ExpiresIn *int64 + type ShareEmailResponse struct + ExpiresAt *string + ID *string + Object *string + URL *string + type SignupForm struct + Active bool + BlockDisposableEmails bool + ButtonColor string + ButtonText string + CaptchaEnabled bool + CaptchaProvider string + ConfirmationEmailFrom Nullable[string] + CreatedAt string + DoubleOptIn bool + Fields []string + ID string + Name string + Object string + PendingConfirmationsCount *int64 + RecentPendingConfirmations []SignupFormRecentPendingConfirmationsItem + RedirectURL Nullable[string] + SuccessMessage string + TurnstileSecretConfigured bool + TurnstileSiteKey Nullable[string] + UpdatedAt string + WelcomeEmailEnabled *bool + WelcomeEmailFrom Nullable[string] + WelcomeEmailMarkdown Nullable[string] + WelcomeEmailSubject Nullable[string] + WelcomeStats *SignupFormWelcomeStats + type SignupFormDeleted struct + Deleted bool + ID string + Object string + type SignupFormList struct + Data []SignupForm + HasMore bool + Object string + type SignupFormRecentPendingConfirmationsItem struct + CreatedAt *string + Email *string + ExpiresAt *string + FirstName Nullable[string] + ID *string + LastName Nullable[string] + type SignupFormWelcomeStats struct + Clicked *int64 + Delivered *int64 + Opened *int64 + Sent *int64 + Skipped *int64 + type StringList []string + func (l *StringList) UnmarshalJSON(b []byte) error + type Success struct + Success bool + type Suppression struct + BounceType Nullable[string] + CreatedAt string + DiagnosticCode Nullable[string] + Email string + EmailID Nullable[string] + EventID Nullable[string] + FeedbackID Nullable[string] + ID string + Metadata map[string]any + Object *string + Reason string + RelatedEmail Nullable[map[string]any] + RelatedEvent Nullable[map[string]any] + Scope string + Source string + UpdatedAt *string + type SuppressionDeleted struct + AccountList string + Deleted bool + Email string + Object string + Suppression string + type SuppressionList struct + Complaints *int64 + Data []Suppression + FilteredTotal *int64 + HardBounces *int64 + HasMore bool + Manual *int64 + Object string + Page *int64 + PageSize *int64 + Total *int64 + type SuppressionsService struct + func (s *SuppressionsService) AddBatch(ctx context.Context, params *AddSuppressionsBatchParams, opts ...RequestOption) (map[string]any, error) + func (s *SuppressionsService) Create(ctx context.Context, params *CreateSuppressionRequest, opts ...RequestOption) (*Suppression, error) + func (s *SuppressionsService) Delete(ctx context.Context, id string, opts ...RequestOption) (*SuppressionDeleted, error) + func (s *SuppressionsService) Get(ctx context.Context, id string, opts ...RequestOption) (*Suppression, error) + func (s *SuppressionsService) List(ctx context.Context, query *ListSuppressionsQuery, opts ...RequestOption) (*SuppressionList, error) + func (s *SuppressionsService) RemoveBatch(ctx context.Context, params *RemoveSuppressionsBatchParams, ...) (map[string]any, error) + type TeamInvite struct + CreatedAt *string + Email string + ExpiresAt string + ID string + Object string + Role string + type TeamInvitesService struct + func (s *TeamInvitesService) Create(ctx context.Context, params *CreateTeamInviteParams, opts ...RequestOption) (*TeamInvite, error) + func (s *TeamInvitesService) Get(ctx context.Context, id string, opts ...RequestOption) (*TeamInvite, error) + func (s *TeamInvitesService) List(ctx context.Context, opts ...RequestOption) (*ListTeamInvitesResponse, error) + func (s *TeamInvitesService) Revoke(ctx context.Context, id string, opts ...RequestOption) (map[string]any, error) + type TeamMember struct + CanManageBilling bool + CreatedAt string + Email string + ID string + Name Nullable[string] + Object string + Role string + UserID string + type TeamMembersService struct + func (s *TeamMembersService) List(ctx context.Context, opts ...RequestOption) (*ListTeamMembersResponse, error) + func (s *TeamMembersService) Remove(ctx context.Context, id string, opts ...RequestOption) (map[string]any, error) + func (s *TeamMembersService) Update(ctx context.Context, id string, params *UpdateTeamMemberParams, ...) (map[string]any, error) + type TeamService struct + Invites *TeamInvitesService + Members *TeamMembersService + type Template struct + Alias Nullable[string] + Category Nullable[string] + CreatedAt *string + CurrentVersionID Nullable[string] + From Nullable[string] + HTML Nullable[string] + HasUnpublishedVersions *bool + ID *string + Markdown Nullable[string] + Name *string + Object *string + PreviewText Nullable[string] + PublishedAt Nullable[string] + ReplyTo Nullable[[]string] + Status *string + Subject Nullable[string] + Text Nullable[string] + UpdatedAt *string + Variables []TemplateVariable + type TemplateDeleted struct + Deleted *bool + ID *string + Object *string + type TemplateError struct + Error *string + Message *string + Name *string + StatusCode *int64 + type TemplateList struct + Data []TemplateSummary + HasMore bool + Object string + type TemplateRef struct + HasUnpublishedVersions *bool + ID *string + Object *string + PublishedAt Nullable[string] + Status *string + UpdatedAt *string + type TemplateSummary struct + Alias Nullable[string] + Category Nullable[string] + CreatedAt *string + HasUnpublishedVersions *bool + ID *string + Name *string + PublishedAt Nullable[string] + Status *string + Subject Nullable[string] + UpdatedAt *string + type TemplateVariable struct + CreatedAt *string + FallbackValue Nullable[any] + ID *string + Key string + Type string + UpdatedAt *string + type TemplatesService struct + func (s *TemplatesService) Create(ctx context.Context, params *CreateTemplateRequest, opts ...RequestOption) (*TemplateRef, error) + func (s *TemplatesService) Delete(ctx context.Context, id string, opts ...RequestOption) (*TemplateDeleted, error) + func (s *TemplatesService) Duplicate(ctx context.Context, id string, opts ...RequestOption) (*TemplateRef, error) + func (s *TemplatesService) Get(ctx context.Context, id string, opts ...RequestOption) (*Template, error) + func (s *TemplatesService) List(ctx context.Context, query *ListTemplatesQuery, opts ...RequestOption) (*TemplateList, error) + func (s *TemplatesService) ListAll(ctx context.Context, query *ListTemplatesQuery, opts ...RequestOption) iter.Seq2[TemplateSummary, error] + func (s *TemplatesService) Publish(ctx context.Context, id string, params *PublishTemplateParams, ...) (*TemplateRef, error) + func (s *TemplatesService) Update(ctx context.Context, id string, params *UpdateTemplateRequest, ...) (*TemplateRef, error) + type TestWebhookResponse struct + Delivery *WebhookDelivery + Message *string + Status Nullable[int64] + Success *bool + type UpdateAPIKeyParams struct + Name *string + Scopes []string + type UpdateAPIKeyResponse struct + ID *string + KeyPrefix *string + Name *string + Scopes []string + type UpdateBroadcastRequest struct + Audience *string + AudienceMeta map[string]any + From *string + HTML Nullable[string] + Markdown *string + Name *string + PreviewText Nullable[string] + ReplyTo Nullable[string] + SegmentID *string + SendOverMinutes Nullable[int64] + Subject *string + TemplateID *string + Text Nullable[string] + TrackClicks *bool + TrackOpens *bool + type UpdateContactPropertyParams struct + FallbackValue any + type UpdateContactPropertyResponse struct + ContactProperty ContactProperty + type UpdateContactRequest struct + FirstName *string + FirstName_ *string + LastName *string + LastName_ *string + Properties map[string]any + SegmentIDs []string + Unsubscribed *bool + type UpdateDomainReceivingParams struct + ReceivingEnabled bool + type UpdateDomainReceivingResponse struct + ID *string + Receiving *DomainReceiving + type UpdateEmailParams struct + ScheduledAt string + type UpdateEmailResponse struct + ID string + Object string + ScheduledAt string + type UpdateInboxDraftParams struct + Bcc Nullable[StringList] + Cc Nullable[StringList] + HTML Nullable[string] + Revision *int64 + Subject Nullable[string] + Text Nullable[string] + To Nullable[StringList] + type UpdateInboxLabelParams struct + Color *string + Name *string + type UpdateInboxLabelResponse struct + ID *string + Object *string + type UpdateInboxParams struct + FromName Nullable[string] + Name *string + type UpdateInboxResponse struct + ID *string + Object *string + type UpdateInboxThreadParams struct + Folder *string + LabelID *string + Read *bool + RemoveLabelID *string + type UpdateReceivedEmailParams struct + Read bool + type UpdateReceivedEmailResponse struct + ID *string + Object *string + ReadAt Nullable[string] + type UpdateSegmentRequest struct + Color Nullable[string] + Description Nullable[string] + Name *string + type UpdateSignupFormRequest struct + Active *bool + BlockDisposableEmails *bool + ButtonColor *string + ButtonText *string + CaptchaEnabled *bool + CaptchaProvider *string + ConfirmationEmailFrom Nullable[string] + DoubleOptIn *bool + Fields []string + Name *string + RedirectURL Nullable[string] + SuccessMessage *string + TurnstileSecretKey Nullable[string] + TurnstileSiteKey Nullable[string] + WelcomeEmailEnabled *bool + WelcomeEmailFrom Nullable[string] + WelcomeEmailMarkdown Nullable[string] + WelcomeEmailSubject Nullable[string] + type UpdateTeamMemberParams struct + CanManageBilling *bool + Role *string + type UpdateTemplateRequest struct + Alias Nullable[string] + Category Nullable[string] + ExpectedUpdatedAt *string + From Nullable[string] + HTML Nullable[string] + Markdown Nullable[string] + Name *string + PreviewText Nullable[string] + ReplyTo Nullable[StringList] + Subject Nullable[string] + Text Nullable[string] + Variables Nullable[[]TemplateVariable] + type UpdateWebhookRequest struct + Active *bool + Events []string + Format *string + URL *string + type Usage struct + AICredits UsageAICredits + AutomationRuns UsageAutomationRuns + Broadcasts UsageBroadcasts + Contacts UsageContacts + Domains UsageDomains + Emails UsageEmails + Object string + RateLimit *UsageRateLimit + Segments UsageSegments + type UsageAICredits struct + Limit int64 + NextIncreaseAt *string + Used int64 + type UsageAutomationRuns struct + Limit int64 + ResetsAt string + Used int64 + type UsageBroadcasts struct + Limit int64 + Used int64 + type UsageContacts struct + Limit int64 + Used int64 + type UsageDomains struct + Limit *int64 + Used int64 + type UsageEmails struct + Credits UsageEmailsCredits + Daily UsageEmailsDaily + EffectiveRemaining int64 + Monthly UsageEmailsMonthly + type UsageEmailsCredits struct + Balance int64 + type UsageEmailsDaily struct + Limit *int64 + Received int64 + ResetsAt *string + Sent int64 + Used int64 + type UsageEmailsMonthly struct + Limit int64 + Received int64 + ResetsAt string + Sent int64 + Used int64 + type UsageRateLimit struct + Duration string + Limit int64 + type UsageSegments struct + Limit int64 + Used int64 + type VerifyDomainResponse struct + Checks *VerifyDomainResponseChecks + DKIMCheckRestarted *bool + Domain *string + MailFromDomain Nullable[string] + Message *string + SesConfigured *bool + Status *string + VerificationPhase *string + type VerifyDomainResponseChecks struct + DKIM *string + DMARC *string + MailFrom *string + SPF *string + type Webhook struct + Active bool + CreatedAt string + Events []string + Format *string + ID string + Secret *string + URL string + UpdatedAt *string + type WebhookDelivery struct + AttemptLog []WebhookDeliveryAttemptLogItem + Attempts *int64 + CreatedAt *string + DeliveredAt Nullable[string] + DurationMs Nullable[int64] + Error Nullable[string] + Event *string + ID *string + MaxAttempts *int64 + NextAttemptAt Nullable[string] + Object *string + Response Nullable[string] + Status *string + StatusCode Nullable[int64] + WebhookID *string + type WebhookDeliveryAttemptLogItem struct + At *string + DurationMs *int64 + Error Nullable[string] + StatusCode Nullable[int64] + type WebhookEvent struct + CreatedAt *string + ID *string + NextAttemptAt Nullable[string] + Object *string + Payload any + Status *string + Type *string + type WebhookEventSummary struct + CreatedAt *string + ID *string + Status *string + Type *string + type WebhookUpdated struct + Active bool + Events []string + Format string + ID string + URL string + type WebhooksDeliveriesService struct + func (s *WebhooksDeliveriesService) Get(ctx context.Context, id string, deliveryID string, opts ...RequestOption) (*GetWebhookDeliveryResponse, error) + func (s *WebhooksDeliveriesService) List(ctx context.Context, id string, query *ListWebhookDeliveriesQuery, ...) (*ListWebhookDeliveriesResponse, error) + func (s *WebhooksDeliveriesService) ListAll(ctx context.Context, id string, query *ListWebhookDeliveriesQuery, ...) iter.Seq2[WebhookDelivery, error] + func (s *WebhooksDeliveriesService) Retry(ctx context.Context, id string, deliveryID string, opts ...RequestOption) (*RetryWebhookDeliveryResponse, error) + type WebhooksEventsAttemptsService struct + func (s *WebhooksEventsAttemptsService) List(ctx context.Context, id string, eventID string, opts ...RequestOption) (*ListWebhookEventAttemptsResponse, error) + type WebhooksEventsService struct + Attempts *WebhooksEventsAttemptsService + func (s *WebhooksEventsService) Get(ctx context.Context, id string, eventID string, opts ...RequestOption) (*WebhookEvent, error) + func (s *WebhooksEventsService) List(ctx context.Context, id string, query *ListWebhookEventsQuery, ...) (*ListWebhookEventsResponse, error) + func (s *WebhooksEventsService) ListAll(ctx context.Context, id string, query *ListWebhookEventsQuery, ...) iter.Seq2[WebhookEventSummary, error] + func (s *WebhooksEventsService) Replay(ctx context.Context, id string, eventID string, opts ...RequestOption) (*ReplayWebhookEventResponse, error) + type WebhooksService struct + Deliveries *WebhooksDeliveriesService + Events *WebhooksEventsService + func (s *WebhooksService) Create(ctx context.Context, params *CreateWebhookRequest, opts ...RequestOption) (*Webhook, error) + func (s *WebhooksService) Delete(ctx context.Context, id string, opts ...RequestOption) (*Success, error) + func (s *WebhooksService) Get(ctx context.Context, id string, opts ...RequestOption) (*Webhook, error) + func (s *WebhooksService) List(ctx context.Context, opts ...RequestOption) (*ListWebhooksResponse, error) + func (s *WebhooksService) Replace(ctx context.Context, id string, params *UpdateWebhookRequest, ...) (*WebhookUpdated, error) + func (s *WebhooksService) RotateSigningSecret(ctx context.Context, id string, opts ...RequestOption) (*RotateWebhookSigningSecretResponse, error) + func (s *WebhooksService) Test(ctx context.Context, id string, opts ...RequestOption) (*TestWebhookResponse, error) + func (s *WebhooksService) Update(ctx context.Context, id string, params *UpdateWebhookRequest, ...) (*WebhookUpdated, error)