# Vidhi Bharat Legal Intelligence Developer Platform > Programmatic REST API (`https://api.vidhi.shamik.app/api/v1/in/*`) and Hosted Streamable HTTP MCP (`https://vidhi-mcp.shamik.app/mcp`) for Bharat case law, 12 full-text tribunals, live citator, statutes, Sanhita 2024 transitions, and SOTA legal reasoning engines. ## Key Contracts - Bearer Auth: `Authorization: Bearer vdh_live_<32_hex>` or `vdh_test_<32_hex>` (never `X-Firm-ID`). - Legal Honesty: `claim_support` (whether a judgment states the asserted proposition) is strictly separate from `later_court_treatment` (whether the judgment remains good law). - ID Serialization: All `BIGINT` case and statute IDs are JSON strings (`^[0-9]+$`). - Idempotency: Metered Tier B `POST` routes honor `Idempotency-Key` (UUIDv4, 24h Postgres replay window). ## Guide - [Auth & Scopes](/docs/guide/auth-and-scopes) ([Markdown](/llms.mdx/guide/auth-and-scopes.mdx)): Bearer token formats, server-side RLS resolution, permission scopes, and instant key revocation. - [Changelog](/docs/guide/changelog) ([Markdown](/llms.mdx/guide/changelog.mdx)): Release history for the Vidhi Bharat Legal Intelligence Developer API and Hosted MCP Platform. - [Async Jobs & SSE Streams](/docs/guide/core-concepts/async-jobs) ([Markdown](/llms.mdx/guide/core-concepts/async-jobs.mdx)): Handling 202 Accepted responses for B2 (audit/order) and B4 (research/memo) with SSE keepalives and cancellation refunds. - [Claim Support vs. Later Court Treatment](/docs/guide/core-concepts/claim-support-vs-treatment) ([Markdown](/llms.mdx/guide/core-concepts/claim-support-vs-treatment.mdx)): Vidhi's strict legal-honesty contract separating proposition verification from subsequent appellate/citator standing. - [Errors & Rate Limits](/docs/guide/core-concepts/errors-and-rate-limits) ([Markdown](/llms.mdx/guide/core-concepts/errors-and-rate-limits.mdx)): Canonical 15-code ErrorEnvelope, 2-bucket Redis sliding-window rate limits, and response telemetry headers. - [Hybrid Search & Keyset Cursors](/docs/guide/core-concepts/hybrid-search) ([Markdown](/llms.mdx/guide/core-concepts/hybrid-search.mdx)): Qwen3-4B dense embeddings + PostgreSQL FTS fused via RRF, forum/statute filters, and three-state totals. - [Idempotency & Auto-Refunds](/docs/guide/core-concepts/idempotency-and-refunds) ([Markdown](/llms.mdx/guide/core-concepts/idempotency-and-refunds.mdx)): 24-hour Postgres Idempotency-Key replay window, 409 conflict rules, and Vidhi's 5 automatic credit refund guarantees. - [Pre-Extracted Legal Intelligence](/docs/guide/core-concepts/pre-extracted-intelligence) ([Markdown](/llms.mdx/guide/core-concepts/pre-extracted-intelligence.mdx)): Reuse pre-computed ratio_decidendi, key_findings, arguments_structured, and judgment_sections across 52,116 rulings. - [Statutes & Sanhita 2024 Cutoffs](/docs/guide/core-concepts/statutes-and-sanhita-2024) ([Markdown](/llms.mdx/guide/core-concepts/statutes-and-sanhita-2024.mdx)): Central Acts catalog, URL-safe section matching, pure-regex extraction, IPC/CrPC/IEA transitions, and Sanhita Shockwave. - [Bharat Data Coverage & Known Limits](/docs/guide/coverage-and-limits) ([Markdown](/llms.mdx/guide/coverage-and-limits.mdx)): Authoritative counts, supported courts and 12 tribunals, Central Acts catalog, and explicit Cohort 1 boundaries. - [Introduction](/docs/guide) ([Markdown](/llms.mdx/guide.mdx)): Unified Bharat legal intelligence REST API, Hosted Streamable HTTP MCP, CLI, and SDKs for Cohort 1. - [Privacy, Zero-PII Telemetry & Licensing](/docs/guide/privacy-and-licensing) ([Markdown](/llms.mdx/guide/privacy-and-licensing.mdx)): How Vidhi handles brief confidentiality, BSA s.132 privilege, POCSO/BNS compliance, takedowns, and Cohort 1 terms. - [5-Minute Quickstart](/docs/guide/quickstart) ([Markdown](/llms.mdx/guide/quickstart.mdx)): Inspect Bharat corpus coverage, run hybrid case search, and check live citator standing in under five minutes. - [SDKs & Go CLI](/docs/guide/sdks-and-cli) ([Markdown](/llms.mdx/guide/sdks-and-cli.mdx)): Official Python SDK (vidhi), standalone TypeScript SDK (@vidhi/sdk), and Go Cobra CLI (vidhi). ## Original Bharat Recipes - [5. Analyze a Legal Notice & Compute Statutory Deadlines](/docs/recipes/analyze-legal-notice) ([Markdown](/llms.mdx/recipes/analyze-legal-notice.mdx)): Extract quote-grounded facts, statutory limitation clocks, and procedural defects such as NI Act s.138(b) dispatch bars. - [4. Audit an Adverse Order & Generate Grounds of Appeal](/docs/recipes/audit-adverse-order) ([Markdown](/llms.mdx/recipes/audit-adverse-order.mdx)): Run B2 7-Station Judicial Reasoning Auditor (202 async + SSE) and optionally neutralize opposing citations with B3 Counter-Precedent. - [1. Ground an LLM Answer in Bharat Judgments & Statutes](/docs/recipes/ground-llm-bharat) ([Markdown](/llms.mdx/recipes/ground-llm-bharat.mdx)): Combine hybrid case search with pre-extracted ratio decidendi, statutory lookup, and citator standing checks. - [7 Original Bharat Recipes](/docs/recipes) ([Markdown](/llms.mdx/recipes.mdx)): End-to-end engineering blueprints combining Tier A corpus search, live citator checks, and Core Tier B SOTA engines. - [3. Search Full-Text Tribunal Orders (NCLT / ITAT / NCDRC / DRT / SAT)](/docs/recipes/search-tribunal-orders) ([Markdown](/llms.mdx/recipes/search-tribunal-orders.mdx)): Query Vidhi's 11,230 full-text embedded tribunal orders across 12 specialized Bharat tribunals and read sectioned bodies. - [7. Translate Legal Text into Hindi / Marathi](/docs/recipes/translate-legal-text) ([Markdown](/llms.mdx/recipes/translate-legal-text.mdx)): Translate Bharat legal prose into Hindi (hi-IN), Marathi (mr-IN), or any of the 22 Eighth Schedule languages via B8. - [6. Screen a Commercial Contract for Bharat Statutory Traps & Stamp Duty](/docs/recipes/triage-commercial-contract) ([Markdown](/llms.mdx/recipes/triage-commercial-contract.mdx)): Pre-redact sensitive PII with B7 Compliance Firewall and detect ICA s.27/28/74, Perkins Eastman s.12(5), and Stamp Act traps with B6. - [2. Verify Every Citation & Quote in a Brief + Good-Law Check](/docs/recipes/verify-brief-citations) ([Markdown](/llms.mdx/recipes/verify-brief-citations.mdx)): Run B1 brief verification to audit citations, verbatim quote alignment, later court treatment, and stale IPC/CrPC/IEA provisions. ## MCP & Agents - [Client Setup Guides](/docs/mcp/clients) ([Markdown](/llms.mdx/mcp/clients.mdx)): Copy-paste configuration for Claude Code, Cursor, VS Code, Windsurf, and Claude Desktop (stdio). - [Hosted Streamable HTTP MCP Overview](/docs/mcp) ([Markdown](/llms.mdx/mcp.mdx)): Connect coding and legal research agents to https://vidhi-mcp.shamik.app/mcp or local stdio vidhi-mcp. - [4 Resources & 6 Prompts](/docs/mcp/resources-and-prompts) ([Markdown](/llms.mdx/mcp/resources-and-prompts.mdx)): Read-only MCP resources and curated legal workflow prompts exposed by vidhi-mcp. - [20 Tools + search / fetch Aliases](/docs/mcp/tools) ([Markdown](/llms.mdx/mcp/tools.mdx)): Complete reference for Vidhi's 20 curated MCP tools and compatibility aliases with ToolAnnotations and credit costs. ## Bharat REST API Reference (36 Operations) - [GET /api/v1/in/coverage](/docs/api-reference/discovery/getBharatCoverage) ([Markdown](/llms.mdx/api-reference/discovery/getBharatCoverage.mdx)): Live Bharat corpus counts, tribunal forums, statute counts, and known limits (0 credits). - [GET /api/v1/in/courts](/docs/api-reference/discovery/listBharatCourts) ([Markdown](/llms.mdx/api-reference/discovery/listBharatCourts.mdx)): Canonical court and tribunal forum registry (0 credits). - [GET /api/v1/in/pricing](/docs/api-reference/discovery/getBharatPricing) ([Markdown](/llms.mdx/api-reference/discovery/getBharatPricing.mdx)): Machine-readable credit cost per endpoint and refund policy (public, 0 credits). - [GET /api/v1/in/account/usage](/docs/api-reference/account/getAccountUsage) ([Markdown](/llms.mdx/api-reference/account/getAccountUsage.mdx)): Key credit balance, rate-limit ceilings, and rolling 30-day usage summary (0 credits). - [GET /api/v1/in/jobs/{job_id}](/docs/api-reference/jobs/getAsyncJob) ([Markdown](/llms.mdx/api-reference/jobs/getAsyncJob.mdx)): Poll status and result of a 202 Accepted Tier B async job (0 credits). - [DELETE /api/v1/in/jobs/{job_id}](/docs/api-reference/jobs/cancelAsyncJob) ([Markdown](/llms.mdx/api-reference/jobs/cancelAsyncJob.mdx)): Cancel a queued or running async job and trigger atomic credit refund (0 credits). - [GET /api/v1/in/jobs/{job_id}/events](/docs/api-reference/jobs/streamAsyncJobEvents) ([Markdown](/llms.mdx/api-reference/jobs/streamAsyncJobEvents.mdx)): SSE progress stream for an async job with 15s keepalive comments (0 credits). - [POST /api/v1/in/cases/search](/docs/api-reference/cases/searchBharatCases) ([Markdown](/llms.mdx/api-reference/cases/searchBharatCases.mdx)): Hybrid semantic (Qwen3-4B) + full-text search across SC, HC, and 12 tribunals (2 credits). - [GET /api/v1/in/cases](/docs/api-reference/cases/listBharatCases) ([Markdown](/llms.mdx/api-reference/cases/listBharatCases.mdx)): Keyset-paginated browse of Bharat judgments and tribunal orders (1 credit). - [GET /api/v1/in/cases/{id}](/docs/api-reference/cases/getCaseDetail) ([Markdown](/llms.mdx/api-reference/cases/getCaseDetail.mdx)): Case metadata, aliases, citator summary, and data-quality flags (1 credit). - [GET /api/v1/in/cases/{id}/body](/docs/api-reference/cases/getCaseBody) ([Markdown](/llms.mdx/api-reference/cases/getCaseBody.mdx)): Full judgment text or structured sections; auto-refunds if text unavailable (3 credits). - [GET /api/v1/in/cases/{id}/intelligence](/docs/api-reference/cases/getCaseIntelligence) ([Markdown](/llms.mdx/api-reference/cases/getCaseIntelligence.mdx)): Pre-extracted ratio decidendi, key findings, and structured arguments (2 credits; 0 on 404). - [GET /api/v1/in/cases/{id}/pdf](/docs/api-reference/cases/streamCasePDF) ([Markdown](/llms.mdx/api-reference/cases/streamCasePDF.mdx)): Direct PDF byte stream supporting Range (206) and ETag (304) (1 credit). - [GET /api/v1/in/cases/{id}/similar](/docs/api-reference/cases/getSimilarCases) ([Markdown](/llms.mdx/api-reference/cases/getSimilarCases.mdx)): Semantically similar rulings via pgvector cosine similarity (2 credits). - [POST /api/v1/in/citations/resolve](/docs/api-reference/citations/resolveBharatCitations) ([Markdown](/llms.mdx/api-reference/citations/resolveBharatCitations.mdx)): Batch resolve up to 100 Bharat citations; unresolved/ambiguous items refunded (2 credits / resolved). - [GET /api/v1/in/cases/{id}/citator](/docs/api-reference/citations/getCaseCitator) ([Markdown](/llms.mdx/api-reference/citations/getCaseCitator.mdx)): Live citator standing, appellate posture, and PageRank (2 credits). - [GET /api/v1/in/cases/{id}/citations](/docs/api-reference/citations/getCaseCitations) ([Markdown](/llms.mdx/api-reference/citations/getCaseCitations.mdx)): Keyset-paginated outbound or inbound citation edges (1 credit / page). - [POST /api/v1/in/statutes/search](/docs/api-reference/statutes/searchBharatStatutes) ([Markdown](/llms.mdx/api-reference/statutes/searchBharatStatutes.mdx)): Search embedded Bharat statutes and sections (2 credits). - [GET /api/v1/in/statutes](/docs/api-reference/statutes/listBharatStatutes) ([Markdown](/llms.mdx/api-reference/statutes/listBharatStatutes.mdx)): Browse Central Acts in the Bharat corpus (1 credit). - [GET /api/v1/in/statutes/{act_code}](/docs/api-reference/statutes/getStatuteAct) ([Markdown](/llms.mdx/api-reference/statutes/getStatuteAct.mdx)): Act metadata and section index from Corpus ActsStore (1 credit). - [GET /api/v1/in/statutes/{act_code}/sections/{section}](/docs/api-reference/statutes/getStatuteSection) ([Markdown](/llms.mdx/api-reference/statutes/getStatuteSection.mdx)): Full text of a specific section with optional citing cases and Sanhita transition (2 credits). - [POST /api/v1/in/statutes/extract](/docs/api-reference/statutes/extractStatuteReferences) ([Markdown](/llms.mdx/api-reference/statutes/extractStatuteReferences.mdx)): Pure-regex zero-LLM extractor of Bharat Act and Section references from text (1 credit). - [GET /api/v1/in/statutes/transitions](/docs/api-reference/statutes/resolveStatuteTransition) ([Markdown](/llms.mdx/api-reference/statutes/resolveStatuteTransition.mdx)): Map IPC/CrPC/IEA ↔ BNS/BNSS/BSA provision transition (1 credit). - [POST /api/v1/in/statutes/transitions/scan](/docs/api-reference/statutes/scanStatuteTransitions) ([Markdown](/llms.mdx/api-reference/statutes/scanStatuteTransitions.mdx)): Stateless scan of pasted text for stale IPC/CrPC/IEA citations with 01.07.2024 cutoff awareness (3 credits). - [GET /api/v1/in/statutes/sanhita-shockwave](/docs/api-reference/statutes/getSanhitaShockwave) ([Markdown](/llms.mdx/api-reference/statutes/getSanhitaShockwave.mdx)): Live SQL SC/HC precedent blast-radius tree affected by 2023 BNS/BNSS/BSA deltas (2 credits). - [GET /api/v1/in/regulatory/sources](/docs/api-reference/regulatory/listRegulatorySources) ([Markdown](/llms.mdx/api-reference/regulatory/listRegulatorySources.mdx)): Tracked Bharat regulatory feed sources and item counts (0 credits). - [GET /api/v1/in/regulatory/documents](/docs/api-reference/regulatory/listRegulatoryDocuments) ([Markdown](/llms.mdx/api-reference/regulatory/listRegulatoryDocuments.mdx)): Paginated regulatory feed items (1 credit). - [POST /api/v1/in/verify/brief](/docs/api-reference/tierb/verifyBriefCitations) ([Markdown](/llms.mdx/api-reference/tierb/verifyBriefCitations.mdx)): B1 — Verify citations, verbatim quotes, holding alignment, and later court treatment in a brief (10 credits; scope ai:run). - [POST /api/v1/in/audit/order](/docs/api-reference/tierb/auditAdverseOrder) ([Markdown](/llms.mdx/api-reference/tierb/auditAdverseOrder.mdx)): B2 — 7-Station Judicial Reasoning Auditor (25 credits, 202 async; scope ai:run). - [POST /api/v1/in/audit/counter-precedent](/docs/api-reference/tierb/counterPrecedent) ([Markdown](/llms.mdx/api-reference/tierb/counterPrecedent.mdx)): B3 — Counter-Precedent Breaker for an opponent's cited authority (15 credits; scope ai:run). - [POST /api/v1/in/research/memo](/docs/api-reference/tierb/generateResearchMemo) ([Markdown](/llms.mdx/api-reference/tierb/generateResearchMemo.mdx)): B4 — Grounded Bharat Legal Research Memo (30 credits, 202 async; scope ai:run). - [POST /api/v1/in/notices/analyze](/docs/api-reference/tierb/analyzeLegalNotice) ([Markdown](/llms.mdx/api-reference/tierb/analyzeLegalNotice.mdx)): B5 — Quote-grounded Bharat Legal Notice Analyzer with limitation clock and defect radar (10 credits; scope ai:run). - [POST /api/v1/in/contracts/triage](/docs/api-reference/tierb/triageBharatContract) ([Markdown](/llms.mdx/api-reference/tierb/triageBharatContract.mdx)): B6 — Bharat commercial contract trap detector, Stamp/Registration box, and optional stress test (15 credits; scope ai:run). - [POST /api/v1/in/compliance/redact-firewall](/docs/api-reference/tierb/runComplianceFirewall) ([Markdown](/llms.mdx/api-reference/tierb/runComplianceFirewall.mdx)): B7 — 2-stage POCSO s.23 / s.72 BNS / PII / BSA s.132 privilege compliance firewall (5 credits; scope ai:run). - [GET /api/v1/in/translation/languages](/docs/api-reference/translation/listTranslationLanguages) ([Markdown](/llms.mdx/api-reference/translation/listTranslationLanguages.mdx)): B8 — Supported Eighth Schedule Bharat languages for legal text translation (0 credits). - [POST /api/v1/in/translation/text](/docs/api-reference/translation/translateLegalText) ([Markdown](/llms.mdx/api-reference/translation/translateLegalText.mdx)): B8 — Sync legal text translation across 22 Eighth Schedule languages + English (2 credits / 2,000 chars; scope translate:write). ## Full Export - [Complete Documentation (/llms-full.txt)](/llms-full.txt)