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) List() (*ListWebhooksResponse, error)
func (s *WebhooksSvcImpl) ListWithContext(ctx context.Context) (*ListWebhooksResponse, error)
func (s *WebhooksSvcImpl) ListWithOptions(ctx context.Context, options *ListOptions) (*ListWebhooksResponse, error)
Parameters
Pagination options (only available in ListWithOptions)Maximum number of webhooks to return
Cursor for forward pagination
Cursor for backward pagination
Response
Whether there are more results available
Array of webhook objectsThe 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
Example
client := resend.NewClient("re_123456789")
response, err := client.Webhooks.List()
if err != nil {
panic(err)
}
for _, webhook := range response.Data {
fmt.Printf("Webhook: %s - %s\n", webhook.Id, webhook.Endpoint)
fmt.Printf(" Events: %v\n", webhook.Events)
}
fmt.Println("Has More:", response.HasMore)