# README
Go API client for
Integrations allows you to connect your SendGrid applications with third-party services and forward SendGrid email events to those external applications. Currently, Integrations supports event forwarding to Segment. You can use this API to create, delete, view, and update your Integrations.
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:26.187582Z[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 |
---|---|---|---|
AddIntegration | AddIntegration | Post /v3/marketing/integrations | CreateIntegration |
DeleteIntegration | DeleteIntegration | Delete /v3/marketing/integrations | DeleteBulkIntegration |
FindIntegrationById | FindIntegrationById | Get /v3/marketing/integrations/{Id} | GetIntegration |
GetIntegrationsByUser | GetIntegrationsByUser | Get /v3/marketing/integrations | ListIntegration |
UpdateIntegration | UpdateIntegration | Patch /v3/marketing/integrations/{Id} | UpdateIntegration |
Documentation For Models
- AddIntegration400Response
- DeleteIntegration400Response
- DeleteIntegration404Response
- Destination
- Destination1
- Destination2
- Destination3
- DestinationRegion
- DestinationRegion1
- DestinationRegion2
- Forbidden
- GetIntegrationsByUser200Response
- GetIntegrationsByUser403Response
- GetIntegrationsByUser500Response
- Id
- Integration
- IntegrationFilters
- IntegrationInput
- IntegrationInputFilters
- IntegrationInputProperties
- IntegrationNotFound
- IntegrationPatch
- IntegrationPatchFilters
- IntegrationPatchProperties
- IntegrationProperties
- InternalError
- InvalidDeleteRequest
- InvalidRequest
- Items
- Items1
- Items2
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)