WebhookService.
Java
Webhook client
Manage webhook endpoints with the Paubox Java SDK.
Webhook methods are on
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 Java SDK.
WebhookService.
import com.paubox.service.WebhookService;
WebhookService webhookService = new WebhookService();
String response = webhookService.listWebhookEndpoints();
List<String> events = Arrays.asList("inbound_mail_received", "api_mail_log_delivered");
String response = webhookService.createWebhookEndpoint(
"https://example.com/webhooks/paubox",
events,
"whsec_abc123", // signingKey
null, // apiKey
true // active
);
String response = webhookService.getWebhookEndpoint(42);
String body = "{\"active\": false}";
String response = webhookService.updateWebhookEndpoint(42, body);
String response = webhookService.deleteWebhookEndpoint(42);