DPDP Consent Manager
Consent receipts and erasure requests for the Digital Personal Data Protection Act, 2023.
Consent receipts and erasure requests for the Digital Personal Data Protection Act, 2023.
We store only a hash of this key and cannot show it again.
Total consents
–
Opt-in rate
–
Erasure requests open
–
Erasure requests completed
–
Paste this before </body> on
. Requests from any other origin are rejected.
1-Click Zero-Code Plugin (WordPress & WooCommerce)
Download our lightweight plugin, upload in WordPress → Plugins → Add New, and click Activate.
Shopify & Dukaan
Open Online Store → Themes → Edit Code → theme.liquid and paste the universal tag above </body>.
Wix, Webflow & GTM
Open Site Settings → Custom Code (Footer) or Google Tag Manager and paste the universal tag once.
Android, iOS & Custom Apps
Supports React/Next.js web apps and native Android/iOS SDK REST APIs (/api/v1/notice/fetch & /consent/log).
// consentState: one true/false per purpose in your notice.
// noticeVersion: the version of the notice the user was shown (from DPDP.fetchNotice()).
DPDP.logConsent(consentState, noticeVersion);
DPDP.requestErasure("user@example.com"); // "Delete my data" button
DPDP.requestCorrection("user@example.com");
When a user asks for erasure or correction, we POST a signed event to this URL so your backend can act on it. Respond with any 2xx status once done.
Signing secret — shown only once
Each request carries X-DPDP-Webhook-Timestamp and
X-DPDP-Webhook-Signature.
The signature is HMAC-SHA256 of timestamp + "." + raw body.
Reject timestamps older than five minutes, and use X-DPDP-Request-ID to ignore repeats.
import hashlib, hmac, time
def verify(secret: str, headers, raw_body: bytes) -> bool:
ts = headers["X-DPDP-Webhook-Timestamp"]
if abs(time.time() - int(ts)) > 300:
return False
expected = "sha256=" + hmac.new(
secret.encode(), ts.encode() + b"." + raw_body, hashlib.sha256
).hexdigest()
return hmac.compare_digest(
expected, headers["X-DPDP-Webhook-Signature"]
)
Example body
{"client_id":"…","created_at":"2026-01-01T10:00:00.000000+00:00",
"crypto_signature":"…","event":"dsr.erasure","request_id":"…",
"request_type":"erasure","user_anonymous_id":"anon_123",
"user_identifier":"user@example.com"}
| Received | Type | User | Status | HTTP | SHA-256 digest | Actions |
|---|
| Recorded | User | Decision | Purposes granted | Notice | SHA-256 digest |
|---|
Tables show the 50 most recent records. The CSV contains the full ledger.