Package africa.sendbyte.webhooks
Class Webhooks
java.lang.Object
africa.sendbyte.webhooks.Webhooks
The Webhooks resource: register and manage webhook endpoints, inspect delivery
history, and replay deliveries.
Obtain an instance via client.webhooks(). Every method has a blocking form
and an ...Async form returning a CompletableFuture. To verify the
signature on incoming deliveries, use WebhookSignature.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRegister an endpoint subscribed to all event types.Register an endpoint subscribed to specific event types (e.g.createAsync(String url, List<String> events) Asynchronouscreate(String, List).deliveries(String endpointId) Fetch the recent delivery attempts (up to the last 50) for an endpoint.deliveriesAsync(String endpointId) Asynchronousdeliveries(String).voidDisable an endpoint so it stops receiving deliveries.disableAsync(String id) Asynchronousdisable(String).list()List all webhook endpoints on the account.Asynchronouslist().Re-enqueue a past delivery as a fresh attempt.replayAsync(String deliveryId) Asynchronousreplay(String).
-
Constructor Details
-
Webhooks
-
-
Method Details
-
create
Register an endpoint subscribed to all event types. -
create
Register an endpoint subscribed to specific event types (e.g.["email.delivered", "email.bounced"]). Passnullor an empty list to receive all events. The response includes the one-time signing secret. -
createAsync
Asynchronouscreate(String, List). -
list
List all webhook endpoints on the account. Signing secrets are not included. -
listAsync
Asynchronouslist(). -
disable
Disable an endpoint so it stops receiving deliveries. Delivery history is retained. -
disableAsync
Asynchronousdisable(String). -
deliveries
Fetch the recent delivery attempts (up to the last 50) for an endpoint. -
deliveriesAsync
Asynchronousdeliveries(String). -
replay
Re-enqueue a past delivery as a fresh attempt. Returns the new delivery record. -
replayAsync
Asynchronousreplay(String).
-