Developer Preview

Build on India's
Consent Infrastructure.

SecureConsent provides a REST API for DPDP-compliant consent capture, identity document storage, purpose tracking, and withdrawal handling. We're opening sandbox access to a limited number of teams with a genuine use case.

REST API + Webhooks · Node, Python, PHP SDKs · DPDP Rules 2025 compliant · Data stored in India (ap-south-1)

Everything you need to be DPDP-compliant in one integration.

Consent Lifecycle

Create, track, and honour consent across its full lifecycle - from first capture to withdrawal and deletion. Every state change is timestamped, signed, and auditable.

  • Capture consent per purpose (not one blanket checkbox)
  • Language-aware consent notices (all 22 scheduled languages)
  • Withdrawal honoured within 24 hours, with proof
  • Cryptographically signed consent receipts

Document & Identity Vault

Encrypted document storage with per-access audit logs. Users upload once and share selectively with any business in the network - no re-uploads, no rogue photocopies.

  • Aadhaar, PAN, Passport, Voter ID - one vault
  • DigiLocker pull integration (no manual upload)
  • Per-fetch access log with timestamp and purpose
  • Certificates of storage and deletion, signed

Notices & Grievance

DPDP mandates a privacy notice, a grievance officer, and a response SLA. The API generates compliant notices dynamically and routes grievance requests with tracking.

  • Dynamic consent notice generator (Section 5 compliant)
  • Grievance ticket creation and 30-day SLA tracking
  • Data principal rights portal (access, correct, erase)

Webhooks & Audit

Push consent events to your systems in real time. Every API call, document fetch, withdrawal, and deletion is logged in an immutable audit trail ready for regulator inspection.

  • Webhook on: consent.granted, consent.withdrawn, data.deleted
  • Immutable audit log export (CSV, JSON, PDF)
  • One-click compliance report for regulator submission

Clean REST endpoints. Predictable responses.

POST
/v1/consent

Create a new consent request for a data principal. Returns a consent link to send to the user and a consent ID for tracking.

GET
/v1/consent/:id

Fetch the current status of a consent record - granted, pending, withdrawn - with full purpose-level breakdown and timestamps.

DELETE
/v1/consent/:id

Honour a withdrawal or deletion request. Triggers data purge, generates a signed certificate of deletion, and fires the webhook.

POST
/v1/documents/request

Request access to a document from a user's vault. User receives an approval prompt. Access is logged with your purpose code.

GET
/v1/principal/:id/rights

Return all data held for a principal - consent records, documents, purposes, access log - for display in a rights portal.

POST
/v1/notice/generate

Generate a DPDP-compliant privacy notice for a given set of purposes and languages. Returns HTML and plain text ready to embed.

GET
/v1/audit/export

Export the full audit log for your organisation - filtered by date range, principal, or purpose - as JSON, CSV, or signed PDF.

POST
/v1/grievance

Create a grievance ticket on behalf of a data principal. Automatically assigns to your Grievance Officer and starts the 30-day SLA clock.

// Create a consent request
POST https://api.secureconsent.in/v1/consent
Authorization: Bearer sk_sandbox_••••••••
{
"principal_id": "user_4821",
"principal_phone": "+91-98XXXXXXXX",
"purposes": ["id_verification", "marketing_whatsapp", "loyalty_program"],
"language": "hi",
"auto_purge_after_days": 90,
"callback_url": "https://your-app.com/webhooks/consent"
}
→ 201 Created
{
"consent_id": "cns_k9p2m44x",
"consent_url": "https://consent.secureconsent.in/c/k9p2m44x",
"expires_at": "2026-06-17T08:00:00Z",
"status": "pending"
}

Sandbox access is approved, not automatic.

We review every request before issuing credentials. This keeps the platform secure and lets us assign a dedicated sandbox environment matched to your industry and use case. Approval typically takes 1–2 business days.

01
Send us an email

Tell us your company name and use case

Email [email protected] with your company name and a brief description of what you're building. We want to know: what industry, what data you'll be collecting, and how consent fits into your product flow. Two sentences is enough.

02
We review your request

Approval within 1–2 business days

We check that your use case is within scope of the DPDP Act - Data Fiduciary status, legitimate purpose, and Indian data storage. We may ask a follow-up question or two. If approved, you'll get a sandbox API key, a test dashboard login, and a copy of the integration guide.

03
Start building

Full sandbox with test consent flows and webhooks

The sandbox mirrors production exactly. You can create test consents, trigger withdrawals, request documents, and inspect the full audit trail - all against test principals. Webhooks fire to your local endpoint via our tunnel tool. No surprises when you go live.

Request Developer Access

Send us your company name and use case. We'll review and get back to you within 1–2 business days with your sandbox credentials and integration guide.

🏢
Company name

Your registered company or startup name. Individuals building a product are welcome too.

🛠
Use case

What you're building and how consent fits in - e.g. "guest check-in for hotel chain" or "lead capture for real estate CRM".

🇮🇳
India nexus

Your product collects data from people in India and you intend to become a Data Fiduciary under DPDP.

Email to Request Access →

Opens your mail client with the subject pre-filled. Send to [email protected].

Any product that touches personal data needs this.

Embedded Consent Flows

Drop a consent widget into your existing onboarding. Users see a branded consent screen for each purpose - in their language. You get a signed receipt. Five lines of code.

Compliant KYC Pipelines

Link identity verification to consent. No document fetch happens without active consent for the exact purpose. Every fetch is logged. Supports Aadhaar XML, DigiLocker, and manual upload.

CRM & Marketing Integrations

Before sending a WhatsApp campaign, check consent status via API. If withdrawn, the contact is suppressed automatically. Integrates with HubSpot, Leadsquared, Zoho, and custom CRMs via webhook.

Healthcare & Sensitive Data

DPDP classifies health data as sensitive. Our API supports purpose-limited access with stricter controls - consent required per use, per sharing partner, with separate audit log for regulator review.