A webhook makes docEvault send a message to a web address you run each time something happens, for example when a client uploads a file or a request is completed. Use it when you want events in your own system and don't want Zapier in the middle. Webhooks are part of the Professional and Enterprise plans, and they stop while your subscription is lapsed. For Zapier, see Zapier and API keys.
Add a webhook
Only admins can add or delete a webhook.
- Open Integrations > Zapier and click Active Zaps.
- Under Webhook URLs, click + Add Webhook.
- Choose the Event you want. The list is the same as the triggers in the Zapier article, for example Document Uploaded or Request Completed. One webhook listens to one event, so add one per event.
- Type your address in Webhook URL. It must start with
https://. Add stays greyed out until it does. - Click Add. You see "Webhook added", and the webhook appears in the list with its event and address.
Get the secret
Each webhook has its own secret. Click Show Secret on its row and copy the value after "Secret:". Click Hide Secret to hide it again. Store it where your receiver can read it, and don't put it in front-end code.
What docEvault sends
docEvault sends an HTTP POST with a JSON body and these headers:
Content-Type: application/jsonX-DocEvault-Event: the event name, such asdocument.approvedX-DocEvault-Signature: the signature of the body (see below)
The body has four fields:
``json { "event": "document.approved", "orgId": "your organization's id", "data": { "...": "the file, request or contact the event is about" }, "sentAt": "2026-11-15T16:00:00.000Z" } ``
data holds the record the event is about. For a file event it includes the file name, status, the item, the request (title, status, deadline and a link) and the contact. An end-to-end encrypted file has "encrypted": true and no download link; see Setting up end-to-end encryption. For an unencrypted file, downloadUrl redirects to a short-lived download link when you request it with an API key in an X-DocEvault-Api-Key header (create one on the Connect tab).
Your receiver should answer with any 2xx status within 10 seconds. docEvault doesn't retry a failed delivery.
Check the signature
The signature is an HMAC-SHA256 of the exact raw request body, using the webhook's secret as the key, written as lowercase hex with no prefix. Compute it on the raw body before you parse the JSON, and compare it with the header.
```js const crypto = require('crypto');
function isFromDocEvault(rawBody, header, secret) { const expected = crypto.createHmac('sha256', secret).update(rawBody).digest('hex'); const a = Buffer.from(expected); const b = Buffer.from(header || ''); return a.length === b.length && crypto.timingSafeEqual(a, b); } ```
If the check fails, reject the request. Re-serializing the JSON before checking changes the bytes and breaks the match.
Send a test
- On the webhook's row, click Send Test.
- docEvault posts a sample event to your address. It looks like a real one, with
"test": trueadded, and it uses your latest matching record or made-up sample data. It is signed like a real event. - A toast tells you the result:
- Test delivered (200, 120 ms): your receiver answered with a success status. - The URL answered 500: your receiver was reached but answered with an error status. Fix the receiver and test again. - Test failed: followed by a reason, for example when the address can't be reached or doesn't answer within 10 seconds. Check the address, that your server is public and uses a valid HTTPS certificate, and try again.
Anyone on the team can send a test.
See what was delivered
Open the Delivery Log tab. It lists the last 100 events docEvault sent, newest first. Each shows Delivered or Failed, the event, the status code, the time taken and the time sent, with the error underneath when there is one. Click Refresh to update it.
If your receiver answers 410 Gone, docEvault turns that webhook off.
Delete a webhook
Click Delete on its row and confirm Remove in Delete This Webhook?. docEvault stops sending that event to the address.