---
title: "Precedent Corpus"
method: GET
path: "/api/v1/cd-planner/precedent-corpus"
tags: ["cd-planner"]
---

# Precedent Corpus

`GET /api/v1/cd-planner/precedent-corpus`

## Request

- Base URL: `https://api.casaintelligence.com.au` (the document declares no server; this is the origin it was published from)
- URL: `https://api.casaintelligence.com.au/api/v1/cd-planner/precedent-corpus`
- Auth: API key in header `X-API-Key`

Deep-mined comparable-approval corpus.

For each top-N comparable approval, returns the full evidence pack:
- assessment_reasoning: PO/AO verdicts, departures accepted, citations
- application_proposal: lot/dwelling/GFA/height/parking dimensions
- specialist_fingerprints: stormwater, traffic, ecological, bushfire,
  flood, noise — whichever extracted_data keys exist on the DA's docs
- submission_themes: aggregated public objection patterns
- referral_responses: state-agency concurrence + conditions

Used by Casa Daily artefact-actions.ts when drafting SoEEs / pre-DA
letters / RFI responses to cite real precedent at draft time.

Performance note: this is a JOIN-heavy query that pulls
extracted_data jsonb. We cap N at 20 and limit per-DA doc fetches via
DISTINCT ON to keep it under 500ms warm.

## Query parameters

- `property_id` string, required
- `dev_type` string, required
- `limit` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/casaintelligence/apis/casa-intelligence-engine.md) · [All operations](https://skmtc.dev/casaintelligence/apis/casa-intelligence-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/casaintelligence/apis/casa-intelligence-engine/revisions/71d711039de0?raw)
