UNAUTHENTICATED · RATE-LIMITED · JSON
PUBLIC READ API
Base URL https://regulation-registry-api.rtfct.workers.dev
| METHOD | PATH | RETURNS |
|---|---|---|
| GET | /v1/health | Liveness and coverage: jurisdiction count, tier distribution, zero-record defects, last run and publication per source adapter. |
| GET | /v1/jurisdictions | Paginated hierarchy. Filters: parent (an id or root), level. limit up to 500, cursor. |
| GET | /v1/jurisdictions/{id} | One jurisdiction with its parent, children and memberships. |
| GET | /v1/rules | Supersession-aware records. Filters: jurisdiction (includes inherited records), domain, date (YYYY-MM-DD, in force on that date), q (full text). An unknown jurisdiction is a 400 invalid_context, never a 404. |
| GET | /v1/rules/{rule_id} | One record. |
| GET | /v1/rules/{rule_id}/lineage | The full supersession chain, oldest first, with the current record id. |
| GET | /v1/cite/{anchor} | Resolve a fyn-cite anchor to its record, statutory origin, digest and supersession status. |
| GET | /v1/cite/{anchor}/source | The authoritative source-language clause bytes. x-content-sha256 equals the anchor digest. |
| GET | /v1/cite/{anchor}/translation | Reference machine translation, where one exists. Never authoritative. |
BEARER TOKEN · SOVEREIGNTY SCOPE
CONSUMER API
| METHOD | PATH | PURPOSE |
|---|---|---|
| POST | /v1/check | Pre-flight verdict for text and context: pass, flag or block, with applicable records per jurisdiction and an audit reference. Requires a read token. |
| POST | /v1/subscribe | Register a signed webhook filtered by jurisdiction, domain and evidence grade. Payloads carry rule ids and dates, never rule content. |
POST /v1/check
authorization: Bearer <read token>
x-registry-client: my-app/1.4.0
{ "context": { "jurisdictions": ["US-CO"], "domains": ["ai", "insurance"],
"date": "2026-07-01", "scope": "ecosystem" },
"content": { "text": "…output to be checked…" } }
-> { "verdict": "flag", "as_of": "2026-07-01", "audit_ref": "aud-…",
"jurisdictions": [{ "jurisdiction_id": "US-CO", "verdict": "flag",
"applicable_rules": [{ "rule_id": "MRA-US-CO-AI-2024-002",
"citation_anchor": "fyn-cite:v1:US-CO:…", "effective_date": "2026-06-30",
"obligation": "…", "superseded_by": null }], "findings": […] }] }UNIFORM SHAPE: { ERROR, MESSAGE }
ERRORS
| CODE | HTTP | MEANING |
|---|---|---|
| invalid_context | 400 | Malformed request, unknown jurisdiction or domain, bad date. |
| unauthenticated | 401 | Missing or unrecognised token on a restricted route. |
| scope_violation | 403 | Requested sovereignty scope exceeds the token's scope. |
| unknown_rule | 404 | No record has this rule id or anchor. |
| stale_client_version | 426 | x-registry-client reports a version below the supported minimum. |
| rate_limited | 429 | Public read limit reached; retry after the indicated delay. |
FYN-CITE:V1
CITATION ANCHORS
An anchor is fyn-cite:v1:<jurisdiction>:<sha256>, where the digest is the SHA-256 of the source-language clause text served at /v1/cite/{anchor}/source.
Anchors never change. When a source changes, the new clause text has a new digest and a new record; the old record is marked superseded and points to its successor.