# PolicyGrain documentation > DPDP Act documents, consent banner v2 (4.94 KB gzipped), install verification, cryptographic consent evidence, ecosystem plugins, and CheckMyDPDP scanner for Indian websites. Every page is available as Markdown at its `.md` URL. - Full documentation corpus: https://docs.policygrain.com/llms-full.txt - OpenAPI 3.1.0 contract (static snapshot): https://docs.policygrain.com/openapi.json - OpenAPI 3.1.0 contract (live API): https://api.policygrain.com/v1/openapi.json - DPDP coding-agent skill: https://docs.policygrain.com/SKILL.md - Canonical skill URL: https://policygrain.com/SKILL.md ## Start here - [What PolicyGrain does](https://docs.policygrain.com/index.md): Overview of PolicyGrain: 10 DPDP/IT/CPA/CERT-In cited documents (English today; Hindi and the other Eighth Schedule languages next), 4.94 KB Consent Banner v2, SHA-256 + Ed25519 evidence ledger, CheckMyDPDP 3-pass scanner, 5 ecosystem plugins, and coding-agent tools. - [5-minute DPDP quickstart](https://docs.policygrain.com/quickstart.md): Go from zero to verified domain, 4.94 KB consent banner, cited privacy notice, and exported consent receipt in five concrete steps. - [Concepts](https://docs.policygrain.com/concepts.md): Core PolicyGrain concepts: questions and tiers, 10 cited document kinds, answer provenance, material_version, sites and domains, receipts and trust classes, and scoped API keys. ## Guides - [Generate cited notices (10 document kinds)](https://docs.policygrain.com/guides/generate.md): Assemble ten DPDP, IT (SPDI), Consumer Protection Act, and CERT-In documents from pinned legal-sources with inline citations, in English today. - [Refine clauses with Tier 2 questions (API)](https://docs.policygrain.com/guides/refine.md): Use Tier 2 conditional questions through PATCH /v1/profiles/{id} to tailor clauses and confirm agent-inferred answers. - [Publish hosted document pages](https://docs.policygrain.com/guides/publish.md): Publish approved notices as static, zero-JavaScript, zero-cookie pages on pages.policygrain.com with numbered version archives. - [Consent Banner v2 (4.94 KB gzipped)](https://docs.policygrain.com/guides/install-banner.md): Install the 4.94 KB gzipped equal-choice DPDP consent banner with Google Consent Mode v2 (all 7 signals), synchronous returning-visitor restore, Global Privacy Control, and Shadow DOM iframe blocking. - [Verify your live install](https://docs.policygrain.com/guides/verify.md): Run a live 3-pass headless Chromium verification against your verified domain and inspect pass, fail, or inconclusive evidence. - [Cryptographic evidence ledger & exports](https://docs.policygrain.com/guides/evidence.md): Understand HMAC-SHA256 IP keys, per-site SHA-256 hash chains, Ed25519 daily Merkle roots, limit-aware JSON/CSV exports with formula neutralization, and the 10,000 monthly free-tier counter. - [CheckMyDPDP 3-pass scanner & Chrome Inspector](https://docs.policygrain.com/guides/checkmydpdp.md): How CheckMyDPDP runs 3-pass headless Chromium scans across 11 evidence-backed checks with no scores, plus the local-only Chrome MV3 Inspector. - [Data Principal rights, grievances & drift monitoring](https://docs.policygrain.com/guides/rights-and-drift.md): Handling DPDP ss.11–14 rights requests, Rule 14 grievance timelines, and scheduled 'Changes Since Last Scan' drift checks. ## Plugins & SDKs - [Ecosystem plugins & frameworks](https://docs.policygrain.com/plugins.md): Official PolicyGrain integrations for Google Tag Manager, WordPress, Shopify, React / Next.js, and the local-only CheckMyDPDP Chrome MV3 Inspector. - [Google Tag Manager Community Template](https://docs.policygrain.com/plugins/gtm.md): Import PolicyGrain's GTM template for all 7 Google Consent Mode v2 signals, regional defaults, and synchronous returning-visitor restoration. - [WordPress Plugin (PHP 8+)](https://docs.policygrain.com/plugins/wordpress.md): Install the PolicyGrain WordPress plugin with WP Consent API integration, WooCommerce compatibility, and notice shortcodes. - [Shopify Theme App Extension](https://docs.policygrain.com/plugins/shopify.md): Add PolicyGrain's Theme App Extension block to Online Store 2.0 themes and bridge choices to Shopify's Customer Privacy API. - [React & Next.js SDK (@policygrain/react)](https://docs.policygrain.com/plugins/react-nextjs.md): TypeScript-first React 18/19 and Next.js App Router integration with , PolicyGrainProvider, usePolicyGrainConsent, and PolicyGrainGate. - [CheckMyDPDP Chrome MV3 Inspector](https://docs.policygrain.com/plugins/chrome-inspector.md): 100% local Manifest V3 Chrome extension for inspecting pre-consent cookies, third-party scripts, Consent Mode v2 signals, and DPDP banner parity on the active tab. ## API reference - [Authentication](https://docs.policygrain.com/reference/authentication.md): API keys for agents and CI, WorkOS sign-in and refresh sessions for the web app, and account claiming. - [API keys](https://docs.policygrain.com/reference/keys.md): Create, list, keep and revoke scoped API keys, and inspect the current account through /v1/keys and /v1/account. - [Errors and the fix field](https://docs.policygrain.com/reference/errors.md): The standard { code, message, field, fix } JSON error shape and every built identity error code. - [Rate limits and idempotency](https://docs.policygrain.com/reference/rate-limits.md): Fixed-window identity limits, Retry-After handling, and how Idempotency-Key works on mutating routes. - [Interactive OpenAPI 3.1.0 Reference](https://docs.policygrain.com/api-reference.md): Explore every PolicyGrain and CheckMyDPDP endpoint interactively via Scalar against the merged OpenAPI 3.1.0 specification (/openapi.json). - [Questions](https://docs.policygrain.com/reference/questions.md): Read the versioned DPDP question set, options, visibility conditions and corpus metadata. - [Profiles](https://docs.policygrain.com/reference/profiles.md): Create and update business profiles storing answers, fields and answer sources. - [Generations](https://docs.policygrain.com/reference/generations.md): Start asynchronous document generation runs and poll until settled. - [Documents](https://docs.policygrain.com/reference/documents.md): List documents, download HTML or Markdown versions, and publish hosted pages. - [Sites and banner config](https://docs.policygrain.com/reference/sites.md): Register sites, verify domains, version banner configs and publish them to the CDN. - [Receipts and consent events](https://docs.policygrain.com/reference/receipts.md): Public receipt ingest from the banner, consent event queries, daily Ed25519 Merkle roots, and limit-aware JSON/CSV evidence packs. - [Verifications and CheckMyDPDP scans](https://docs.policygrain.com/reference/verifications.md): Run live 3-pass browser sandbox checks for verified domains (modules/verify) or public URLs (CheckMyDPDP modules/scanner). - [Usage](https://docs.policygrain.com/reference/usage.md): Check monthly trusted consent receipts per site against the 10,000 free-tier allowance. - [Billing and plans](https://docs.policygrain.com/reference/billing.md): Plans, prices with 18% GST, Razorpay subscriptions, entitlements and GST invoices (modules/billing). ## Agents - [MCP setup](https://docs.policygrain.com/agents/mcp.md): Configure the @policygrain/mcp stdio server for Claude Code, Cursor and Codex. - [CLI](https://docs.policygrain.com/agents/cli.md): Use @policygrain/cli and the standalone checkmydpdp command from your terminal or CI. - [The DPDP skill (SKILL.md)](https://docs.policygrain.com/agents/skill.md): How coding agents use SKILL.md v0.9 to scan a site, draft answers and install PolicyGrain. - [Prompt library](https://docs.policygrain.com/agents/prompts.md): Six copy-paste v0.9 prompts for coding agents, with guardrails, operation order and output format. ## Legal - [What these documents are and are not](https://docs.policygrain.com/legal/what-these-documents-are.md): What PolicyGrain's generated notices are, what they are not, and what stays your responsibility. - [Provenance and template versions](https://docs.policygrain.com/legal/provenance.md): How each clause traces to the law it cites and to a pinned legal-sources commit. - [Disclaimer](https://docs.policygrain.com/legal/disclaimer.md): PolicyGrain is not a law firm, and nothing on PolicyGrain is legal advice. ## Changelog - [Changelog](https://docs.policygrain.com/changelog.md): Dated release notes for PolicyGrain API, Banner v2, plugins, SDKs, and CheckMyDPDP.