The Civic Decision Engine exposes a public read API for accessing verified civic records. These endpoints allow journalists, researchers, advocacy organisations, and automated systems to retrieve, verify, and archive structured civic evidence programmatically.
All endpoints return JSON. All records exposed through this API are the same records accessible via the public verification pages — this is not a separate dataset.
No authentication is required for read operations. These records are intentionally public — they are generated and published by consent at the point of export. Write operations (record creation, superseding) are not exposed through this API.
Every public record carries a structured reference that encodes its origin. The format is:
References are case-sensitive. Institution type codes are always two uppercase letters. Sequence numbers are zero-padded to three digits. The same reference may have multiple versions — the API always returns the latest unless version history is requested via ?full=true.
Returns the latest version of a public record by its structured reference. The minimal response includes the fields necessary to verify, cite, and archive the record.
| Parameter | Type | Description |
|---|---|---|
| reference | path | Structured reference identifier, e.g. Strike-LA-20260508-001 |
| full | query | Optional. Pass ?full=true to include complete metadata and version history. |
Minimal response (default):
Full response (?full=true) additionally includes:
Returns a summary of the public record archive — total records, superseded versions, and distributions by institution type, trajectory, and condition. Statistics reflect only the latest version of each record.
Returns a paginated list of the latest version of all public records, most recent first. Supports filtering by trajectory and institution type.
| Parameter | Type | Description |
|---|---|---|
| trajectory | query | Filter by trajectory value, e.g. Deteriorating |
| institution | query | Filter by institution type code, e.g. LA, HS, ED |
| limit | query | Maximum records to return. Default 50, maximum 200. |
| offset | query | Pagination offset. Default 0. |
| full | query | Pass ?full=true to include finding, language, and supersedes per record. |
Returns the canonical condition registry — the civic observation taxonomy used to classify case sequences. Each entry includes the condition name, internal code, formal description, and detection indicators.
Returns a downloadable JSON manifest for a public record. The manifest contains all canonical fields, the verification hash, and a recomputation instruction that allows independent offline verification of record integrity.
All responses are application/json. All timestamps are ISO 8601. Conditions are returned as human-readable label arrays.
| 200 | OK — record found and returned successfully. |
| 404 | Not Found — no record exists for the given reference. Returns a structured error body. |
| 422 | Unprocessable — query parameters are malformed or out of range. |
404 error body:
All endpoints return the latest version of each record by default. When a record is superseded, the previous version is preserved and remains accessible via ?full=true. The version field indicates which version is currently returned. The supersedes field identifies the prior version reference when applicable.
Published record versions remain preserved once exported. Corrections or amendments result in a new version, with all prior versions retained in the version history.
API version: v1 — stable. No breaking changes will be made without a version increment.
| Code | Institution type | |
|---|---|---|
| LA | Local Authority | |
| HS | Health Service | |
| ED | Education | |
| HO | Housing | |
| PL | Planning | |
| GV | Government | |
| FS | Financial Services | |
| LE | Law Enforcement | |
| LG | Legal | |
| OT | Other |
Records accessible through this API are structured evidentiary documents generated by the Civic Decision Engine at the time of export. Published record versions remain preserved once exported. Corrections or amendments result in a new version, with the original preserved in the version history.
These records are designed for use in civic, administrative, and formal complaint proceedings. They are not legal advice and do not constitute official determinations by any public body. They are observation instruments — structured accounts of institutional behaviour as experienced and recorded by the person submitting the case.