Method
func (s *WebhooksSvcImpl) Get(webhookId string) (*Webhook, error)
func (s *WebhooksSvcImpl) GetWithContext(ctx context.Context, webhookId string) (*Webhook, error)
Parameters
The unique identifier of the webhook to retrieve
Response
The unique identifier of the webhook
ISO 8601 timestamp of when the webhook was created
The current status of the webhook
The URL endpoint receiving webhook events
Array of subscribed event types
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)