Verify Webhook Signatures
Every webhook delivery must be authenticated before you trust or process the payload.Verification Inputs
To verify a webhook, use:- the raw request body exactly as received
- the signature header sent by Zentra
- the webhook secret returned when the endpoint was created
Recommended Flow
- Read the raw request body
- Extract the Zentra signature header
- Compute the expected signature with your stored webhook secret
- Compare signatures in constant time
- Reject invalid payloads with
401or400 - Only then parse and process the event
Example
Reliability Requirements
- Make processing idempotent because deliveries may be retried
- Store delivery or event identifiers before applying business effects
- Return
2xxonly after the event is durably accepted by your system - Keep delivery handling fast; move heavy work to async jobs
Related Pages
Configure Webhooks
Create endpoints and store webhook secrets
Handling Webhooks
Full implementation guide with retry-safe patterns