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.
Shell
go get github.com/flindev/boundry-goQuickstart
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.
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 method | What it does | API reference |
|---|---|---|
client.API.ListApiKeys(...) | listApiKeys | OpenAPI only |
client.API.CreateApiKey(...) | createApiKey | OpenAPI only |
client.API.DeleteApiKey(...) | deleteApiKey | OpenAPI only |
client.API.ListBroadcasts(...) | listBroadcasts | OpenAPI only |
client.API.CreateBroadcast(...) | createBroadcast | OpenAPI only |
client.API.DeleteBroadcast(...) | deleteBroadcast | OpenAPI only |
client.API.GetBroadcast(...) | getBroadcast | OpenAPI only |
client.API.UpdateBroadcast(...) | updateBroadcast | OpenAPI only |
client.API.CancelBroadcast(...) | cancelBroadcast | OpenAPI only |
client.API.ListBroadcastClickedLinks(...) | listBroadcastClickedLinks | OpenAPI only |
client.API.GetBroadcastMetrics(...) | getBroadcastMetrics | OpenAPI only |
client.API.ListBroadcastRecipients(...) | listBroadcastRecipients | OpenAPI only |
client.API.SendBroadcast(...) | sendBroadcast | OpenAPI only |
client.API.ListContactProperties(...) | listContactProperties | OpenAPI only |
client.API.CreateContactProperty(...) | createContactProperty | OpenAPI only |
client.API.DeleteContactProperty(...) | deleteContactProperty | OpenAPI only |
client.API.GetContactProperty(...) | getContactProperty | OpenAPI only |
client.API.UpdateContactProperty(...) | updateContactProperty | OpenAPI only |
client.API.ListContacts(...) | listContacts | OpenAPI only |
client.API.CreateContact(...) | createContact | OpenAPI only |
client.API.DeleteContact(...) | deleteContact | OpenAPI only |
client.API.GetContact(...) | getContact | OpenAPI only |
client.API.UpdateContact(...) | updateContact | OpenAPI only |
client.API.ListContactSegments(...) | listContactSegments | OpenAPI only |
client.API.RemoveContactFromSegment(...) | removeContactFromSegment | OpenAPI only |
client.API.AddContactToSegment(...) | addContactToSegment | OpenAPI only |
client.API.GetContactTopics(...) | getContactTopics | OpenAPI only |
client.API.UpdateContactTopics(...) | updateContactTopics | OpenAPI only |
client.API.ListDomains(...) | List domains | View endpoint |
client.API.CreateDomain(...) | Create a domain | View endpoint |
client.API.DeleteDomain(...) | deleteDomain | OpenAPI only |
client.API.GetDomain(...) | Retrieve a domain | View endpoint |
client.API.UpdateDomain(...) | updateDomain | OpenAPI only |
client.API.VerifyDomain(...) | Verify a domain | View endpoint |
client.API.CreateDomainClaim(...) | createDomainClaim | OpenAPI only |
client.API.GetDomainClaim(...) | getDomainClaim | OpenAPI only |
client.API.VerifyDomainClaim(...) | verifyDomainClaim | OpenAPI only |
client.API.ListEmails(...) | List emails | View endpoint |
client.API.SendEmail(...) | Send an email | View endpoint |
client.API.GetEmail(...) | Retrieve an email | View endpoint |
client.API.UpdateScheduledEmail(...) | updateScheduledEmail | OpenAPI only |
client.API.ListEmailAttachments(...) | listEmailAttachments | OpenAPI only |
client.API.GetEmailAttachment(...) | getEmailAttachment | OpenAPI only |
client.API.CancelEmail(...) | cancelEmail | OpenAPI only |
client.API.RetryEmail(...) | retryEmail | OpenAPI only |
client.API.GetEmailSource(...) | getEmailSource | OpenAPI only |
client.API.SendBatchEmails(...) | sendBatchEmails | OpenAPI only |
client.API.GetEmailMetrics(...) | getEmailMetrics | OpenAPI only |
client.API.ListReceivedEmails(...) | listReceivedEmails | OpenAPI only |
client.API.GetReceivedEmail(...) | getReceivedEmail | OpenAPI only |
client.API.ListReceivedEmailAttachments(...) | listReceivedEmailAttachments | OpenAPI only |
client.API.GetReceivedEmailAttachment(...) | getReceivedEmailAttachment | OpenAPI only |
client.API.GetReceivedEmailSource(...) | getReceivedEmailSource | OpenAPI only |
client.API.GetReceivedEmailThread(...) | getReceivedEmailThread | OpenAPI only |
client.API.Health(...) | health | OpenAPI only |
client.API.ListLogs(...) | listLogs | OpenAPI only |
client.API.GetLog(...) | getLog | OpenAPI only |
client.API.AuthorizeOAuth(...) | authorizeOAuth | OpenAPI only |
client.API.AuthorizeOAuthPost(...) | authorizeOAuthPost | OpenAPI only |
client.API.ListOAuthGrants(...) | listOAuthGrants | OpenAPI only |
client.API.RevokeOAuthGrant(...) | revokeOAuthGrant | OpenAPI only |
client.API.RegisterOAuthClient(...) | registerOAuthClient | OpenAPI only |
client.API.RevokeOAuthToken(...) | revokeOAuthToken | OpenAPI only |
client.API.ExchangeOAuthToken(...) | exchangeOAuthToken | OpenAPI only |
client.API.ListRegions(...) | List live regions and markets accepting demand requests | OpenAPI only |
client.API.RequestRegion(...) | Create or update a regional demand request | OpenAPI only |
client.API.ListSegments(...) | listSegments | OpenAPI only |
client.API.CreateSegment(...) | createSegment | OpenAPI only |
client.API.DeleteSegment(...) | deleteSegment | OpenAPI only |
client.API.GetSegment(...) | getSegment | OpenAPI only |
client.API.ListSegmentContacts(...) | listSegmentContacts | OpenAPI only |
client.API.GetSegmentMetrics(...) | getSegmentMetrics | OpenAPI only |
client.API.ListSuppressions(...) | listSuppressions | OpenAPI only |
client.API.CreateSuppression(...) | createSuppression | OpenAPI only |
client.API.DeleteSuppression(...) | deleteSuppression | OpenAPI only |
client.API.GetSuppression(...) | getSuppression | OpenAPI only |
client.API.DeleteBatchSuppressions(...) | deleteBatchSuppressions | OpenAPI only |
client.API.CreateBatchSuppressions(...) | createBatchSuppressions | OpenAPI only |
client.API.ListTemplates(...) | listTemplates | OpenAPI only |
client.API.CreateTemplate(...) | createTemplate | OpenAPI only |
client.API.DeleteTemplate(...) | deleteTemplate | OpenAPI only |
client.API.GetTemplate(...) | getTemplate | OpenAPI only |
client.API.UpdateTemplate(...) | updateTemplate | OpenAPI only |
client.API.DuplicateTemplate(...) | duplicateTemplate | OpenAPI only |
client.API.PublishTemplate(...) | publishTemplate | OpenAPI only |
client.API.ListTopics(...) | listTopics | OpenAPI only |
client.API.CreateTopic(...) | createTopic | OpenAPI only |
client.API.DeleteTopic(...) | deleteTopic | OpenAPI only |
client.API.GetTopic(...) | getTopic | OpenAPI only |
client.API.UpdateTopic(...) | updateTopic | OpenAPI only |
client.API.ManagedOneClickUnsubscribe(...) | Process an RFC 8058 one-click unsubscribe | OpenAPI only |
client.API.ListProjectWebhookEvents(...) | listProjectWebhookEvents | OpenAPI only |
client.API.ListWebhooks(...) | List webhooks | View endpoint |
client.API.CreateWebhook(...) | Create a webhook | View endpoint |
client.API.DeleteWebhook(...) | Delete a webhook | View endpoint |
client.API.GetWebhook(...) | Retrieve a webhook | View endpoint |
client.API.UpdateWebhook(...) | Update a webhook | View endpoint |
client.API.ListWebhookEvents(...) | listWebhookEvents | OpenAPI only |
client.API.GetWebhookEvent(...) | getWebhookEvent | OpenAPI only |
client.API.ListWebhookAttempts(...) | listWebhookAttempts | OpenAPI only |