package
4.0.0-rc.10
Repository: https://github.com/sendgrid/sendgrid-go.git
Documentation: pkg.go.dev

# README

Go API client for

The Single Sign-On API allows you to manage your SAML 2.0 SSO configurations. You can also work with your SSO integrations using the SSO section of the Twilio SendGrid application user interface.

The Single Sign-On Settings operations allow you to create, retrieve, modify, and delete SSO integrations for your Twilio SendGrid account. Each integration will correspond to a specific IdP such as Okta, Duo, or Microsoft Azure Active Directory.

The Single Sign-On Certificates operations allow you to create, modify, and delete SSO certificates. A SAML certificate allows your IdP and Twilio SendGrid to verify requests are coming from one another using the public_certificate and integration_id parameters.

The Single Sign-On Teammates operations allow you to add and modify SSO Teammates. SSO Teammates are the individual user accounts who will access your Twilio SendGrid account with SSO credentials. To retrieve or delete an SSO Teammate, you will use the separate Teammates API.

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.679265Z[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
CreateSsoCertificateCreateSsoCertificatePost /v3/sso/certificatesCreate an SSO Certificate
CreateSsoIntegrationCreateSsoIntegrationPost /v3/sso/integrationsCreate an SSO Integration
CreateSsoTeammateCreateSsoTeammatePost /v3/sso/teammatesCreate an SSO Teammate.
DeleteSsoCertificateDeleteSsoCertificateDelete /v3/sso/certificates/{CertId}Delete an SSO Certificate
DeleteSsoIntegrationDeleteSsoIntegrationDelete /v3/sso/integrations/{Id}Delete an SSO Integration
GetSsoCertificateGetSsoCertificateGet /v3/sso/certificates/{CertId}Get an SSO Certificate
GetSsoIntegrationGetSsoIntegrationGet /v3/sso/integrations/{Id}Get an SSO Integration
ListSsoIntegrationListSsoIntegrationGet /v3/sso/integrationsGet All SSO Integrations
ListSsoIntegrationCertificateListSsoIntegrationCertificateGet /v3/sso/integrations/{IntegrationId}/certificatesGet All SSO Certificates by Integration
UpdateSsoCertificateUpdateSsoCertificatePatch /v3/sso/certificates/{CertId}Update SSO Certificate
UpdateSsoIntegrationUpdateSsoIntegrationPatch /v3/sso/integrations/{Id}Update an SSO Integration
UpdateSsoTeammateUpdateSsoTeammatePatch /v3/sso/teammates/{Username}Edit an SSO Teammate

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)