REST API & webhooks
Check consent from your own systems before you process, and hear at once when someone withdraws or an erasure is due.
What you get
Check before you process
Ask whether a person allows each purpose right before you use their data, one person or a whole list at once.Hear about every change
Webhooks tell your systems when consent is given or withdrawn and when data is due for erasure, signed so you can trust them.Confirm what you did
Your system confirms each withdrawal or erasure it acted on, and that confirmation joins the evidence trail.Keys you control
Workspace API keys are created in the console, shown once, and limited to what each system needs.
In code
curl https://api.dpdpworkspace.com/api/v1/consents/check \
-H "Authorization: Bearer $DPDPW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"person": {"reference": "CUST-1042"}, "purposes": ["your-purpose-id"]}'{
"id": "evt_7f3a9c2e",
"type": "consent.withdrawn",
"timestamp": "2026-11-18T09:30:00Z",
"workspace_id": "00000000-0000-4000-8000-000000000001",
"data": {
"record": {
"id": "00000000-0000-4000-8000-000000000002",
"occurred_at": "2026-11-18T09:29:58Z",
"received_at": "2026-11-18T09:29:59Z"
},
"person": { "reference": "CUST-1042" },
"purpose": { "id": "00000000-0000-4000-8000-000000000003", "name": "Offers by email" },
"decision": "withdrawn",
"notice": {
"version_id": "00000000-0000-4000-8000-000000000004",
"translation_id": null,
"current_version": true
},
"channel": "web",
"method": "toggle",
"source": { "kind": "preference_centre", "id": "00000000-0000-4000-8000-000000000005", "name": "Preference centre" }
}
}See it working with your team
We connect your first systems with you and show the records they keep.