WebhookService.
Java
Java SDK webhook client
Create, list, get, update, and delete Paubox webhook endpoints with the Java SDK to receive delivery, open, failure, and inbound mail events.
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.
Create, list, get, update, and delete Paubox webhook endpoints with the Java SDK to receive delivery, open, failure, and inbound mail events.
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);