# README
Go API client for
The Twilio SendGrid Link Branding API allows you to configure your domain settings so that all of the click-tracked links, opens, and images in your emails are served from your domain rather than sendgrid.net
. Spam filters and recipient servers look at the links within emails to determine whether the email appear trustworthy. They use the reputation of the root domain to determine whether the links can be trusted.
You can also manage Link Branding in the Sender Authentication section of the Twilio SendGrid application user interface.
See [How to Set Up Link Branding](https: //sendgrid.com/docs/ui/account-and-settings/how-to-set-up-link-branding/) for more information.
Overview
This API client was generated by the OpenAPI Generator project from the OpenAPI specs located at twilio/sendgrid-oai. By using the OpenAPI-spec from a remote server, you can easily generate an API client.
- API version: 1.0.0
- Package version:
- Build date: 2025-08-18T08:58:25.522567Z[Etc/UTC]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator For more information, please visit https://support.sendgrid.com/hc/en-us
Installation
Install the following dependencies:
go get github.com/stretchr/testify/assert
go get golang.org/x/net/context
Put the package under your project folder and add the following in import:
import "./"
Documentation for API Endpoints
All URIs are relative to https://api.sendgrid.com
Class | Method | HTTP request | Description |
---|---|---|---|
AssociateBrandedLinkWithSubuser | AssociateBrandedLinkWithSubuser | Post /v3/whitelabel/links/{LinkId}/subuser | Associate a branded link with a subuser |
CreateBrandedLink | CreateBrandedLink | Post /v3/whitelabel/links | Create a branded link |
DeleteBrandedLink | DeleteBrandedLink | Delete /v3/whitelabel/links/{Id} | Delete a branded link |
DisassociateBrandedLinkFromSubuser | DisassociateBrandedLinkFromSubuser | Delete /v3/whitelabel/links/subuser | Disassociate a branded link from a subuser |
GetBrandedLink | GetBrandedLink | Get /v3/whitelabel/links/{Id} | Retrieve a branded link |
ListBrandedLink | ListBrandedLink | Get /v3/whitelabel/links | Retrieve all branded links |
ListDefaultBrandedLink | ListDefaultBrandedLink | Get /v3/whitelabel/links/default | Retrieve the default branded link |
ListSubuserBrandedLink | ListSubuserBrandedLink | Get /v3/whitelabel/links/subuser | Retrieve a subuser's branded link |
UpdateBrandedLink | UpdateBrandedLink | Patch /v3/whitelabel/links/{Id} | Update a branded link |
ValidateBrandedLink | ValidateBrandedLink | Post /v3/whitelabel/links/{Id}/validate | Validate a branded link |
Documentation For Models
- AssociateBrandedLinkWithSubuserRequest
- CreateBrandedLinkRequest
- Default
- Default1
- Default2
- Legacy
- LinkBranding200
- LinkBranding200Dns
- LinkBranding200DnsDomainCname
- LinkBranding200DnsOwnerCname
- Region
- Type
- Type1
- UpdateBrandedLinkRequest
- Valid
- Valid1
- Valid2
- Valid3
- Valid4
- Valid5
- ValidateBrandedLink200Response
- ValidateBrandedLink200ResponseValidationResults
- ValidateBrandedLink200ResponseValidationResultsDomainCname
- ValidateBrandedLink200ResponseValidationResultsOwnerCname
- ValidateBrandedLink500Response
- ValidateBrandedLink500ResponseErrorsInner
Documentation For Authorization
BearerAuth
- Type: HTTP basic authentication
Example
auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
UserName: "username",
Password: "password",
})
r, err := client.Service.Operation(auth, args)