Skip to Content
Vidhi Developers
Guide

Privacy, Zero-PII Telemetry & Licensing

How Vidhi handles brief confidentiality, BSA s.132 privilege, POCSO/BNS compliance, takedowns, and Cohort 1 terms.

Open Markdown

Zero-PII Audit Logging

Every /api/v1/in/* request is logged in api_usage_logs for credit accounting and diagnostics without storing client secrets or sensitive legal text:

  • No raw Bearer tokens: Keys are stored and cached exclusively as SHA-256 hashes.
  • No raw query or brief text: Search queries, pasted briefs, orders, notices, and contracts are digested into a keyed query_hmac (HMAC-SHA256 of up to the first 256 UTF-8 bytes) — raw text is never written to api_usage_logs.
  • No client PII: Client names, party identifiers, and IP-derived PII are excluded from structured API logs.

Statutory Privilege & Redaction Firewall (B7)

Before routing sensitive drafts to downstream reasoning pipelines or third-party LLMs, run POST /api/v1/in/compliance/redact-firewall:

  • Detects and redacts Bharat PII (Aadhaar, PAN, phone numbers, email addresses, bank/account identifiers).
  • Blocks protected victim-identity disclosures under POCSO Act s.23, Juvenile Justice Act s.74, and BNS s.72.
  • Enforces Bharatiya Sakshya Adhiniyam, 2023 (BSA) s.132 / s.134 advocate-client privilege checks (422 privilege_enclave_blocked automatically refunds reserved credits).

Document Restriction & Takedown Gate

If a corpus ruling is restricted under court order or takedown policy (corpus_api_evaluation_events), endpoints return HTTP 403 (document_restricted) cleanly.

Cohort 1 Licensing

  • License: Proprietary Cohort 1 Evaluation License (https://vidhi.shamik.app/terms).
  • Evaluation Credits: Cohort 1 partners receive an evaluation balance billed in integer credits (indicative_inr_per_credit: 1.0 shown in /api/v1/in/pricing for budget estimation).
  • Redistribution: API responses may ground internal legal workflows and partner applications; bulk corpus scraping or redistribution of raw judgment archives is prohibited.

On this page