Skip to main content

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)

Build docs developers (and LLMs) love