boundry.
Sydney, Australia

Go SDK

github.com/flindev/boundry-go provides an ergonomic emails.send helper and the complete generated API through client.API.

Install

Browse the published package or inspect its public generated source.

terminalShell
Shell
go get github.com/flindev/boundry-go

Quickstart

Create a project API key in the Boundry dashboard, keep BOUNDRY_API_KEY on the server, and send from a domain verified in this project.

send.goGo
Go
client := boundry.NewClient(os.Getenv("BOUNDRY_API_KEY"))

email, err := client.Emails.Send(context.Background(), &boundry.SendEmailParams{
    From: "Acme <hello@acme.com>",
    To: []string{"ava@northwind.com.au"},
    Subject: "Welcome to Acme",
    HTML: "<p>It works.</p>",
})
if err != nil {
    panic(err)
}

fmt.Println(email.Id)

Complete API

The low-level client is generated from the canonical Laravel OpenAPI contract, so every public operation remains available even when it does not have a convenience helper.

SDK methodWhat it doesAPI reference
client.API.ListApiKeys(...)listApiKeysOpenAPI only
client.API.CreateApiKey(...)createApiKeyOpenAPI only
client.API.DeleteApiKey(...)deleteApiKeyOpenAPI only
client.API.ListBroadcasts(...)listBroadcastsOpenAPI only
client.API.CreateBroadcast(...)createBroadcastOpenAPI only
client.API.DeleteBroadcast(...)deleteBroadcastOpenAPI only
client.API.GetBroadcast(...)getBroadcastOpenAPI only
client.API.UpdateBroadcast(...)updateBroadcastOpenAPI only
client.API.CancelBroadcast(...)cancelBroadcastOpenAPI only
client.API.ListBroadcastClickedLinks(...)listBroadcastClickedLinksOpenAPI only
client.API.GetBroadcastMetrics(...)getBroadcastMetricsOpenAPI only
client.API.ListBroadcastRecipients(...)listBroadcastRecipientsOpenAPI only
client.API.SendBroadcast(...)sendBroadcastOpenAPI only
client.API.ListContactProperties(...)listContactPropertiesOpenAPI only
client.API.CreateContactProperty(...)createContactPropertyOpenAPI only
client.API.DeleteContactProperty(...)deleteContactPropertyOpenAPI only
client.API.GetContactProperty(...)getContactPropertyOpenAPI only
client.API.UpdateContactProperty(...)updateContactPropertyOpenAPI only
client.API.ListContacts(...)listContactsOpenAPI only
client.API.CreateContact(...)createContactOpenAPI only
client.API.DeleteContact(...)deleteContactOpenAPI only
client.API.GetContact(...)getContactOpenAPI only
client.API.UpdateContact(...)updateContactOpenAPI only
client.API.ListContactSegments(...)listContactSegmentsOpenAPI only
client.API.RemoveContactFromSegment(...)removeContactFromSegmentOpenAPI only
client.API.AddContactToSegment(...)addContactToSegmentOpenAPI only
client.API.GetContactTopics(...)getContactTopicsOpenAPI only
client.API.UpdateContactTopics(...)updateContactTopicsOpenAPI only
client.API.ListDomains(...)List domainsView endpoint
client.API.CreateDomain(...)Create a domainView endpoint
client.API.DeleteDomain(...)deleteDomainOpenAPI only
client.API.GetDomain(...)Retrieve a domainView endpoint
client.API.UpdateDomain(...)updateDomainOpenAPI only
client.API.VerifyDomain(...)Verify a domainView endpoint
client.API.CreateDomainClaim(...)createDomainClaimOpenAPI only
client.API.GetDomainClaim(...)getDomainClaimOpenAPI only
client.API.VerifyDomainClaim(...)verifyDomainClaimOpenAPI only
client.API.ListEmails(...)List emailsView endpoint
client.API.SendEmail(...)Send an emailView endpoint
client.API.GetEmail(...)Retrieve an emailView endpoint
client.API.UpdateScheduledEmail(...)updateScheduledEmailOpenAPI only
client.API.ListEmailAttachments(...)listEmailAttachmentsOpenAPI only
client.API.GetEmailAttachment(...)getEmailAttachmentOpenAPI only
client.API.CancelEmail(...)cancelEmailOpenAPI only
client.API.RetryEmail(...)retryEmailOpenAPI only
client.API.GetEmailSource(...)getEmailSourceOpenAPI only
client.API.SendBatchEmails(...)sendBatchEmailsOpenAPI only
client.API.GetEmailMetrics(...)getEmailMetricsOpenAPI only
client.API.ListReceivedEmails(...)listReceivedEmailsOpenAPI only
client.API.GetReceivedEmail(...)getReceivedEmailOpenAPI only
client.API.ListReceivedEmailAttachments(...)listReceivedEmailAttachmentsOpenAPI only
client.API.GetReceivedEmailAttachment(...)getReceivedEmailAttachmentOpenAPI only
client.API.GetReceivedEmailSource(...)getReceivedEmailSourceOpenAPI only
client.API.GetReceivedEmailThread(...)getReceivedEmailThreadOpenAPI only
client.API.Health(...)healthOpenAPI only
client.API.ListLogs(...)listLogsOpenAPI only
client.API.GetLog(...)getLogOpenAPI only
client.API.AuthorizeOAuth(...)authorizeOAuthOpenAPI only
client.API.AuthorizeOAuthPost(...)authorizeOAuthPostOpenAPI only
client.API.ListOAuthGrants(...)listOAuthGrantsOpenAPI only
client.API.RevokeOAuthGrant(...)revokeOAuthGrantOpenAPI only
client.API.RegisterOAuthClient(...)registerOAuthClientOpenAPI only
client.API.RevokeOAuthToken(...)revokeOAuthTokenOpenAPI only
client.API.ExchangeOAuthToken(...)exchangeOAuthTokenOpenAPI only
client.API.ListRegions(...)List live regions and markets accepting demand requestsOpenAPI only
client.API.RequestRegion(...)Create or update a regional demand requestOpenAPI only
client.API.ListSegments(...)listSegmentsOpenAPI only
client.API.CreateSegment(...)createSegmentOpenAPI only
client.API.DeleteSegment(...)deleteSegmentOpenAPI only
client.API.GetSegment(...)getSegmentOpenAPI only
client.API.ListSegmentContacts(...)listSegmentContactsOpenAPI only
client.API.GetSegmentMetrics(...)getSegmentMetricsOpenAPI only
client.API.ListSuppressions(...)listSuppressionsOpenAPI only
client.API.CreateSuppression(...)createSuppressionOpenAPI only
client.API.DeleteSuppression(...)deleteSuppressionOpenAPI only
client.API.GetSuppression(...)getSuppressionOpenAPI only
client.API.DeleteBatchSuppressions(...)deleteBatchSuppressionsOpenAPI only
client.API.CreateBatchSuppressions(...)createBatchSuppressionsOpenAPI only
client.API.ListTemplates(...)listTemplatesOpenAPI only
client.API.CreateTemplate(...)createTemplateOpenAPI only
client.API.DeleteTemplate(...)deleteTemplateOpenAPI only
client.API.GetTemplate(...)getTemplateOpenAPI only
client.API.UpdateTemplate(...)updateTemplateOpenAPI only
client.API.DuplicateTemplate(...)duplicateTemplateOpenAPI only
client.API.PublishTemplate(...)publishTemplateOpenAPI only
client.API.ListTopics(...)listTopicsOpenAPI only
client.API.CreateTopic(...)createTopicOpenAPI only
client.API.DeleteTopic(...)deleteTopicOpenAPI only
client.API.GetTopic(...)getTopicOpenAPI only
client.API.UpdateTopic(...)updateTopicOpenAPI only
client.API.ManagedOneClickUnsubscribe(...)Process an RFC 8058 one-click unsubscribeOpenAPI only
client.API.ListProjectWebhookEvents(...)listProjectWebhookEventsOpenAPI only
client.API.ListWebhooks(...)List webhooksView endpoint
client.API.CreateWebhook(...)Create a webhookView endpoint
client.API.DeleteWebhook(...)Delete a webhookView endpoint
client.API.GetWebhook(...)Retrieve a webhookView endpoint
client.API.UpdateWebhook(...)Update a webhookView endpoint
client.API.ListWebhookEvents(...)listWebhookEventsOpenAPI only
client.API.GetWebhookEvent(...)getWebhookEventOpenAPI only
client.API.ListWebhookAttempts(...)listWebhookAttemptsOpenAPI only