Build high-performance lead capture, links and visitor tracking into your Go services. Zero external dependencies with native error handling and concurrency support.
Integrate Linkbreakers into your Go stack with type-safe, production-ready methods.
Install the SDK, authenticate, and make your first API call.
go get github.com/linkbreakers-com/linkbreakers-go
package main
import (
"context"
"fmt"
"os"
linkbreakers "github.com/linkbreakers-com/linkbreakers-go"
)
func main() {
config := linkbreakers.NewConfiguration()
config.AddDefaultHeader("Authorization",
"Bearer "+os.Getenv("LINKBREAKERS_SECRET_KEY"))
config.Servers = linkbreakers.ServerConfigurations{
{URL: "https://api.linkbreakers.com"},
}
client := linkbreakers.NewAPIClient(config)
request := linkbreakers.NewCreateLinkRequest("https://example.com")
request.SetName("Campaign Link")
request.SetTags([]string{"marketing"})
response, _, err := client.LinksAPI.LinksServiceCreate(
context.Background()).CreateLinkRequest(*request).Execute()
if err != nil {
panic(err)
}
fmt.Println("Short URL:", response.Link.Shortlink)
}resp, _, err := client.LinksAPI.LinksServiceList(ctx).
PageSize(20).
Execute()
if err != nil {
log.Fatal(err)
}
for _, link := range resp.Links {
fmt.Printf("%s -> %s\n", link.Name, link.Shortlink)
}domain, _, err := client.DomainsAPI.DomainsServiceCheck(ctx).
DomainId("dom_abc123").
Execute()
if err != nil {
log.Fatal(err)
}
fmt.Printf("DNS: %s, TLS: %s\n", domain.DnsStatus, domain.TlsStatus)What teams build with the Linkbreakers Go SDK.
High-throughput microservices and API gateways
Custom CLI tools and system utilities
Kubernetes operators and infrastructure automation
The Go SDK is one of five official SDKs. Linkbreakers also offers an MCP server for AI assistants and a CLI for terminal workflows.
Sign up for Linkbreakers, create an API token, and start integrating in minutes.