Versions in this module Expand all Collapse all v1 v1.0.0 Nov 14, 2026 Changes in this version + const DefaultBaseURL + type APIError struct + Code string + Details map[string]any + Message string + Status int + func (e *APIError) Error() string + type Client struct + APIKey string + BaseURL string + HTTP *http.Client + func New(apiKey string) *Client + func (c *Client) AddSuppression(ctx context.Context, in SuppressionInput) (map[string]any, error) + func (c *Client) CreateDomain(ctx context.Context, domain string) (map[string]any, error) + func (c *Client) CreateInboundRoute(ctx context.Context, in InboundRouteInput) (map[string]any, error) + func (c *Client) CreateWebhook(ctx context.Context, in WebhookInput) (map[string]any, error) + func (c *Client) GetEmail(ctx context.Context, id string) (map[string]any, error) + func (c *Client) Health(ctx context.Context) (map[string]any, error) + func (c *Client) ListDomains(ctx context.Context) (map[string]any, error) + func (c *Client) ListInboundRoutes(ctx context.Context) (map[string]any, error) + func (c *Client) ListMessages(ctx context.Context, params url.Values) (map[string]any, error) + func (c *Client) ListSuppressions(ctx context.Context, params url.Values) (map[string]any, error) + func (c *Client) ListWebhooks(ctx context.Context) (map[string]any, error) + func (c *Client) SendEmail(ctx context.Context, in EmailInput) (*EmailAccepted, error) + func (c *Client) Usage(ctx context.Context, params url.Values) (map[string]any, error) + func (c *Client) VerifyDomain(ctx context.Context, id string) (map[string]any, error) + type Delivery struct + Attempts int + DeliveredAt string + EnhancedCode string + ID string + LastError string + MXHost string + ProviderID string + Recipient string + SMTPCode int + Status string + type Domain struct + DKIMSelector string + Domain string + ID string + Status string + type EmailAccepted struct + ID string + Recipients int + Status string + Warning string + type EmailInput struct + From string + HTML string + Headers map[string]string + ReplyTo string + Stream string + Subject string + Tags map[string]string + Text string + To any + type InboundRouteInput struct + Action string + Address string + Destination string + Note string + type Message struct + CreatedAt string + From string + ID string + Recipients int + Status string + Stream string + Subject string + type SuppressionInput struct + Email string + Note string + Reason string + Stream string + type WebhookInput struct + Description string + DomainIDs []string + Events []string + URL string