RTFCTREGULATION REGISTRY

UNAUTHENTICATED · RATE-LIMITED · JSON

PUBLIC READ API

Base URL https://api.regulation-registry.com

METHODPATHRETURNS
GET/v1/healthLiveness and coverage: jurisdiction count, tier distribution, zero-record defects, last run and publication per source adapter.
GET/v1/jurisdictionsPaginated 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/rulesSupersession-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}/lineageThe 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}/sourceThe authoritative source-language clause bytes. x-content-sha256 equals the anchor digest.
GET/v1/cite/{anchor}/translationReference machine translation, where one exists. Never authoritative.

BEARER TOKEN · SOVEREIGNTY SCOPE

CONSUMER API

METHODPATHPURPOSE
POST/v1/checkPre-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/subscribeRegister 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

CODEHTTPMEANING
invalid_context400Malformed request, unknown jurisdiction or domain, bad date.
unauthenticated401Missing or unrecognised token on a restricted route.
scope_violation403Requested sovereignty scope exceeds the token's scope.
unknown_rule404No record has this rule id or anchor.
stale_client_version426x-registry-client reports a version below the supported minimum.
rate_limited429Public 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.