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 Reverse DNS API (formerly IP Whitelabel) allows you to configure reverse DNS settings for your account. Mailbox providers verify the sender of your emails by performing a reverse DNS lookup.

When setting up Reverse DNS, Twilio SendGrid will provide an A Record (address record) for you to add to the DNS records of your sending domain. The A record maps your sending domain to a dedicated Twilio SendGrid IP address. Once Twilio SendGrid has verified that the appropriate A record for the IP address has been created, the appropriate reverse DNS record for the IP address is generated.

Reverse DNS is available for dedicated IP addresses only.

You can also manage your reverse DNS settings in the Sender Authentication setion of the Twilio SendGrid application user interface.

See How to Set Up Reverse DNS 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.488524Z[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
DeleteReverseDnsDeleteReverseDnsDelete /v3/whitelabel/ips/{Id}Delete a reverse DNS record
GetReverseDnsGetReverseDnsGet /v3/whitelabel/ips/{Id}Retrieve a reverse DNS record
ListReverseDnsListReverseDnsGet /v3/whitelabel/ipsRetrieve all reverse DNS records
SetUpReverseDnsSetUpReverseDnsPost /v3/whitelabel/ipsSet up reverse DNS
ValidateReverseDnsValidateReverseDnsPost /v3/whitelabel/ips/{Id}/validateValidate a reverse DNS record

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)