Edit icon Edit This Page

@PostMapping(“/webhook”) public ResponseEntity handleWebhook( @RequestBody String payload, @RequestHeader(“X-Repsy-Signature”) String signature, @RequestHeader(“X-Repsy-Timestamp”) String timestamp) { if (!validateSignature(payload, signature, timestamp)) { return ResponseEntity.status(HttpStatus.UNAUTHORIZED).build(); }

// TODO: your webhook operations

return ResponseEntity.ok().build(); }

Was this page helpful?