*paubox.Client you use to send email.
Go
Webhook client
Manage webhook endpoints with the Paubox Go SDK.
Webhook methods are on the same
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Manage webhook endpoints with the Paubox Go SDK.
*paubox.Client you use to send email.
client, err := paubox.NewClient("YOUR_API_KEY")
endpoints, err := client.ListWebhookEndpoints(ctx)
for _, ep := range endpoints {
fmt.Printf("%d: %s (active: %v)\n", ep.ID, ep.TargetURL, ep.Active)
}
endpoint, err := client.CreateWebhookEndpoint(ctx, &paubox.CreateWebhookEndpointRequest{
TargetURL: "https://example.com/webhooks/paubox",
Events: []string{"inbound_mail_received", "api_mail_log_delivered"},
SigningKey: "whsec_abc123",
})
endpoint, err := client.GetWebhookEndpoint(ctx, 42)
active := false
endpoint, err := client.UpdateWebhookEndpoint(ctx, 42, &paubox.UpdateWebhookEndpointRequest{
Active: &active,
})
deleted, err := client.DeleteWebhookEndpoint(ctx, 42)