Golang SDK
Major v1 release with a revamped, struct-based request API across Email, Events, and Webhooks.Summary
- Revamped email sending to use
SendEmailRequestinstead of positional arguments. - Aligned events querying and webhook creation with
GetEventsRequestandWebhookCreateRequest.
Details
Email- Added
SendEmailRequestwithFrom,To,Subject,Text,Html,Cc,Bcc,ReplyTo,Attachments,Headers, andTags. - Updated
EmailsService.Sendsignature toSend(req *SendEmailRequest) (*EmailResponse, error).
- Added
GetEventsRequestwithStartDate,EndDate,Event,MessageID,StartFrom, andRetrieveCount. - Updated
EventsService.Getsignature toGet(req *GetEventsRequest) (*EventsResponse, error). - All fields are optional;
nilmeans no filters (GET /events).
- Reused
WebhookCreateRequestas the user-facing create payload. - Updated
WebhooksService.Createsignature toCreate(req *WebhookCreateRequest) (*WebhookCreateResponse, error).
Breaking Changes
EmailsService.Sendno longer supports the old 12-argument signature.EventsService.GetandWebhooksService.Createnow require struct-based request payloads.- Existing integrations must migrate to request structs.
Migration Example
BeforeMCP Server
Released a MCP server for AI tools like Cursor and Claude to send emails and manage webhooks/events.Node.js SDK
Fixed TypeScript declarations resolution by pointing"types" to "./dist".