# README
Go API client for
The Twilio SendGrid Webhooks API allows you to configure the Event and Parse Webhooks.
Email is a data-rich channel, and implementing the Event Webhook will allow you to consume those data in nearly real time. This means you can actively monitor and participate in the health of your email program throughout the send cycle.
The Inbound Parse Webhook processes all incoming email for a domain or subdomain, parses the contents and attachments and then POSTs multipart/form-data
to a URL that you choose.
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:30.280508Z[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 |
---|---|---|---|
CreateEventWebhook | CreateEventWebhook | Post /v3/user/webhooks/event/settings | Create a new Event Webhook |
CreateParseSetting | CreateParseSetting | Post /v3/user/webhooks/parse/settings | Create a parse setting |
CreateSecurityPolicy | CreateSecurityPolicy | Post /v3/user/webhooks/security/policies | Create a new webhook security policy |
DeleteEventWebhook | DeleteEventWebhook | Delete /v3/user/webhooks/event/settings/{Id} | Delete a single Event Webhook by ID. |
DeleteParseSetting | DeleteParseSetting | Delete /v3/user/webhooks/parse/settings/{Hostname} | Delete a parse setting |
DeleteSecurityPolicy | DeleteSecurityPolicy | Delete /v3/user/webhooks/security/policies/{Id} | Delete a specific webhook security policy |
GetEventWebhook | GetEventWebhook | Get /v3/user/webhooks/event/settings/{Id} | Get the settings for a single Event Webhook. |
GetParseSetting | GetParseSetting | Get /v3/user/webhooks/parse/settings/{Hostname} | Retrieve a specific parse setting |
GetSecurityPolicy | GetSecurityPolicy | Get /v3/user/webhooks/security/policies/{Id} | Retrieve a specific webhook security policy |
GetSignedEventWebhook | GetSignedEventWebhook | Get /v3/user/webhooks/event/settings/signed/{Id} | Get Signed Event Webhook's Public Key |
ListAllSecurityPolicies | ListAllSecurityPolicies | Get /v3/user/webhooks/security/policies | Retrieve all webhook security policies for your account |
ListEventWebhook | ListEventWebhook | Get /v3/user/webhooks/event/settings/all | Retrieve all of your Event Webhooks. |
ListParseSetting | ListParseSetting | Get /v3/user/webhooks/parse/settings | Retrieve all parse settings |
ListParseStatic | ListParseStatic | Get /v3/user/webhooks/parse/stats | Retrieves Inbound Parse Webhook statistics. |
TestEventWebhook | TestEventWebhook | Post /v3/user/webhooks/event/test | Test an Event Webhook's settings |
UpdateEventWebhook | UpdateEventWebhook | Patch /v3/user/webhooks/event/settings/{Id} | Update a single Event Webhook by ID. |
UpdateParseSetting | UpdateParseSetting | Patch /v3/user/webhooks/parse/settings/{Hostname} | Update a parse setting |
UpdateSecurityPolicy | UpdateSecurityPolicy | Patch /v3/user/webhooks/security/policies/{Id} | Update an existing webhook security policy |
UpdateSignedEventWebhook | UpdateSignedEventWebhook | Patch /v3/user/webhooks/event/settings/signed/{Id} | Toggle signature verification for a single Event Webhook by ID |
Documentation For Models
- AggregatedBy
- CreateEventWebhook400Response
- CreateEventWebhook400ResponseErrorsInner
- CreateSecurityPolicy201Response
- CreateSecurityPolicyRequest
- CreateSecurityPolicyRequestOauth
- CreateSecurityPolicyRequestSignature
- DeleteSecurityPolicy200Response
- ErrorResponse
- ErrorResponseErrorsInner
- EventWebhookAllResponse
- EventWebhookBaseResponseProps
- EventWebhookDateResponseProps
- EventWebhookNoDatesResponse
- EventWebhookOauthResponseProps
- EventWebhookRequest
- EventWebhookSignedResponse
- EventWebhookSignedResponseProp
- EventWebhookTestRequest
- EventWebhookUnsignedResponse
- GetSignedEventWebhook200Response
- GetSignedEventWebhook404Response
- GetSignedEventWebhook404ResponseErrorsInner
- ListAllSecurityPolicies200Response
- ListAllSecurityPolicies200ResponsePoliciesInner
- ListAllSecurityPolicies200ResponsePoliciesInnerOauth
- ListAllSecurityPolicies200ResponsePoliciesInnerSignature
- ListParseSetting200Response
- ListParseStatic200ResponseInner
- ListParseStatic200ResponseInnerStatsInner
- ListParseStatic200ResponseInnerStatsInnerMetrics
- ParseSetting
- UpdateSecurityPolicy200Response
- UpdateSecurityPolicy200ResponsePolicy
- UpdateSignedEventWebhookRequest
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)