Developers

Quick start

From sign-up to your first consent recorded by your own server.
Developer pages and contents

1. Make a workspace

Sign up, then make a workspace. A workspace is one Data Fiduciary: your business, or one client of yours.

Its public id, the slug, has 12 characters: letters, digits, - and _. It is the last part of the workspace's consent link. The examples here use AbCdEf123456.

2. Add purposes and publish a notice

Start from a template for your kind of business, or add purposes yourself. Each purpose has a code, such as billing or marketing. Then publish the notice.

See Purposes, codes and notice versions.

Text
https://dpdpgrid.in/AbCdEf123456

Send it by e-mail or message, or print its QR code. See Consent page and QR code.

4. Add the widget to your website

List your website on the workspace's Website tab, then add this tag to your pages:

HTML
<script src="https://cdn.dpdpgrid.in/w/AbCdEf123456.js" data-lang="en" async></script>

See Website widget.

5. Record consent from your server

Make a key on the workspace's API tab. Read the published notice to get its id and the purpose codes:

Shell
curl https://api.dpdpgrid.in/api/public/consent/AbCdEf123456

Then record the person's choices:

Shell
curl -X POST https://api.dpdpgrid.in/api/public/consent/AbCdEf123456/v1 \
  -H "Authorization: Bearer lsc_your_key_here_000000000000" \
  -H "Content-Type: application/json" \
  -d '{"person":{"customerId":"CUST-1001"},"noticeId":"cmexamplenotice000000001","choices":{"billing":true,"marketing":false}}'

See Consent API.

Quick start · DPDPGrid developers