Integrations
Real-Time Webhooks & Incident Alerts
Receive cryptographically signed webhooks for new DSR requests, consent revocations, and dual-clock incident triggers.
Webhook endpoint listening on HTTPS POST
Verify Webhook Signature & Handle Erasure
typescriptimport crypto from 'crypto';
export async function handleWebhook(req, res) {
const signature = req.headers['x-dpdpa-shield-signature'];
const payload = JSON.stringify(req.body);
const expected = crypto
.createHmac('sha256', process.env.SHIELD_WEBHOOK_SECRET)
.update(payload)
.digest('hex');
if (signature !== expected) return res.status(401).send('Invalid signature');
const { event, data } = req.body;
if (event === 'DSR.ERASURE_REQUESTED') {
await purgeUserFromDatabases(data.dataPrincipalId);
}
res.status(200).send('OK');
}Need sandbox API keys for testing?
Create a free developer assessment account in under 60 seconds.