# 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
Class | Method | HTTP request | Description |
---|---|---|---|
ListAccount | ListAccount | Get /v3/user/account | Get a user's account information. |
ListCredit | ListCredit | Get /v3/user/credits | Retrieve your credit balance |
ListEmail | ListEmail | Get /v3/user/email | Retrieve your account email address |
ListProfile | ListProfile | Get /v3/user/profile | Get a user's profile |
ListUsername | ListUsername | Get /v3/user/username | Retrieve your username |
UpdateEmail | UpdateEmail | Put /v3/user/email | Update your account email address |
UpdatePassword | UpdatePassword | Put /v3/user/password | Update your password |
UpdateProfile | UpdateProfile | Patch /v3/user/profile | Update a user's profile |
UpdateUsername | UpdateUsername | Put /v3/user/username | Update your username |
Documentation For Models
- ErrorResponse
- ErrorResponseErrorsInner
- GETUserAccountResponse
- GETUserProfileResponse
- ListCredit200Response
- ListEmail200Response
- ListUsername200Response
- Type
- UpdateEmail200Response
- UpdateEmailRequest
- UpdatePasswordRequest
- UpdateUsername200Response
- UpdateUsernameRequest
- UserProfile
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)