Versions in this module Expand all Collapse all v1 v1.2.0 Jul 28, 2026 Changes in this version type Client + func (c *Client) Contacts(ctx context.Context, opts ListOptions) (*Page[Contact], error) + func (c *Client) CreateContact(ctx context.Context, email, name, notes string) (*Contact, error) + func (c *Client) CreateDomain(ctx context.Context, domain string) (*Domain, error) + func (c *Client) DeleteContact(ctx context.Context, id string) (*Deleted, error) + func (c *Client) DeleteDomain(ctx context.Context, id string) (*Deleted, error) + func (c *Client) Domain(ctx context.Context, id string) (*Domain, error) + func (c *Client) Domains(ctx context.Context, opts ListOptions) (*Page[Domain], error) + func (c *Client) Suppressions(ctx context.Context, opts ListOptions) (*Page[Suppression], error) + type Contact struct + CreatedAt string + Email string + ID int64 + Name string + Notes string + type DNSRecord struct + Host string + Priority int + Type string + Value string + type Deleted struct + Deleted bool + Domain string + Email string + type Domain struct + CreatedAt string + DNSRecords map[string]DNSRecord + Domain string + ID int64 + IsVerified bool + VerificationToken string + type ListOptions struct + Limit int + Offset int + Search string + type Page struct + Data []T + Limit int64 + Object string + Offset int64 + Total int64 + type Suppression struct + CreatedAt string + Email string + Reason string v1.0.0 Jul 27, 2026 Changes in this version + const Version + var ErrNoRecipient = errors.New("vibemail: To must contain a recipient address") + var ErrTooManyRecipients = errors.New(...) + func Bool(b bool) *bool + type BatchResponse struct + Data []BatchResult + type BatchResult struct + Error string + ID string + Status string + type Client struct + func New(apiKey string, opts ...Option) *Client + func (c *Client) Batch(ctx context.Context, emails []SendRequest, opts ...SendOption) (*BatchResponse, error) + func (c *Client) Cancel(ctx context.Context, id string) (*SendResponse, error) + func (c *Client) Get(ctx context.Context, id string) (*SendResponse, error) + func (c *Client) Send(ctx context.Context, req SendRequest, opts ...SendOption) (*SendResponse, error) + func (c *Client) Templates(ctx context.Context) ([]Template, error) + type Error struct + Body string + Detail string + RetryAfter time.Duration + StatusCode int + func (e *Error) Error() string + func (e *Error) Retryable() bool + type Option func(*Client) + func WithBaseURL(u string) Option + func WithHTTPClient(h *http.Client) Option + func WithMaxRetries(n int) Option + type SendOption func(*sendOptions) + func WithIdempotencyKey(key string) SendOption + type SendRequest struct + From string + HTML string + ScheduledAt string + Subject string + Tags []string + Template string + Text string + To string + TrackClicks *bool + TrackOpens *bool + Variables map[string]string + func (r *SendRequest) ScheduleAt(t time.Time) + type SendResponse struct + ID string + ScheduledAt string + Status string + type Template struct + HTMLBody string + ID int64 + Name string + Subject string + TextBody string