# 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
Class | Method | HTTP request | Description |
---|---|---|---|
DeleteReverseDns | DeleteReverseDns | Delete /v3/whitelabel/ips/{Id} | Delete a reverse DNS record |
GetReverseDns | GetReverseDns | Get /v3/whitelabel/ips/{Id} | Retrieve a reverse DNS record |
ListReverseDns | ListReverseDns | Get /v3/whitelabel/ips | Retrieve all reverse DNS records |
SetUpReverseDns | SetUpReverseDns | Post /v3/whitelabel/ips | Set up reverse DNS |
ValidateReverseDns | ValidateReverseDns | Post /v3/whitelabel/ips/{Id}/validate | Validate a reverse DNS record |
Documentation For Models
- ReverseDns
- ReverseDnsARecord
- ReverseDnsUsersInner
- SetUpReverseDnsRequest
- Valid
- Valid1
- ValidateReverseDns200Response
- ValidateReverseDns200ResponseValidationResults
- ValidateReverseDns200ResponseValidationResultsARecord
- ValidateReverseDns404Response
- ValidateReverseDns404ResponseErrorsInner
- ValidateReverseDns500Response
- ValidateReverseDns500ResponseErrorsInner
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)