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 User API allows you to modify the settings of a SendGrid user account such as the user's email address or username. Keeping your user profile up to date helps SendGrid verify who you are and share important communications with you.

See Account Details for more information. You can also manage your user settings in the SendGrid application user interface.

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:29.377406Z[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
ListAccountListAccountGet /v3/user/accountGet a user's account information.
ListCreditListCreditGet /v3/user/creditsRetrieve your credit balance
ListEmailListEmailGet /v3/user/emailRetrieve your account email address
ListProfileListProfileGet /v3/user/profileGet a user's profile
ListUsernameListUsernameGet /v3/user/usernameRetrieve your username
UpdateEmailUpdateEmailPut /v3/user/emailUpdate your account email address
UpdatePasswordUpdatePasswordPut /v3/user/passwordUpdate your password
UpdateProfileUpdateProfilePatch /v3/user/profileUpdate a user's profile
UpdateUsernameUpdateUsernamePut /v3/user/usernameUpdate your username

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)