What is a consent record?
A consent record is the stored evidence that a specific person agreed to receive messages, kept per contact and per purpose. A useful record answers five questions without anyone's memory: who agreed (the phone number or WhatsApp ID), when (a timestamp with a timezone), where and how (checkout checkbox, in-store QR code, Click-to-WhatsApp ad, IVR keypress, a reply in chat), what they saw (the exact wording, or a version ID for it) and what they agreed to (order updates, offers, reminders). Every later change — a withdrawal, a renewed consent, a new purpose — is added to the same history.
Two sets of rules make it necessary. Meta's WhatsApp Business Messaging Policy requires an opt-in before a business messages someone, stating that the person agrees to receive messages from that named business (since Meta's November 2024 update the wording need not name WhatsApp, if local law allows); Meta does not collect or audit that proof, so it lives with you. India's Digital Personal Data Protection Act goes further: where consent is the basis for processing, the data fiduciary must prove that a notice was given and consent obtained (section 6(10)), and withdrawal must be as easy as giving consent (section 6(4)).
An Opt-in is the act; the consent record is the proof that it happened. Double Opt-in produces a stronger record by adding a confirming action. A consent manager registered under the DPDP Act may keep its own records for the individual, and a Suppression List enforces withdrawals at send time — but neither replaces the record you keep yourself.
Key takeaways
- A consent record is the evidence that one person agreed to be messaged: who, when, where, the wording shown and the purposes accepted.
- Under DPDP Act section 6(10), the business must prove that notice was given and consent obtained — the record is that proof.
- Meta requires opt-in before you message people on WhatsApp but does not store or check your records for you.
- Strong records are captured at the moment of opt-in, store the notice version, keep purposes separate and are append-only.
- A withdrawal belongs in the record too: log it, keep the history and push it to every system that can send.
Example: One checkout, two purposes, one withdrawal
A Bengaluru home-décor store adds two unticked boxes to checkout: order updates on WhatsApp, and offers on WhatsApp. Ananya ticks both on 14 September. The store writes a record with her WhatsApp ID, the notice version wa-optin-v3, the page, both purposes and the time to the second, then sends a utility template confirming the order — her reply to it is linked as extra evidence. On 2 October she replies STOP to an offer. A new event marks offers withdrawn, the suppression list updates within a minute, and her order updates keep arriving. When she later asks why she ever got offers, support shows her the box she ticked and the exact wording beside it.
How does a consent record work?
- Step 1
Capture it at the moment of opt-in
Write the record server-side when the customer acts — the checkbox submit, the QR scan, the chat reply — never later from a list import. Store the timestamp in ISO 8601 with its offset.
- Step 2
Store the notice they saw
Keep each version of your opt-in wording and privacy notice with an ID and a hash, and save that ID on the record, so you can show the exact text years later.
- Step 3
Record purposes separately
One flag per purpose: order updates, reminders, offers. A blanket "marketing: yes" cannot show which messages the person expected.
- Step 4
Keep it append-only
Write events (granted, withdrawn, re-granted) instead of overwriting a status column, and restrict who can alter history. An editable timestamp is not evidence.
- Step 5
Log withdrawals and propagate them
A STOP reply, an opt-out button tap or a withdrawal through a consent manager is a new event. Add it to the record and to the suppression list before the next send.
- Step 6
Retain it deliberately
Keep the record for as long as you rely on the consent and for a defensible period after withdrawal, as set in your Data Retention schedule.
A consent record in code
CREATE TABLE consent_events (id BIGSERIAL PRIMARY KEY,wa_id TEXT NOT NULL, -- e.g. '919812345678'purpose TEXT NOT NULL, -- 'order_updates' | 'offers'action TEXT NOT NULL CHECK (action IN ('granted', 'withdrawn')),notice_version TEXT NOT NULL, -- wording the person sawchannel TEXT NOT NULL, -- 'website_checkout', 'whatsapp_reply', ...evidence JSONB NOT NULL, -- page, wamid, IVR call id, ...occurred_at TIMESTAMPTZ NOT NULL,recorded_at TIMESTAMPTZ NOT NULL DEFAULT now());-- No UPDATE or DELETE grants for the application role: history only grows.-- Current state per person and purpose = the latest event.SELECT DISTINCT ON (wa_id, purpose) wa_id, purpose, action, occurred_atFROM consent_eventsWHERE wa_id = '919812345678'ORDER BY wa_id, purpose, occurred_at DESC;
Events, not a status column: the latest event per purpose is the current consent.
Common mix-ups
Common mistakes with a consent record
Treating an imported list as consent
A spreadsheet of customer numbers proves a relationship, not an opt-in. Without the moment, the source and the wording, there is no consent record — collect a fresh opt-in instead.
One blanket consent for everything
A single flag cannot show that someone agreed to offers rather than order updates. Store purposes separately so you can honour partial consent and prove what was agreed.
Overwriting history
Updating a status column from "yes" to "no" erases the evidence that consent existed when you sent earlier messages. Append events and keep them.
Saving the checkbox, not the words
"Opted in: true" means little if the wording changed three times since. Version the notice text and store its ID on every record.
A consent record: key facts and limits
- Minimum contents
- Who, when, where/how, wording shown, purposes
- Burden of proof (India)
- On the business — DPDP Act s. 6(10)
- Withdrawal
- As easy as giving consent — s. 6(4)
- Meta's rule
- Opt-in required before messaging; proof kept by you
- Timestamp format
- ISO 8601 with offset, e.g. 2026-09-14T18:42:07+05:30
- Storage model
- Append-only events per contact and purpose
Why the difference matters
Why does a consent record matter?
Consent is only as good as your ability to show it. When blocks spike after a campaign, when a customer insists they never signed up, when you file a Policy Appeal or answer a complaint to the Data Protection Board, the question is the same: show me. A reconstructed spreadsheet does not answer it; a timestamped, append-only record with the wording the customer saw does. Good records also make marketing better, because purposes kept separately let you keep sending order updates to someone who only declined offers.
Rules of thumb
Best practices for a consent record
- Link the confirming inbound message's
wamidto the record when the opt-in happens in WhatsApp — it is hard evidence. - Mask records in logs and analytics; the consent store itself is personal data and needs access control.
- Run a monthly check that every number in each marketing audience has a current granted event for offers.
- Serve every opt-in form's wording from one versioned source, so the text matches everywhere and the version ID is recorded automatically.