# 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
Class | Method | HTTP request | Description |
---|---|---|---|
CreateSsoCertificate | CreateSsoCertificate | Post /v3/sso/certificates | Create an SSO Certificate |
CreateSsoIntegration | CreateSsoIntegration | Post /v3/sso/integrations | Create an SSO Integration |
CreateSsoTeammate | CreateSsoTeammate | Post /v3/sso/teammates | Create an SSO Teammate. |
DeleteSsoCertificate | DeleteSsoCertificate | Delete /v3/sso/certificates/{CertId} | Delete an SSO Certificate |
DeleteSsoIntegration | DeleteSsoIntegration | Delete /v3/sso/integrations/{Id} | Delete an SSO Integration |
GetSsoCertificate | GetSsoCertificate | Get /v3/sso/certificates/{CertId} | Get an SSO Certificate |
GetSsoIntegration | GetSsoIntegration | Get /v3/sso/integrations/{Id} | Get an SSO Integration |
ListSsoIntegration | ListSsoIntegration | Get /v3/sso/integrations | Get All SSO Integrations |
ListSsoIntegrationCertificate | ListSsoIntegrationCertificate | Get /v3/sso/integrations/{IntegrationId}/certificates | Get All SSO Certificates by Integration |
UpdateSsoCertificate | UpdateSsoCertificate | Patch /v3/sso/certificates/{CertId} | Update SSO Certificate |
UpdateSsoIntegration | UpdateSsoIntegration | Patch /v3/sso/integrations/{Id} | Update an SSO Integration |
UpdateSsoTeammate | UpdateSsoTeammate | Patch /v3/sso/teammates/{Username} | Edit an SSO Teammate |
Documentation For Models
- CreateSsoCertificateRequest
- PatchSsoTeammates200
- PermissionType
- PermissionType1
- Persona
- PostPatchIntegrationRequest
- PostSsoTeammates201
- PostSsoTeammatesRequest
- SsoCertificateBody
- SsoErrorResponseInner
- SsoIntegration
- SsoTeammatesBaseRequestProps
- SsoTeammatesBaseRequestPropsSubuserAccessInner
- SsoTeammatesBaseResponseProps
- SsoTeammatesRestrictedSubuserResponseProps
- SsoTeammatesRestrictedSubuserResponsePropsSubuserAccessInner
- UpdateSsoCertificateRequest
- UserType
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)