Developers
Quick start
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.
3. Share the consent link
https://dpdpgrid.in/AbCdEf123456Send 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:
<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:
curl https://api.dpdpgrid.in/api/public/consent/AbCdEf123456Then record the person's choices:
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.