Under India's DPDP Act and Rules, consent stops being a checkbox on the sign-up form and becomes something your systems have to prove. When a person asks what they agreed to, or the Data Protection Board asks why you emailed someone who had opted out, the answer has to come from data, not from a screenshot of an old form.
This article describes a consent system that meets the DPDP requirements and stays maintainable as your product grows. It is the design we use with clients, and it applies whether you run a lending app, an online store or a B2B SaaS product. Most of these obligations apply from 13 May 2027.
Last reviewed: 21 November 2026. Engineering guidance, not legal advice.
What the law asks of consent
The DPDP Act says consent must be:
- free, specific, informed, unconditional and unambiguous
- given by a clear affirmative action
- limited to the personal data necessary for the stated purpose
It also requires that:
- every consent request comes with, or follows, a notice that lists the data and the purpose for each item, and explains how to withdraw consent, exercise rights and complain to the Board
- the notice is available in English or any of the 22 languages in the Eighth Schedule of the Constitution
- withdrawal is as easy as giving consent
- once consent is withdrawn, you and your Data Processors stop processing that data within a reasonable time
- if challenged, you must prove that notice was given and consent was obtained
That last point shapes the whole design. You need records detailed enough to show exactly what a person saw and agreed to at a given moment.
Consent isn't the only lawful basis. The Act lists "legitimate uses" that don't need consent, such as data a person gives voluntarily for a specific purpose, employment, legal obligations and medical emergencies. Your system should record the basis for every purpose, so you never ask for consent you don't need, and never rely on a legitimate use that doesn't actually fit.
The building blocks
A consent system that holds up has five parts:
- A purpose register: the list of everything you use personal data for.
- Versioned notices: generated from the purpose register.
- A consent ledger: an append-only record of every consent event.
- A consent check API: the one place other systems ask "may I?".
- Withdrawal events: so every system and vendor stops when someone changes their mind.
1. The purpose register
Start by listing purposes in business language. "Improve our services" is too vague to be specific. Good purposes are narrow enough that a person can reasonably say yes to one and no to another:
| Purpose ID | Description | Data items | Lawful basis | Retention |
|---|---|---|---|---|
account |
Create and run your account | name, mobile, email | Legitimate use (provided for this purpose) | Account life + 1 year |
kyc |
Verify identity as required by RBI | PAN, Aadhaar (masked), photo | Legal obligation | As required by law |
marketing_email |
Send offers by email | email, purchase history | Consent | Until withdrawn |
credit_bureau |
Share repayment data with credit bureaus | loan and repayment data | Legal obligation | As required by law |
product_analytics |
Measure feature usage | device ID, events | Consent | 13 months |
Store this as configuration in your repository, reviewed like code. Product, legal and engineering then share one source of truth, and every change has an author and a date.
2. Versioned notices
Generate the notice from the purpose register, so they can never disagree. Each published notice gets a version ID and a content hash, and is stored permanently:
{
"notice_id": "signup-v7",
"hash": "sha256:9c1f…",
"language": "hi",
"published_at": "2027-03-02T10:00:00Z",
"purposes": ["account", "marketing_email", "product_analytics"]
}
A few practical points:
- One screen, many choices. You can show several purposes in one notice, but each purpose that relies on consent needs its own choice. Bundling marketing into "I agree to the terms" is not specific or unconditional.
- Don't make essential services depend on optional consent. If someone says no to analytics, the product should still work.
- Translations are versions too. The Hindi and Tamil text are separate records with their own hash.
- Keep old notices forever. Your proof depends on them.
3. The consent ledger
The ledger is the heart of the system. Treat it like a financial ledger: append-only, every change recorded as a new event, never edited in place.
create table consent_events (
id uuid primary key,
principal_id uuid not null, -- the person
purpose_id text not null,
action text not null check (action in ('granted','withdrawn','expired')),
notice_id text not null, -- exact notice version shown
source text not null, -- 'web', 'android', 'ios', 'call_centre', 'consent_manager:<id>'
actor text not null, -- 'self', 'guardian:<id>', 'nominee:<id>', 'agent:<id>'
evidence jsonb not null, -- ip, user agent, session id, guardian verification ref
occurred_at timestamptz not null,
recorded_at timestamptz not null default now()
);
create index on consent_events (principal_id, purpose_id, occurred_at desc);
The current state of a person's consent is the latest event for each purpose. Keep a materialised consent_state table for fast reads, rebuilt from the events, but never write to it directly.
Why events instead of a boolean column?
- You can answer "what was this person's consent on 4 March?" which a boolean can't.
- Disputes and audits need the history, not just the current value.
- Sources and actors are recorded, so you can tell a person's own choice from a guardian's, or from a Consent Manager.
Consent Managers registered with the Board must keep consent records for at least seven years. Fiduciaries don't have one fixed period for their own records, but you need to be able to prove consent for as long as you rely on it, and for long enough to answer a complaint afterwards. Agree a period with counsel and apply it to the ledger as well.
4. One consent check API
Every system that uses personal data for a consent-based purpose asks the same service before it acts:
GET /consent/check?principal=7f3…&purpose=marketing_email
→ { "allowed": false, "basis": "consent", "state": "withdrawn", "since": "2027-06-11T08:12:44Z" }
Rules that keep this reliable:
- Fail closed. If the consent service can't be reached, a marketing send should wait or skip. Sending anyway is not a safe default.
- Cache with short lifetimes and invalidate on withdrawal events, so high-volume systems stay fast without acting on stale consent.
- Check at the point of use, not only at collection. A campaign built on Monday must re-check consent when it sends on Thursday.
- Batch checks for bulk jobs, such as
POST /consent/check-batchwith thousands of IDs.
5. Withdrawal that reaches everything
Withdrawal fails most often in the systems you forgot: the CRM, the email platform, the data warehouse, the ad audience sync, a vendor's copy.
When someone withdraws consent, write the event to the ledger and publish it:
{
"type": "consent.withdrawn",
"principal_id": "7f3…",
"purpose_id": "marketing_email",
"occurred_at": "2027-06-11T08:12:44Z"
}
Then:
- Every internal consumer subscribes and acts: remove the person from audiences, stop jobs, suppress sends.
- Every Data Processor gets the instruction too, through an API, a webhook or a scheduled export, depending on what each vendor supports. The Act makes you responsible for your processors stopping as well.
- Each consumer confirms that it has acted. Track the confirmations, and alert when a consumer hasn't confirmed in time.
- Decide what happens to the data. Withdrawal stops processing for that purpose. If the data isn't needed for any other purpose or legal requirement, it should then be erased under your retention rules.
The user-facing side matters as much. Put a "Privacy and consent" screen in the account menu that lists each purpose with a switch, the date it was last changed and a link to the notice. If sign-up took one tap, withdrawal shouldn't need an email to support.
Children and guardians
For users under 18, and for persons with disabilities who have a lawful guardian, you need verifiable consent from the parent or guardian before processing. The Rules allow this to be checked against reliable identity and age details you already hold, or through a virtual token from an authorised provider such as DigiLocker.
In the ledger, these consents use actor: guardian:<id> and store the verification reference in evidence. Add a child flag on the person's profile that every analytics, personalisation and advertising system respects. Behavioural tracking and targeted advertising directed at children are not allowed, with only narrow exemptions.
Working with Consent Managers
Since 13 November 2026, Consent Managers can register with the Data Protection Board. A Consent Manager is an independent platform where people manage their consent across many businesses.
You're not required to integrate with one. But design for it now:
- Treat a Consent Manager as one more
sourcein the ledger. - Accept consent and withdrawal events from it through the same internal API as your own screens.
- Make sure a withdrawal from any source has the same effect.
If Consent Managers become popular, this turns into an integration task rather than a rebuild.
Proving it: what an audit needs
When asked to prove consent for a person, you should be able to produce, within minutes:
- the full event history for that person and purpose
- the exact notice text and language they saw, matched by hash
- the evidence captured at the time, such as channel, session and guardian verification
- every system and processor that received a withdrawal, and when each confirmed
Build this export early and test it. If it takes an engineer a week of SQL to answer one request, you'll struggle when the Board asks, or when a customer's procurement team does.
Common mistakes
- Consent stored as a column on the users table. It loses history, sources and notice versions.
- One "I agree" covering everything. That consent isn't specific.
- Consent checked only at sign-up. Later jobs act on whatever was true months ago.
- Analytics and ad SDKs that run before consent. Mobile SDKs often start collecting on app launch. Initialise them only after the check passes.
- Withdrawal that only updates your database. Vendors keep processing, which is still your responsibility.
- Notices edited in place. Then you can't prove what anyone saw.
Checklist
- Purpose register in version control, with a lawful basis and retention period for each purpose
- Notices generated from the register, versioned, hashed and available in the languages your users choose
- Append-only consent ledger with source, actor, notice version and evidence
- Consent check API that fails closed, with batch support
-
consent.withdrawnevents consumed by every internal system, with confirmations tracked - Withdrawal passed on to every Data Processor
- Self-service consent screen in web and mobile apps
- Guardian consent flow and a child flag that disables tracking and targeted ads
- Ledger accepts consents from Consent Managers as a source
- One-click audit export for any person and purpose
- Mobile and web SDKs initialised only after consent
We design and build consent, privacy and audit systems as part of our product engineering work, for FinTech, SaaS and e-commerce products in particular. If you want a review of your current consent flow before May 2027, talk to us.