Add the verifier to your server
Download the source file and include it in your Java project. Use Java 17 or later. Store the endpoint signing key in your server’s secret manager.
Verify before parsing
Read the POST body as bytes. Pass it with Oraami-Timestamp, Oraami-Signature, the signing key and the current UTC time. Reject a failed check. The helper checks the five-minute freshness window and compares the HMAC in constant time.
boolean valid = OraamiWebhook.verify(rawBody, timestamp, signature, secret, Instant.now());Check a signed delivery
Send a test event from Webhooks. After signature verification, parse the body and validate the workspace, site, event and delivery identifier. Deduplicate the signed ID durably, then return 2xx. Confirm that the same request fails verification if a byte of the body changes.