# 2. Verify Every Citation & Quote in a Brief + Good-Law Check
> Run B1 brief verification to audit citations, verbatim quote alignment, later court treatment, and stale IPC/CrPC/IEA provisions.
Source URL: /docs/recipes/verify-brief-citations

**Problem:** Before filing a pleading or relying on an LLM-generated draft, verify every legal citation, check whether quoted propositions align with the judgment text, check whether the ruling remains good law, and flag pre-July 2024 IPC/CrPC/IEA provisions.

| Step | Endpoint | Scope | Credits |
|---|---|---|---|
| Brief verification (`B1`) | `POST /api/v1/in/verify/brief` | `ai:run` | 10 (up to 50 citations) |
| Optional batch citation resolver | `POST /api/v1/in/citations/resolve` | `corpus:read` | 2 per resolved item (unresolved refunded) |

<LegalBoundaryNote title="Separated Verification Dimensions" tone="info">
<code>verify/brief</code> returns <code>claim_support</code> and <code>later_court_treatment</code> as sibling objects inside each finding. Never merge them into a single status badge.
</LegalBoundaryNote>

## Implementation [#implementation]

<Tabs items={["cURL","Python (vidhi)","TypeScript (@vidhi/sdk)","Go CLI (vidhi)"]}>
<Tab value="cURL">
```bash
curl -sS -X POST https://api.vidhi.shamik.app/api/v1/in/verify/brief \
  -H "Authorization: Bearer $VIDHI_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "text": "In Kesavananda Bharati (1973) 4 SCC 225, the Supreme Court held that Parliament cannot alter the basic structure of the Constitution. The FIR also invokes Section 420 IPC.",
    "check_holding_alignment": true
  }'
```
</Tab>

<Tab value="Python (vidhi)">
```python
from vidhi import Vidhi

client = Vidhi()
report = client.verify.brief(
    text=(
        "In Kesavananda Bharati (1973) 4 SCC 225, the Supreme Court held that "
        "Parliament cannot alter the basic structure of the Constitution. "
        "The FIR also invokes Section 420 IPC."
    ),
    check_holding_alignment=True,
)
for finding in report.findings:
    print(
        finding.input,
        "claim:", finding.claim_support.status,
        "treatment:", finding.later_court_treatment.status,
    )
for flag in report.statute_transitions:
    print(f"Stale statute: {flag.old_act} {flag.old_section} -> {flag.new_act} {flag.new_section}")
```
</Tab>

<Tab value="TypeScript (@vidhi/sdk)">
```ts
import { VidhiClient } from "@vidhi/sdk";

const client = new VidhiClient({ apiKey: process.env.VIDHI_API_KEY! });
const report = await client.verify.brief({
  text:
    "In Kesavananda Bharati (1973) 4 SCC 225, the Supreme Court held that Parliament cannot alter the basic structure of the Constitution. The FIR also invokes Section 420 IPC.",
  check_holding_alignment: true,
});

for (const finding of report.findings) {
  console.log(finding.input, finding.claim_support.status, finding.later_court_treatment.status);
}
console.log(report.statute_transitions);
```
</Tab>

<Tab value="Go CLI (vidhi)">
```bash
vidhi verify --file brief.txt --json
```
</Tab>
</Tabs>

## Verified Response Excerpt [#verified-response-excerpt]

```json
{
  "citations_checked": 1,
  "findings": [
    {
      "input": "(1973) 4 SCC 225",
      "resolution_status": "resolved",
      "case_id": "122965",
      "title": "Kesavananda Bharati Sripadagalvaru v. State of Kerala",
      "claim_support": {
        "status": "supported",
        "matched_passage": "Article 368 does not enable Parliament to alter the basic structure or framework of the Constitution.",
        "quote_alignment_score": 0.93
      },
      "later_court_treatment": {
        "status": "good_law_observed",
        "basis_case_ids": ["134810", "198204"],
        "as_of_date": "2026-11-15"
      }
    }
  ],
  "statute_transitions": [
    {
      "transition_id": "ipc-420-bns-318-4",
      "raw_text": "Section 420 IPC",
      "start": 135,
      "end": 150,
      "old_act": "IPC",
      "old_section": "420",
      "new_act": "BNS",
      "new_section": "318(4)",
      "mapping_state": "db_verified",
      "advisory": "Verify offence date against 01.07.2024 saving clause; BNS s.318(4) applies to post-cutoff offences."
    }
  ]
}
```