# 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
Class | Method | HTTP request | Description |
---|---|---|---|
CreateDesign | CreateDesign | Post /v3/designs | Create Design |
DeleteDesign | DeleteDesign | Delete /v3/designs/{Id} | Delete Design |
DuplicateDesign | DuplicateDesign | Post /v3/designs/{Id} | Duplicate Design |
DuplicatePreBuiltDesign | DuplicatePreBuiltDesign | Post /v3/designs/pre-builts/{Id} | Duplicate SendGrid Pre-built Design |
GetDesign | GetDesign | Get /v3/designs/{Id} | Get Design |
GetPreBuiltDesign | GetPreBuiltDesign | Get /v3/designs/pre-builts/{Id} | Get SendGrid Pre-built Design |
ListDesign | ListDesign | Get /v3/designs | List Designs |
ListPreBuiltDesign | ListPreBuiltDesign | Get /v3/designs/pre-builts | List SendGrid Pre-built Designs |
UpdateDesign | UpdateDesign | Patch /v3/designs/{Id} | Update Design |
Documentation For Models
- ApiError
- ApiErrors
- DesignCommonProperties
- DesignDuplicateInput
- DesignInput
- DesignOutput
- DesignOutputSummary
- Editor
- ListDesign200Response
- Metadata
- UpdateDesignRequest
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)