# README
Go API client for
The Twilio SendGrid Legacy Marketing Campaigns Sender Identites API allows you to manage the email addresses used to send your marketing email. This API is operational, but we recommend using the current version of Marketing Campaigns to manage your senders.
See Migrating from Legacy Marketing Campaigns 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.506390Z[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 |
---|---|---|---|
CreateSender | CreateSender | Post /v3/senders | Create a Sender Identity |
DeleteSender | DeleteSender | Delete /v3/senders/{SenderId} | Delete a Sender Identity |
GetSender | GetSender | Get /v3/senders/{SenderId} | View a Sender Identity |
ListSender | ListSender | Get /v3/senders | Get all Sender Identities |
ResetSenderVerification | ResetSenderVerification | Post /v3/senders/{SenderId}/resend_verification | Resend Sender Identity Verification |
UpdateSender | UpdateSender | Patch /v3/senders/{SenderId} | Update a Sender Identity |
Documentation For Models
- CreateSender400Response
- CreateSender400ResponseErrorsInner
- CreateSenderRequest
- ListSender200Response
- SenderId
- SenderIdRequest
- SenderIdRequestFrom
- SenderIdRequestReplyTo
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)