DPDP Act API gateway: consent, logs and the May 2027 date
India's DPDP consent managers can now register. What banks and fintechs need from their API gateway before 13 May 2027: consent checks, logs and safeguards.
- compliance
- security
- banking
- fintech
- audit
- data-residency
India's Digital Personal Data Protection (DPDP) Act is now in its second phase. Consent managers, the registered platforms through which people give and withdraw consent, can apply to the Data Protection Board since 13 November 2026. On 13 May 2027 the security and logging rules apply to every data fiduciary. For banks and fintechs, a DPDP Act API gateway is where three duties meet: refuse calls once consent is withdrawn, log who accessed personal data, and keep those logs for at least a year.
What changed under India's DPDP Act in November 2026?
The DPDP Rules, 2025 were notified as G.S.R. 846(E) on 13 November 2025 and come into force in three steps. The rules on the Board took effect on publication. Rule 4, on consent managers, took effect one year later. Rules 3 and 5 to 16, covering notices, security safeguards, breach reporting and retention, take effect eighteen months after publication, which is 13 May 2027.
The middle step landed this month. In a release dated 14 November 2026, the Ministry of Electronics and Information Technology (MeitY) said the consent manager registration framework came into effect on 13 November 2026 and that applications are now open on dpbi.gov.in. Applicants must be companies incorporated in India with a net worth of at least ₹2 crore. The Board will publish the list of registered consent managers on its website.
A consent manager gives people one place to give, manage, review and withdraw consent. Section 6(7) of the Act lets them do that through a consent manager, and the Rules let them consent to any data fiduciary onboarded onto its platform. The illustration in the Rules' First Schedule is a bank asking a customer, through such a platform, for consent to read her account statement, with a second bank sending that statement on her instruction. So consent decisions will increasingly arrive from outside your own app, while the data flows through your APIs.
That leaves about five and a half months before the operational rules apply. For most banks, insurers, lenders and fintechs in India, the API layer is where much of that work lands.
What does DPDP require at the API layer?
Four provisions do most of the work for API teams.
Withdrawal must stop processing. Section 6(6) says that when a person withdraws consent, the data fiduciary must, "within a reasonable time", cease processing and make its data processors cease too. If a partner or vendor still reads a customer's data through your APIs after withdrawal, you are processing without a lawful basis.
Access must be visible. Rule 6(1)(c) requires "visibility on the accessing of such personal data, through appropriate logs, monitoring and review" so that unauthorized access can be detected, investigated and fixed. Rule 6(1)(b) adds access control over the systems that hold the data.
Logs must be kept for a year. Rule 6(1)(e) requires retaining those logs for one year unless another law says otherwise. Rule 8(3) separately requires keeping personal data, "associated traffic data and other logs of the processing" for at least one year from the processing, and then erasing them unless another law requires longer.
Breaches have a 72-hour clock. Rule 7(2) requires a detailed report to the Board within 72 hours of becoming aware of a breach, including the facts, the cause and any findings about who caused it. You cannot write that report without logs that say which client called which endpoint and when.
The penalties explain why boards are asking about this. The Schedule to the Act sets a ceiling of ₹250 crore for failing to take reasonable security safeguards, ₹200 crore for failing to notify a breach, and ₹50 crore for breaching any other provision.
What goes wrong today for Indian banks and fintechs?
Most API estates were not built around consent or around a single access log.
- Partners keep calling after withdrawal. Consent lives in one system, often the mobile app's back end, while partner and vendor traffic reaches core systems through shared API keys. Nothing between the two checks the consent record on each call.
- Access logs are scattered. One partner's calls are spread across a load balancer, two gateways and an application log, each with its own format and retention. Finding every call a vendor made to customer records in one week takes days, and the Board wants a report in 72 hours.
- Retention is accidental. Some logs roll over after 30 days; others keep full request bodies indefinitely, which copies personal data into a store nobody governs. Neither meets Rule 8(3).
- Vendors share credentials. When a processor's integration uses the same key as three other systems, you cannot cut it off without an outage, and the logs cannot tell you which of them made a call.
- AI agents arrive without a path. Internal assistants that read account or KYC data often connect directly to back ends, outside the controls that apply to partners.
In plain terms
From 13 May 2027, Indian regulators can ask any company that handles personal data to show who accessed customer data, through which system and when, and to prove it stops using data when customers say no. Today many companies could not answer in a week, let alone 72 hours. Leaders should put every partner, vendor and AI agent that touches personal data behind one controlled entry point, keep a year of access records in India, and test the consent-withdrawal path before the deadline. This is mostly a configuration and process project, not a rebuild.
How does a DPDP Act API gateway help a data fiduciary?
Zerq is an API gateway that runs inside your own infrastructure, so personal data and the logs about it stay in your data center or Indian cloud region. Here is how each duty maps to a capability.
| DPDP duty | Zerq capability |
|---|---|
| Access control (Rule 6(1)(b)) | Each partner, processor or agent is its own client with a profile that authenticates by mTLS, OIDC or token. It sees only the collections assigned to it (others return 404) and only the allowed methods (others return 405). |
| Stop processing on withdrawal (Section 6(6)) | A workflow on consent-bound endpoints looks up your consent record and refuses the call unless consent is active. |
| Cut off a processor fast | Setting a client inactive returns 401 on its next call, without rotating anyone else's credentials. The change is audited. |
| Visibility of access (Rule 6(1)(c)) | Every call is written to request logs in your MongoDB with the client, profile, route, status, latency and time. |
| One-year retention (Rules 6(1)(e), 8(3)) | REQUEST_LOG_RETENTION_DAYS deletes entries past the limit; set it at or above 365. |
| Breach investigation (Rule 7) | Filter logs by client, route, status, IP and date range, or stream them to your SIEM. |
| Evidence of configuration changes | A hash-chained audit log of every management action, with integrity verification for auditors. |
| AI agents | Agents reach APIs through the gateway's MCP endpoint under the same client, limits and logs. |
Partners onboard through the developer portal, so each one gets its own credentials from the start instead of a shared key, as in the open banking use case. Because Zerq has no external control plane, the architecture keeps traffic, configuration and logs inside the boundary you choose.
If you are planning DPDP work for a bank or lender, see how this fits the fintech and payments use case or talk to us about your consent and logging setup.
Technical deep dive: configuring the gateway for DPDP
The steps below use field and variable names from Zerq's code. Adapt values to your own retention policy and legal advice.
1. Set retention and log levels
Request and audit log retention are environment variables. 0, the default, keeps everything, which is not what Rule 8(3) asks for. The retention job runs at startup and then hourly.
# Gateway environment
REQUEST_LOG_RETENTION_DAYS=400 # at least one year, plus a buffer
AUDIT_LOG_RETENTION_DAYS=2555 # set by your own policy and other laws
REQUEST_LOG_LEVEL=headers # full | headers | metadata | none
AUDIT_CHAIN_KEY=<from your secrets tooling> # HMAC chain for the audit log
Log levels decide how much personal data the log itself holds. full stores headers and bodies, headers drops bodies, and metadata keeps only method, path, status, latency, IDs and errors. Each proxy can override the default with its own log_level, so a statement or KYC endpoint can log metadata only. You keep a record of every access (Rule 6(1)(c)) without copying statements into the log store. The gateway already masks credentials in headers, query strings and bodies before storing them; it does not mask personal data, so the log level is your main control there.
2. Stream logs to your SIEM without bodies
LOG_STREAM_SPLUNK_HEC_URL=https://splunk.internal.example.in:8088/services/collector
LOG_STREAM_SPLUNK_HEC_TOKEN=<token>
LOG_STREAM_TYPES=request,audit
LOG_STREAM_INCLUDE_BODIES=false # the default
OTLP (LOG_STREAM_OTLP_ENDPOINT) and a webhook (LOG_STREAM_WEBHOOK_URL) are the other destinations.
3. Check consent on consent-bound endpoints
On a proxy that serves personal data under consent, open its workflow and add an http_request_node that looks up the consent ID your channel or consent manager integration issued, then a condition_node that passes only an active consent:
{
"id": "consent_gate",
"type": "condition_node",
"data": {
"config": {
"conditions": [
{
"condition": "$json['check_consent'].response.body.status === 'active'",
"output": "allowed"
}
],
"default_output": "refused"
}
}
}
Wire allowed to the forward step and refused to a response_node that returns 403. Wire the lookup's error output to a refusal too, so an unreachable consent service fails closed. The UAE consent enforcement how-to walks through the same pattern node by node, including testing every branch.
4. Answer the Board's questions from the logs
When a vendor's credentials leak, the first query is every call that client made in the window:
curl -H "Authorization: Bearer $TOKEN" \
"https://zerq.internal.example.in/api/v1/logs?client_id=<client-id>&start_date=2027-06-01T00:00:00Z&end_date=2027-06-08T00:00:00Z&limit=100"
Each entry carries client_id, profile_id, route, status, client_ip, created_at and a request_id. Reading logs needs a viewer role; deleting a log entry is admin-only and recorded in the audit log, so a missing entry leaves a trace. Auditors can run Verify integrity on the audit log to show configuration history has not been altered.
Use-case scenario
Illustrative scenario, not a specific customer deployment.
Before: A mid-sized Indian lender shares customer data with two co-lending partners and a KYC vendor. All three use API keys issued years ago, and the vendor's key is also used by an internal batch job. Consent sits in the mobile app's database. Gateway logs roll over after 30 days, and application logs hold full statement bodies with no retention limit.
What was set up in Zerq: Each partner, the vendor and the batch job became separate clients with mTLS profiles, assigned only the collections their contracts cover. The statement and KYC proxies were set to metadata logging, with REQUEST_LOG_RETENTION_DAYS=400, and request and audit logs stream to the lender's SIEM without bodies. A consent-check workflow sits on the statement endpoints and reads a consent service the app and the consent manager integration both update. The internal service assistant moved to the gateway's MCP endpoint, assigned only a collection whose proxies allow GET.
After: When a customer withdraws consent, the next partner call for her statements is refused with a 403, and the refusal is in the request log. When the KYC vendor reported a compromised laptop, operations set its client inactive, pulled a week of its calls with one filtered query, and had the facts for the Board's 72-hour report the same afternoon.
Checklist: is your API layer ready for 13 May 2027?
- Does every partner, processor and AI agent that touches personal data have its own credentials?
- Can each caller reach only the endpoints and methods its purpose needs?
- Is consent checked on each call to consent-bound endpoints, failing closed when the check cannot run?
- Do you know how a withdrawal from a consent manager reaches your consent record, and how fast?
- Can you cut off one processor in minutes without affecting others?
- Are all access logs for personal data in one place, kept for at least a year, and then deleted?
- Do your logs avoid storing full personal data where metadata would do?
- Could you list every call one client made in a given week within an hour?
- Are configuration changes to access rules audited and verifiable?
- Do personal data and logs stay in infrastructure you control in India?
Limitations
Zerq is not a consent manager and does not register with the Board; it enforces the consent state that your systems hold. The Board's data protection standards and assurance framework for consent manager platforms (First Schedule, Part A, item 9) are what consent managers certify against, so check dpbi.gov.in for what they say about integration before you design the consent feed. Request logs are access-controlled and retained, but unlike the audit log they are not hash-chained. Zerq does not discover personal data in back ends or handle notices and data principal rights requests; those belong in your privacy program. Sector rules from RBI, SEBI or IRDAI may require longer retention or other controls, and this post is not legal advice.
Summary
India's DPDP consent managers can register from 13 November 2026, and the operational rules on safeguards, logging and breach reporting apply from 13 May 2027. For banks and fintechs, the API layer is where consent withdrawal is enforced, where access to personal data becomes visible, and where a year of evidence is kept. A gateway in your own infrastructure gives each caller its own identity and scope, checks consent on the calls that need it, and keeps the logs in India. Start with the endpoints that serve statements and KYC data.
Related reading: Saudi PDPL amendments at the API layer, open finance vs open banking and AI agent data minimization at the gateway.
Sources
- Press Information Bureau (MeitY), "Consent Manager Registration Framework Comes into Effect; MeitY Secretary Launches Online Registration Portal", 14 November 2026: https://www.pib.gov.in/PressReleasePage.aspx?PRID=2336151
- Digital Personal Data Protection Rules, 2025, G.S.R. 846(E), Gazette of India, 13 November 2025 (Rules 1, 4, 6, 7 and 8; First Schedule): https://www.meity.gov.in/documents/act-and-policies/digital-personal-data-protection-rules-2025-gDOxUjMtQWa
- The Digital Personal Data Protection Act, 2023 (No. 22 of 2023), Sections 6 and 8 and the Schedule: https://www.meity.gov.in/static/uploads/2024/06/2bf1f0e9f04e6fb4f8fef35e82c42aa5.pdf
- Press Information Bureau, "DPDP Rules, 2025 Notified", 17 November 2025: https://static.pib.gov.in/WriteReadData/specificdocs/documents/2025/nov/doc20251117695301.pdf
Zerq is an enterprise API gateway built for regulated industries — one platform for API management, AI agent access, compliance audit, and developer portal, running entirely in your own infrastructure. See how it works or request a demo to walk through your specific requirements.