Skip to main content
v1.0.0

Golang SDK

Major v1 release with a revamped, struct-based request API across Email, Events, and Webhooks.

Summary

  • Revamped email sending to use SendEmailRequest instead of positional arguments.
  • Aligned events querying and webhook creation with GetEventsRequest and WebhookCreateRequest.

Details

Email
  • Added SendEmailRequest with From, To, Subject, Text, Html, Cc, Bcc, ReplyTo, Attachments, Headers, and Tags.
  • Updated EmailsService.Send signature to Send(req *SendEmailRequest) (*EmailResponse, error).
Events
  • Added GetEventsRequest with StartDate, EndDate, Event, MessageID, StartFrom, and RetrieveCount.
  • Updated EventsService.Get signature to Get(req *GetEventsRequest) (*EventsResponse, error).
  • All fields are optional; nil means no filters (GET /events).
Webhooks
  • Reused WebhookCreateRequest as the user-facing create payload.
  • Updated WebhooksService.Create signature to Create(req *WebhookCreateRequest) (*WebhookCreateResponse, error).

Breaking Changes

  • EmailsService.Send no longer supports the old 12-argument signature.
  • EventsService.Get and WebhooksService.Create now require struct-based request payloads.
  • Existing integrations must migrate to request structs.

Migration Example

Before
After
v1.0.0

MCP Server

Released a MCP server for AI tools like Cursor and Claude to send emails and manage webhooks/events.
v1.0.2

Node.js SDK

Fixed TypeScript declarations resolution by pointing "types" to "./dist".
v1.0.0

Ruby SDK

Released a RubyGems client SDK for Ruby developers to integrate with SendLayer’s API.
v0.1.0

Go SDK

Released a client SDK for Golang developers to integrate with SendLayer’s API.
v1.0.0

PHP SDK

Released a client SDK for PHP developers to integrate with SendLayer’s API.
v1.0.0

Node.js SDK

Released a client SDK for JavaScript developers to integrate with SendLayer’s API.
v1.0.0

Python SDK

Released a client SDK for Python developers to integrate the API.