5-Minute Quickstart
Inspect Bharat corpus coverage, run hybrid case search, and check live citator standing in under five minutes.
Export your Cohort 1 Bearer API key (vdh_live_<32_hex> or vdh_test_<32_hex>). Never pass X-Firm-ID — tenant identity is resolved exclusively on the server via SHA-256 hash lookup.
export VIDHI_API_KEY="vdh_live_0123456789abcdef0123456789abcdef"Step 1 — Check Live Coverage (0 Credits)
curl -sS https://api.vidhi.shamik.app/api/v1/in/coverage \
-H "Authorization: Bearer $VIDHI_API_KEY"Step 2 — Run Hybrid Case Search (2 Credits)
Search combines Qwen3-4B (2560d) dense embeddings with PostgreSQL full-text search via Reciprocal Rank Fusion (RRF). Set include_intelligence: true to receive pre-extracted ratio_decidendi and key_findings inline.
curl -sS -X POST https://api.vidhi.shamik.app/api/v1/in/cases/search \
-H "Authorization: Bearer $VIDHI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "Section 138 Negotiable Instruments Act legally enforceable debt",
"forum_type": "supreme_court",
"include_intelligence": true,
"limit": 5
}'Step 3 — Check Later Court Treatment (2 Credits)
Always check citator standing before relying on a precedent returned by search:
curl -sS https://api.vidhi.shamik.app/api/v1/in/cases/122965/citator \
-H "Authorization: Bearer $VIDHI_API_KEY"Local Worktree Testing
When testing locally against a dev:wt <slot> stack (for example slot 1 at http://localhost:8081), point VIDHI_API_BASE to http://localhost:8081 and authenticate with a provisioned vdh_test_ key.