package
4.0.0-rc.10
Repository: https://github.com/sendgrid/sendgrid-go.git
Documentation: pkg.go.dev

# 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

ClassMethodHTTP requestDescription
AssociateBrandedLinkWithSubuserAssociateBrandedLinkWithSubuserPost /v3/whitelabel/links/{LinkId}/subuserAssociate a branded link with a subuser
CreateBrandedLinkCreateBrandedLinkPost /v3/whitelabel/linksCreate a branded link
DeleteBrandedLinkDeleteBrandedLinkDelete /v3/whitelabel/links/{Id}Delete a branded link
DisassociateBrandedLinkFromSubuserDisassociateBrandedLinkFromSubuserDelete /v3/whitelabel/links/subuserDisassociate a branded link from a subuser
GetBrandedLinkGetBrandedLinkGet /v3/whitelabel/links/{Id}Retrieve a branded link
ListBrandedLinkListBrandedLinkGet /v3/whitelabel/linksRetrieve all branded links
ListDefaultBrandedLinkListDefaultBrandedLinkGet /v3/whitelabel/links/defaultRetrieve the default branded link
ListSubuserBrandedLinkListSubuserBrandedLinkGet /v3/whitelabel/links/subuserRetrieve a subuser's branded link
UpdateBrandedLinkUpdateBrandedLinkPatch /v3/whitelabel/links/{Id}Update a branded link
ValidateBrandedLinkValidateBrandedLinkPost /v3/whitelabel/links/{Id}/validateValidate a branded link

Documentation For Models

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)