Skip to main content
Developer API

Build on Lekha's open legal data

A free, keyed, rate-limited API over Lekha's public data: the template catalogue with published Trust Scores, and metadata search across the open Indian Supreme Court & High Court judgment index. Honest scope — metadata, not full judgment text; educational, not legal advice.

Your API keys

Authenticate with Authorization: Bearer <key>. Keys are shown once at creation and stored only as a hash — if you lose one, revoke it and create another. Free tier: 120 requests/minute per key.

Loading…

Endpoints

GET/api/v1/templates

The template catalogue with each template's published Trust Score. Filter with ?category= and ?limit=.

curl -H "Authorization: Bearer lk_live_…" \
  https://lekha.elevana.guru/api/v1/templates?category=hr&limit=5
GET/api/v1/judgments

Metadata search over the open judgment index. ?q= (required), ?year=, ?court=SC|HC. Returns parties (derived from the archive listing), neutral citation, CNR, case number, decision date and the official PDF link.

curl -H "Authorization: Bearer lk_live_…" \
  "https://lekha.elevana.guru/api/v1/judgments?q=directorate+of+enforcement&court=SC"

Scope & honesty

Judgment data comes from the official open archives (CC-BY-4.0) and is indexed, never re-hosted — results link to the source PDF. Party names are derived from the archive's own listing and should be verified at the source. Trust Scores measure how well-sourced content is, not whether it is legally correct. This API returns educational information, not legal advice.