Versions in this module Expand all Collapse all v0 v0.2.0 Jul 13, 2026 Changes in this version + const AccessLevelAdmin + const AccessLevelIndeterminate + const AccessLevelOwner + const AccessLevelViewer + const AccessLevelViewerPlus + const ContactExportCreated + const ContactExportFilterListID + const ContactExportFilterSubscriptionStatus + const ContactExportFinished + const ContactExportOperatorEqual + const ContactExportStarted + const ContactFieldTypeBoolean + const ContactFieldTypeDate + const ContactFieldTypeFloat + const ContactFieldTypeInteger + const ContactFieldTypeText + const ContactImportCreated + const ContactImportFailed + const ContactImportFinished + const ContactImportStarted + const ContactStatusSubscribed + const ContactStatusUnsubscribed + const PermissionLevelAdmin + const PermissionLevelViewer + const ResourceTypeAccount + const ResourceTypeBilling + const ResourceTypeDomain + const ResourceTypeEmailCampaignScope + const ResourceTypeEmailTemplateScope + const ResourceTypeOrganization + const ResourceTypeProject + const ResourceTypeSandbox + const SpecifierTypeAPIToken + const SpecifierTypeInvite + const SpecifierTypeUser + type APIToken struct + CreatedBy string + ExpiresAt string + ID int64 + Last4Digits string + Name string + Resources []*APITokenPermission + Token string + type APITokenPermission struct + AccessLevel int + ResourceID int64 + ResourceType string + type APITokensService struct + func (s *APITokensService) Create(ctx context.Context, req *CreateAPITokenRequest) (*APIToken, *Response, error) + func (s *APITokensService) Delete(ctx context.Context, tokenID int64) (*Response, error) + func (s *APITokensService) Get(ctx context.Context, tokenID int64) (*APIToken, *Response, error) + func (s *APITokensService) List(ctx context.Context) ([]*APIToken, *Response, error) + func (s *APITokensService) Reset(ctx context.Context, tokenID int64) (*APIToken, *Response, error) + type Account struct + AccessLevels []int + ID int64 + Name string + type AccountAccess struct + ID int64 + Permissions *AccountAccessPermissions + Resources []*AccountAccessResource + Specifier *AccountAccessSpecifier + SpecifierType string + type AccountAccessListOptions struct + DomainIDs []int64 + ProjectIDs []int64 + SandboxIDs []int64 + type AccountAccessPermissions struct + CanDestroy bool + CanLeave bool + CanRead bool + CanUpdate bool + type AccountAccessResource struct + AccessLevel int + ResourceID int64 + ResourceType string + type AccountAccessSpecifier struct + AuthorName string + Email string + ExpiresAt string + ID int64 + Name string + Token string + TwoFactorAuthenticationEnabled *bool + type AccountAccessesService struct + func (s *AccountAccessesService) Delete(ctx context.Context, accessID int64) (*Response, error) + func (s *AccountAccessesService) List(ctx context.Context, opts *AccountAccessListOptions) ([]*AccountAccess, *Response, error) + type AccountsService struct + func (s *AccountsService) List(ctx context.Context) ([]*Account, *Response, error) + type BillingCounter struct + Current int + Limit int + type BillingCycle struct + CycleEnd string + CycleStart string + type BillingPlan struct + Name string + type BillingProduct struct + Plan *BillingPlan + Usage *BillingUsageMetrics + type BillingService struct + func (s *BillingService) Usage(ctx context.Context) (*BillingUsage, *Response, error) + type BillingUsage struct + Billing *BillingCycle + Marketing *BillingProduct + Sending *BillingProduct + Testing *BillingProduct + type BillingUsageMetrics struct + ForwardedMessagesCount *BillingCounter + SentMessagesCount *BillingCounter type Client + APITokens *APITokensService + AccountAccesses *AccountAccessesService + Accounts *AccountsService + Billing *BillingService + ContactEvents *ContactEventsService + ContactExports *ContactExportsService + ContactFields *ContactFieldsService + ContactImports *ContactImportsService + ContactLists *ContactListsService + Contacts *ContactsService + Permissions *PermissionsService + SubAccounts *SubAccountsService + type Contact struct + CreatedAt int64 + Email string + Fields map[string]any + ID string + ListIDs []int64 + Status string + UpdatedAt int64 + type ContactEvent struct + ContactEmail string + ContactID string + Name string + Params map[string]any + type ContactEventsService struct + func (s *ContactEventsService) Create(ctx context.Context, identifier string, req *CreateContactEventRequest) (*ContactEvent, *Response, error) + type ContactExport struct + CreatedAt string + ID int64 + Status string + URL *string + UpdatedAt string + type ContactExportFilter struct + Name string + Operator string + Value any + type ContactExportsService struct + func (s *ContactExportsService) Create(ctx context.Context, filters []*ContactExportFilter) (*ContactExport, *Response, error) + func (s *ContactExportsService) Get(ctx context.Context, exportID int64) (*ContactExport, *Response, error) + type ContactField struct + DataType string + ID int64 + MergeTag string + Name string + type ContactFieldsService struct + func (s *ContactFieldsService) Create(ctx context.Context, req *CreateContactFieldRequest) (*ContactField, *Response, error) + func (s *ContactFieldsService) Delete(ctx context.Context, fieldID int64) (*Response, error) + func (s *ContactFieldsService) Get(ctx context.Context, fieldID int64) (*ContactField, *Response, error) + func (s *ContactFieldsService) List(ctx context.Context) ([]*ContactField, *Response, error) + func (s *ContactFieldsService) Update(ctx context.Context, fieldID int64, req *UpdateContactFieldRequest) (*ContactField, *Response, error) + type ContactImport struct + ContactsOverLimitCount int64 + CreatedContactsCount int64 + ID int64 + Status string + UpdatedContactsCount int64 + type ContactImportsService struct + func (s *ContactImportsService) Create(ctx context.Context, contacts []*ImportContact) (*ContactImport, *Response, error) + func (s *ContactImportsService) Get(ctx context.Context, importID int64) (*ContactImport, *Response, error) + type ContactList struct + ID int64 + Name string + type ContactListsService struct + func (s *ContactListsService) Create(ctx context.Context, name string) (*ContactList, *Response, error) + func (s *ContactListsService) Delete(ctx context.Context, listID int64) (*Response, error) + func (s *ContactListsService) Get(ctx context.Context, listID int64) (*ContactList, *Response, error) + func (s *ContactListsService) List(ctx context.Context) ([]*ContactList, *Response, error) + func (s *ContactListsService) Update(ctx context.Context, listID int64, name string) (*ContactList, *Response, error) + type ContactUpsert struct + Action string + Contact *Contact + type ContactsService struct + func (s *ContactsService) Create(ctx context.Context, req *CreateContactRequest) (*Contact, *Response, error) + func (s *ContactsService) Delete(ctx context.Context, identifier string) (*Response, error) + func (s *ContactsService) Get(ctx context.Context, identifier string) (*Contact, *Response, error) + func (s *ContactsService) Update(ctx context.Context, identifier string, req *UpdateContactRequest) (*ContactUpsert, *Response, error) + type CreateAPITokenRequest struct + Name string + Resources []*APITokenPermission + type CreateContactEventRequest struct + Name string + Params map[string]any + type CreateContactFieldRequest struct + DataType string + MergeTag string + Name string + type CreateContactRequest struct + Email string + Fields map[string]any + ListIDs []int64 + type ImportContact struct + Email string + Fields map[string]any + ListIDsExcluded []int64 + ListIDsIncluded []int64 + type NotFoundError struct + Err *Error + func (e *NotFoundError) Error() string + func (e *NotFoundError) Unwrap() error type Option + func WithOrganizationID(organizationID int64) Option + type PermissionResource struct + AccessLevel int + ID int64 + Name string + Resources []*PermissionResource + Type string + type PermissionUpdate struct + AccessLevel string + Destroy bool + ResourceID string + ResourceType string + type PermissionsService struct + func (s *PermissionsService) BulkUpdate(ctx context.Context, accessID int64, permissions []*PermissionUpdate) (*Response, error) + func (s *PermissionsService) Resources(ctx context.Context) ([]*PermissionResource, *Response, error) + type SubAccount struct + ID int64 + Name string + type SubAccountsService struct + func (s *SubAccountsService) Create(ctx context.Context, name string) (*SubAccount, *Response, error) + func (s *SubAccountsService) List(ctx context.Context) ([]*SubAccount, *Response, error) + type UpdateContactFieldRequest struct + MergeTag string + Name string + type UpdateContactRequest struct + Email string + Fields map[string]any + ListIDsExcluded []int64 + ListIDsIncluded []int64 + Unsubscribed *bool v0.1.0 Jul 8, 2026 Changes in this version + const DispositionAttachment + const DispositionInline + const EmailLogStatusDelivered + const EmailLogStatusEnqueued + const EmailLogStatusNotDelivered + const EmailLogStatusOptedOut + const InfoLevelBusiness + const InfoLevelIndividual + const MessageEventTypeBounce + const MessageEventTypeClick + const MessageEventTypeDelivery + const MessageEventTypeOpen + const MessageEventTypeReject + const MessageEventTypeSoftBounce + const MessageEventTypeSpam + const MessageEventTypeSuspension + const MessageEventTypeUnsubscribe + const PayloadFormatJSON + const PayloadFormatJSONLines + const SendingStreamAny + const SendingStreamBulk + const SendingStreamTransactional + const SuppressionTypeHardBounce + const SuppressionTypeManualImport + const SuppressionTypeSpamComplaint + const SuppressionTypeUnsubscription + const WebhookEventBounce + const WebhookEventClick + const WebhookEventDelivery + const WebhookEventOpen + const WebhookEventReject + const WebhookEventSoftBounce + const WebhookEventSpamComplaint + const WebhookEventSuspension + const WebhookEventUnsubscribe + const WebhookTypeAuditLog + const WebhookTypeCampaigns + const WebhookTypeEmailSending + const WebhookTypeInboundReceiving + func Ptr[T any](v T) *T + type Address struct + Email string + Name string + type Attachment struct + Content string + ContentID string + Disposition string + Filename string + Type string + type AttachmentListOptions struct + Type string + type BatchSendRequest struct + Base *SendRequest + Requests []SendRequest + type BatchSendResponse struct + Errors []string + Responses []BatchSendResponseItem + Success bool + type BatchSendResponseItem struct + Errors []string + MessageIDs []string + Success bool + type CategoryStats struct + Category string + Stats SendingStats + type Client struct + EmailLogs *EmailLogsService + EmailTemplates *EmailTemplatesService + Projects *ProjectsService + SandboxAttachments *SandboxAttachmentsService + SandboxMessages *SandboxMessagesService + Sandboxes *SandboxesService + SendingDomains *SendingDomainsService + Stats *StatsService + Suppressions *SuppressionsService + Webhooks *WebhooksService + func NewClient(token string, opts ...Option) (*Client, error) + func (c *Client) Send(ctx context.Context, req *SendRequest) (*SendResponse, *Response, error) + func (c *Client) SendBatch(ctx context.Context, req *BatchSendRequest) (*BatchSendResponse, *Response, error) + type CompanyInfo struct + Address string + City string + Country string + InfoLevel string + Name string + Phone string + PrivacyPolicyURL string + TermsOfServiceURL string + WebsiteURL string + ZipCode string + type CompanyInfoRequest struct + Address string + City string + Country string + InfoLevel string + Name string + Phone string + PrivacyPolicyURL string + TermsOfServiceURL string + WebsiteURL string + ZipCode string + type CreateSuppressionRequest struct + DomainID int64 + Email string + SendingStream string + Type string + type CreateWebhookRequest struct + Active *bool + DomainID *int64 + EventTypes []string + InboundInboxID *int64 + PayloadFormat string + SendingStream string + URL string + WebhookType string + type DNSRecord struct + Domain string + Key string + Name string + Status string + Type string + Value string + type DateStats struct + Date string + Stats SendingStats + type DomainStats struct + DomainID int64 + Stats SendingStats + type EmailLogMessage struct + Category string + ClicksCount int64 + ClientIP string + CustomVariables map[string]any + DomainID int64 + Events []MessageEvent + From string + MessageID string + OpensCount int64 + RawMessageURL string + SendingStream string + SentAt string + Status string + Subject string + TemplateID *int64 + TemplateVariables map[string]any + To string + type EmailLogsList struct + Messages []*EmailLogMessage + NextPageCursor string + TotalCount int64 + type EmailLogsListOptions struct + Filters map[string]LogFilter + SearchAfter string + SentAfter string + SentBefore string + type EmailLogsService struct + func (s *EmailLogsService) All(ctx context.Context, opts *EmailLogsListOptions) iter.Seq2[*EmailLogMessage, error] + func (s *EmailLogsService) Get(ctx context.Context, messageID string) (*EmailLogMessage, *Response, error) + func (s *EmailLogsService) List(ctx context.Context, opts *EmailLogsListOptions) (*EmailLogsList, *Response, error) + type EmailServiceProviderStats struct + EmailServiceProvider string + Stats SendingStats + type EmailTemplate struct + BodyHTML string + BodyText string + Category string + CreatedAt string + ID int64 + Name string + Subject string + UUID string + UpdatedAt string + type EmailTemplateRequest struct + BodyHTML string + BodyText string + Category string + Name string + Subject string + type EmailTemplatesService struct + func (s *EmailTemplatesService) Create(ctx context.Context, req *EmailTemplateRequest) (*EmailTemplate, *Response, error) + func (s *EmailTemplatesService) Delete(ctx context.Context, templateID int64) (*Response, error) + func (s *EmailTemplatesService) Get(ctx context.Context, templateID int64) (*EmailTemplate, *Response, error) + func (s *EmailTemplatesService) List(ctx context.Context) ([]*EmailTemplate, *Response, error) + func (s *EmailTemplatesService) Update(ctx context.Context, templateID int64, req *EmailTemplateRequest) (*EmailTemplate, *Response, error) + type Error struct + Body []byte + Messages []string + StatusCode int + func (e *Error) Error() string + type ForbiddenError struct + Err *Error + func (e *ForbiddenError) Error() string + func (e *ForbiddenError) Unwrap() error + type HTMLAnalysisEmailClients struct + Desktop []string + Mobile []string + Web []string + type HTMLAnalysisError struct + EmailClients HTMLAnalysisEmailClients + ErrorLine int + RuleName string + type HTMLAnalysisReport struct + Errors []HTMLAnalysisError + Success string + type Host int + const HostBulk + const HostGeneral + const HostSandbox + const HostSend + type LogFilter struct + Operator string + Values []string + type MessageEvent struct + CreatedAt string + Details MessageEventDetails + EventType string + type MessageEventDetails struct + BounceCategory string + ClickURL string + EmailServiceProvider string + EmailServiceProviderResponse string + EmailServiceProviderStatus string + RecipientMX string + RejectReason string + SendingIP string + SpamFeedbackType string + WebIPAddress string + type MessageListOptions struct + LastID int64 + Page int + Search string + type Option func(*Client) error + func WithBaseURL(host Host, rawURL string) Option + func WithBulk(enabled bool) Option + func WithHTTPClient(httpClient *http.Client) Option + func WithSandbox(enabled bool) Option + func WithSandboxID(sandboxID int64) Option + func WithUserAgent(userAgent string) Option + type Permissions struct + CanDestroy bool + CanLeave bool + CanRead bool + CanUpdate bool + type Project struct + ID int64 + Name string + Permissions *Permissions + Sandboxes []*Sandbox + ShareLinks *ShareLinks + type ProjectsService struct + func (s *ProjectsService) Create(ctx context.Context, name string) (*Project, *Response, error) + func (s *ProjectsService) Delete(ctx context.Context, projectID int64) (*Response, error) + func (s *ProjectsService) Get(ctx context.Context, projectID int64) (*Project, *Response, error) + func (s *ProjectsService) List(ctx context.Context) ([]*Project, *Response, error) + func (s *ProjectsService) Update(ctx context.Context, projectID int64, name string) (*Project, *Response, error) + type RateLimitError struct + Err *Error + RetryAfter time.Duration + func (e *RateLimitError) Error() string + func (e *RateLimitError) Unwrap() error + type Response struct + NextPage int + type SMTPInformation struct + Data *SMTPInformationData + OK bool + type SMTPInformationData struct + ClientIP string + MailFromAddr string + type Sandbox struct + APIDomain string + Domain string + EmailDomain string + EmailUsername string + EmailUsernameEnabled bool + EmailsCount int64 + EmailsUnreadCount int64 + ForwardFromEmailAddress string + ForwardedMessagesCount int64 + ID int64 + LastMessageSentAt *string + MaxMessageSize int64 + MaxSize int64 + Name string + POP3Domain string + POP3Ports []int + Password string + Permissions *Permissions + ProjectID int64 + SMTPPorts []int + SentMessagesCount int64 + Status string + Used bool + Username string + type SandboxAttachment struct + AttachmentHumanSize string + AttachmentSize int64 + AttachmentType string + ContentID string + ContentType string + CreatedAt string + DownloadPath string + Filename string + ID int64 + MessageID int64 + TransferEncoding string + UpdatedAt string + type SandboxAttachmentsService struct + func (s *SandboxAttachmentsService) Get(ctx context.Context, sandboxID, messageID, attachmentID int64) (*SandboxAttachment, *Response, error) + func (s *SandboxAttachmentsService) List(ctx context.Context, sandboxID, messageID int64, opts *AttachmentListOptions) ([]*SandboxAttachment, *Response, error) + type SandboxMessage struct + CreatedAt string + DownloadPath string + EmailSize int64 + FromEmail string + FromName string + HTMLBodySize int64 + HTMLPath string + HTMLSourcePath string + HumanSize string + ID int64 + IsRead bool + RawPath string + SMTPInformation *SMTPInformation + SandboxID int64 + SentAt string + Subject string + TextBodySize int64 + ToEmail string + ToName string + TxtPath string + UpdatedAt string + type SandboxMessagesService struct + func (s *SandboxMessagesService) All(ctx context.Context, sandboxID int64, opts *MessageListOptions) iter.Seq2[*SandboxMessage, error] + func (s *SandboxMessagesService) Delete(ctx context.Context, sandboxID, messageID int64) (*SandboxMessage, *Response, error) + func (s *SandboxMessagesService) EML(ctx context.Context, sandboxID, messageID int64) ([]byte, *Response, error) + func (s *SandboxMessagesService) Forward(ctx context.Context, sandboxID, messageID int64, email string) (*Response, error) + func (s *SandboxMessagesService) Get(ctx context.Context, sandboxID, messageID int64) (*SandboxMessage, *Response, error) + func (s *SandboxMessagesService) HTML(ctx context.Context, sandboxID, messageID int64) ([]byte, *Response, error) + func (s *SandboxMessagesService) HTMLAnalysis(ctx context.Context, sandboxID, messageID int64) (*HTMLAnalysisReport, *Response, error) + func (s *SandboxMessagesService) HTMLSource(ctx context.Context, sandboxID, messageID int64) ([]byte, *Response, error) + func (s *SandboxMessagesService) Headers(ctx context.Context, sandboxID, messageID int64) (map[string]string, *Response, error) + func (s *SandboxMessagesService) List(ctx context.Context, sandboxID int64, opts *MessageListOptions) ([]*SandboxMessage, *Response, error) + func (s *SandboxMessagesService) Raw(ctx context.Context, sandboxID, messageID int64) ([]byte, *Response, error) + func (s *SandboxMessagesService) SpamReport(ctx context.Context, sandboxID, messageID int64) (*SpamReport, *Response, error) + func (s *SandboxMessagesService) Text(ctx context.Context, sandboxID, messageID int64) ([]byte, *Response, error) + func (s *SandboxMessagesService) Update(ctx context.Context, sandboxID, messageID int64, isRead bool) (*SandboxMessage, *Response, error) + type SandboxUpdateRequest struct + EmailUsername string + Name string + type SandboxesService struct + func (s *SandboxesService) Clean(ctx context.Context, sandboxID int64) (*Sandbox, *Response, error) + func (s *SandboxesService) Create(ctx context.Context, projectID int64, name string) (*Sandbox, *Response, error) + func (s *SandboxesService) Delete(ctx context.Context, sandboxID int64) (*Sandbox, *Response, error) + func (s *SandboxesService) Get(ctx context.Context, sandboxID int64) (*Sandbox, *Response, error) + func (s *SandboxesService) List(ctx context.Context) ([]*Sandbox, *Response, error) + func (s *SandboxesService) MarkAllRead(ctx context.Context, sandboxID int64) (*Sandbox, *Response, error) + func (s *SandboxesService) ResetCredentials(ctx context.Context, sandboxID int64) (*Sandbox, *Response, error) + func (s *SandboxesService) ResetEmailAddress(ctx context.Context, sandboxID int64) (*Sandbox, *Response, error) + func (s *SandboxesService) ToggleEmailAddress(ctx context.Context, sandboxID int64) (*Sandbox, *Response, error) + func (s *SandboxesService) Update(ctx context.Context, sandboxID int64, req *SandboxUpdateRequest) (*Sandbox, *Response, error) + type SendRequest struct + Attachments []Attachment + Bcc []Address + Category string + Cc []Address + CustomVariables map[string]any + From Address + HTML string + Headers map[string]string + ReplyTo *Address + Subject string + TemplateUUID string + TemplateVariables map[string]any + Text string + To []Address + type SendResponse struct + MessageIDs []string + Success bool + type SendingDomain struct + AlertRecipientEmail string + AutoUnsubscribeLinkEnabled bool + ClickTrackingEnabled bool + ComplianceStatus string + CriticalAlertsEnabled bool + CustomDomainTrackingEnabled bool + DNSRecords []DNSRecord + DNSVerified bool + DNSVerifiedAt string + Demo bool + DomainName string + HealthAlertsEnabled bool + ID int64 + OpenTrackingEnabled bool + Permissions *SendingDomainPermissions + type SendingDomainPermissions struct + CanDestroy bool + CanRead bool + CanUpdate bool + type SendingDomainsService struct + func (s *SendingDomainsService) CompanyInfo(ctx context.Context, domainID int64) (*CompanyInfo, *Response, error) + func (s *SendingDomainsService) Create(ctx context.Context, domainName string) (*SendingDomain, *Response, error) + func (s *SendingDomainsService) CreateCompanyInfo(ctx context.Context, domainID int64, req *CompanyInfoRequest) (*CompanyInfo, *Response, error) + func (s *SendingDomainsService) Delete(ctx context.Context, domainID int64) (*Response, error) + func (s *SendingDomainsService) Get(ctx context.Context, domainID int64) (*SendingDomain, *Response, error) + func (s *SendingDomainsService) List(ctx context.Context) ([]*SendingDomain, *Response, error) + func (s *SendingDomainsService) SendSetupInstructions(ctx context.Context, domainID int64, email string) (*Response, error) + func (s *SendingDomainsService) Update(ctx context.Context, domainID int64, req *UpdateDomainRequest) (*SendingDomain, *Response, error) + func (s *SendingDomainsService) UpdateCompanyInfo(ctx context.Context, domainID int64, req *CompanyInfoRequest) (*CompanyInfo, *Response, error) + type SendingStats struct + BounceCount int64 + BounceRate float64 + ClickCount int64 + ClickRate float64 + DeliveryCount int64 + DeliveryRate float64 + OpenCount int64 + OpenRate float64 + SpamCount int64 + SpamRate float64 + type ShareLinks struct + Admin string + Viewer string + type SpamReport struct + Details []SpamReportDetail + ResponseCode int + ResponseMessage string + ResponseVersion string + Score float64 + Spam bool + Threshold float64 + type SpamReportDetail struct + Description string + Pts float64 + RuleName string + type StatsOptions struct + Categories []string + EmailServiceProviders []string + EndDate string + SendingDomainIDs []int64 + SendingStreams []string + StartDate string + type StatsService struct + func (s *StatsService) ByCategory(ctx context.Context, opts *StatsOptions) ([]*CategoryStats, *Response, error) + func (s *StatsService) ByDate(ctx context.Context, opts *StatsOptions) ([]*DateStats, *Response, error) + func (s *StatsService) ByDomain(ctx context.Context, opts *StatsOptions) ([]*DomainStats, *Response, error) + func (s *StatsService) ByEmailServiceProvider(ctx context.Context, opts *StatsOptions) ([]*EmailServiceProviderStats, *Response, error) + func (s *StatsService) Get(ctx context.Context, opts *StatsOptions) (*SendingStats, *Response, error) + type Suppression struct + CreatedAt string + DomainName string + Email string + ID string + MessageBounceCategory string + MessageCategory string + MessageClientIP string + MessageCreatedAt string + MessageESPResponse string + MessageESPServerType string + MessageOutgoingIP string + MessageRecipientMXName string + MessageSenderEmail string + MessageSubject string + SendingStream string + Type string + type SuppressionListOptions struct + Email string + EndTime string + LastID string + StartTime string + type SuppressionsService struct + func (s *SuppressionsService) Create(ctx context.Context, req *CreateSuppressionRequest) (*Suppression, *Response, error) + func (s *SuppressionsService) Delete(ctx context.Context, suppressionID string) (*Suppression, *Response, error) + func (s *SuppressionsService) List(ctx context.Context, opts *SuppressionListOptions) ([]*Suppression, *Response, error) + type UnauthorizedError struct + Err *Error + func (e *UnauthorizedError) Error() string + func (e *UnauthorizedError) Unwrap() error + type UpdateDomainRequest struct + AutoUnsubscribeLinkEnabled *bool + ClickTrackingEnabled *bool + OpenTrackingEnabled *bool + type UpdateWebhookRequest struct + Active *bool + EventTypes []string + PayloadFormat string + URL string + type ValidationError struct + Err *Error + Fields map[string][]string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Webhook struct + Active bool + DomainID *int64 + EventTypes []string + ID int64 + InboundInboxID *int64 + PayloadFormat string + SendingStream string + SigningSecret string + URL string + WebhookType string + type WebhooksService struct + func (s *WebhooksService) Create(ctx context.Context, req *CreateWebhookRequest) (*Webhook, *Response, error) + func (s *WebhooksService) Delete(ctx context.Context, webhookID int64) (*Webhook, *Response, error) + func (s *WebhooksService) Get(ctx context.Context, webhookID int64) (*Webhook, *Response, error) + func (s *WebhooksService) List(ctx context.Context) ([]*Webhook, *Response, error) + func (s *WebhooksService) Update(ctx context.Context, webhookID int64, req *UpdateWebhookRequest) (*Webhook, *Response, error)