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 Account Provisioning API provides a platform for Twilio SendGrid resellers to manage their customer accounts. This API is for companies that have a formal reseller partnership with Twilio SendGrid.

You can access Twilio SendGrid sub-account functionality without becoming a reseller. If you require sub-account functionality, see the Twilio SendGrid Subusers feature, which is available with Pro and Premier plans.

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.139822Z[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
AuthenticateAccountAuthenticateAccountPost /v3/partners/accounts/{AccountID}/ssoAuthenticate an account with single sign on
CreateAccountCreateAccountPost /v3/partners/accountsCreate an account
DeleteAccountDeleteAccountDelete /v3/partners/accounts/{AccountID}Delete an account
GetAccountStateGetAccountStateGet /v3/partners/accounts/{AccountID}/stateGet an account's state
ListAccountListAccountGet /v3/partners/accountsGet all accounts
ListAccountOfferingListAccountOfferingGet /v3/partners/accounts/{AccountID}/offeringsGet account offerings
ListOfferingListOfferingGet /v3/partners/offeringsGet all available offerings
UpdateAccountOfferingUpdateAccountOfferingPut /v3/partners/accounts/{AccountID}/offeringsUpdate account offerings
UpdateAccountStateUpdateAccountStatePut /v3/partners/accounts/{AccountID}/stateUpdate an account's state

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)