Official Java client for Hivehook, webhook infrastructure for modern teams (inbound and outbound).
Latest release: 0.1.1 on Maven Central.
dependencies {
implementation("com.hivehook:sdk:0.1.1")
}<dependency>
<groupId>com.hivehook</groupId>
<artifactId>sdk</artifactId>
<version>0.1.1</version>
</dependency>import com.hivehook.sdk.HivehookClient;
import com.hivehook.sdk.types.Source;
import java.util.Map;
try (HivehookClient client = HivehookClient.builder()
.baseUrl("http://localhost:8080")
.apiKey(System.getenv("HIVEHOOK_API_KEY"))
.build()) {
Source source = client.sources().create(
"Stripe production",
"stripe-prod",
"stripe",
Map.of("secret", "whsec_...")
);
System.out.printf("created source %s. POST webhooks to /ingest/%s%n",
source.id(), source.slug());
}import com.hivehook.sdk.webhook.Webhook;
String signature = request.getHeader(Webhook.HEADER_SIGNATURE);
long timestamp = Long.parseLong(request.getHeader(Webhook.HEADER_TIMESTAMP));
boolean ok = Webhook.verify(body, "your-signing-secret", signature, timestamp, 300);- Java 17+
See the full reference at hivehook.com/docs.
MIT. See LICENSE.