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 Designs API offers the ability to manage assets stored in the Twilio SendGrid Design Library.

The Design Library is a feature-rich email layout tool and media repository. You can build designs for all your marketing email needs, including Single Sends and Automations.

You can also duplicate and then modify one of the pre-built designs provided by Twilio SendGrid to get you started.

The Designs API provides a REST-like interface for creating new designs, retrieving a list of existing designs, duplicating or updating a design, and deleting a design.

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.292240Z[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
CreateDesignCreateDesignPost /v3/designsCreate Design
DeleteDesignDeleteDesignDelete /v3/designs/{Id}Delete Design
DuplicateDesignDuplicateDesignPost /v3/designs/{Id}Duplicate Design
DuplicatePreBuiltDesignDuplicatePreBuiltDesignPost /v3/designs/pre-builts/{Id}Duplicate SendGrid Pre-built Design
GetDesignGetDesignGet /v3/designs/{Id}Get Design
GetPreBuiltDesignGetPreBuiltDesignGet /v3/designs/pre-builts/{Id}Get SendGrid Pre-built Design
ListDesignListDesignGet /v3/designsList Designs
ListPreBuiltDesignListPreBuiltDesignGet /v3/designs/pre-builtsList SendGrid Pre-built Designs
UpdateDesignUpdateDesignPatch /v3/designs/{Id}Update Design

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)