Class WebhookEndpoint

java.lang.Object
africa.sendbyte.webhooks.WebhookEndpoint

public final class WebhookEndpoint extends Object
A registered webhook endpoint that SendByte delivers events to.

The secret is only populated on the Webhooks.create(java.lang.String) response — it is shown once and never returned again. Pass it to WebhookSignature to verify incoming deliveries.

  • Constructor Details

    • WebhookEndpoint

      public WebhookEndpoint()
  • Method Details

    • getId

      public String getId()
      Unique endpoint identifier (prefixed wh_).
    • setId

      public void setId(String id)
    • getUrl

      public String getUrl()
      The HTTPS destination URL.
    • setUrl

      public void setUrl(String url)
    • getEvents

      public List<String> getEvents()
      The subscribed event types. Empty or null means all events.
    • setEvents

      public void setEvents(List<String> events)
    • receivesAllEvents

      public boolean receivesAllEvents()
      true if this endpoint subscribes to every event type.
    • isDisabled

      public boolean isDisabled()
      true if the endpoint has been disabled.
    • setDisabled

      public void setDisabled(boolean disabled)
    • getSecret

      public String getSecret()
      The signing secret (whsec_...). Present only on the create response.
    • setSecret

      public void setSecret(String secret)
    • getCreatedAt

      public String getCreatedAt()
    • setCreatedAt

      public void setCreatedAt(String createdAt)