# 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
Class | Method | HTTP request | Description |
---|---|---|---|
AuthenticateAccount | AuthenticateAccount | Post /v3/partners/accounts/{AccountID}/sso | Authenticate an account with single sign on |
CreateAccount | CreateAccount | Post /v3/partners/accounts | Create an account |
DeleteAccount | DeleteAccount | Delete /v3/partners/accounts/{AccountID} | Delete an account |
GetAccountState | GetAccountState | Get /v3/partners/accounts/{AccountID}/state | Get an account's state |
ListAccount | ListAccount | Get /v3/partners/accounts | Get all accounts |
ListAccountOffering | ListAccountOffering | Get /v3/partners/accounts/{AccountID}/offerings | Get account offerings |
ListOffering | ListOffering | Get /v3/partners/offerings | Get all available offerings |
UpdateAccountOffering | UpdateAccountOffering | Put /v3/partners/accounts/{AccountID}/offerings | Update account offerings |
UpdateAccountState | UpdateAccountState | Put /v3/partners/accounts/{AccountID}/state | Update an account's state |
Documentation For Models
- AccountList
- AccountProvisioningAccount
- AccountProvisioningAccountId
- AccountProvisioningCatalog
- AccountProvisioningOfferingList
- AccountProvisioningOfferingV1
- AccountProvisioningPagination
- AccountProvisioningProfile
- AccountProvisioningStateRead
- AccountProvisioningStateWrite
- CatalogEntry
- CatalogEntryEntitlements
- CreateAccountParams
- ErrorResponse
- OfferingsToAdd
- State
- State1
- Type
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)