Events
A webhook subscribes to one or more events:Setting one up
1
Add an endpoint
In the dashboard, add your
https URL and choose the events to subscribe to.2
Store the signing secret
A secret (
whsec_...) is shown once when you create the webhook. Copy it and store it safely; it is what you use to verify incoming events.3
Receive and verify
On each event, Pruva sends a signed POST to your URL. Verify the signature before trusting the payload.
Verifying the signature
Every delivery carries two headers:
The signature is computed over the timestamp and the raw request body, joined by a dot:
Responding
Return a2xx quickly to acknowledge receipt. Do the real work, updating your records, notifying a user, after you have acknowledged, so a slow task on your side does not hold the delivery open.
Only one webhook is needed to receive all your events; subscribe it to everything you care about. Webhooks are managed in Settings, not as a separate area.