Skip to Content
Developers
API ReferenceTierb

B1 — Verify citations, verbatim quotes, holding alignment, and later court treatment in a brief (10 credits; scope ai:run).

POST
/api/v1/in/verify/brief

Authorization

BearerAuth
headerAuthorizationBearer <vdh_live_<32_hex> | vdh_test_<32_hex>>

Header Parameters

Idempotency-Key?string

UUIDv4 idempotency token (24h replay window in Postgres).

Formatuuid

Request Body

application/json
  1. body
text*string
Length1 <= length <= 250000
check_holding_alignment?boolean
Defaulttrue

Response Body

Brief verification report with separate claim_support, later_court_treatment, and stale IPC/CrPC/IEA statute_transitions

application/json
  1. response
citations_checked*integer
findings*array<>
statute_transitions?array<>

Stale IPC/CrPC/IEA references flagged with BNS/BNSS/BSA mappings and 1 July 2024 cutoff advisories.

Example Request
curl -X POST 'https://api.vidhi.shamik.app/api/v1/in/verify/brief' \  -H 'Content-Type: application/json' \  -d '{  "text": "string"}'
Example Response
{  "citations_checked": 0,  "findings": [    {      "input": "string",      "resolution_status": "resolved",      "case_id": "string",      "title": "string",      "claim_support": {        "status": "supported",        "matched_passage": "string",        "quote_alignment_score": 0      },      "later_court_treatment": {        "status": "good_law_observed",        "basis_case_ids": [          "string"        ],        "as_of_date": "2019-08-24"      }    }  ],  "statute_transitions": [    {      "transition_id": "string",      "raw_text": "string",      "start": 0,      "end": 0,      "old_act": "string",      "old_section": "string",      "new_act": "string",      "new_section": "string",      "notes": "string",      "authority": "string",      "mapping_state": "db_verified",      "advisory": "string"    }  ]}