DPDP Workspace
Menu

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

In code

Check consent before you process
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"]}'
What a webhook sends when consent is withdrawn
{
  "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.