Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/resend/resend-go/llms.txt

Use this file to discover all available pages before exploring further.

Method

func (s *WebhooksSvcImpl) Get(webhookId string) (*Webhook, error)
func (s *WebhooksSvcImpl) GetWithContext(ctx context.Context, webhookId string) (*Webhook, error)

Parameters

webhookId
string
required
The unique identifier of the webhook to retrieve

Response

Object
string
Always "webhook"
Id
string
The unique identifier of the webhook
CreatedAt
string
ISO 8601 timestamp of when the webhook was created
Status
string
The current status of the webhook
Endpoint
string
The URL endpoint receiving webhook events
Events
[]string
Array of subscribed event types
SigningSecret
string
The signing secret for verifying webhook payloads

Example

client := resend.NewClient("re_123456789")

webhook, err := client.Webhooks.Get("wh_abc123")
if err != nil {
    panic(err)
}

fmt.Println("Endpoint:", webhook.Endpoint)
fmt.Println("Status:", webhook.Status)
fmt.Println("Events:", webhook.Events)