> ## Documentation Index
> Fetch the complete documentation index at: https://docs.localcode.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve ordinance lineage

# Retrieve Ordinance Lineage

Use this guide when you need the ordinance context around a section-level legal change.

## Step 1: Start with section lineage

```bash theme={null}
curl "https://api.localcode.ai/v1/code-sections/{code_section_id}/legislative-chain" \
  -H "Authorization: Bearer {LOCALCODE_API_KEY}"
```

## Step 2: Resolve ordinances

For each linked ordinance node, call:

```bash theme={null}
curl "https://api.localcode.ai/v1/ordinances/{ordinance_id}" \
  -H "Authorization: Bearer {LOCALCODE_API_KEY}"
```

## Step 3: Interpret provenance fields

When reading chain edges, treat:

* `source_verification_status` as legal/source trust state
* `analysis_confidence` as extraction or matching confidence
