The Regulation Wiki Object
Regulation wiki objects represent MidLyr’s synthesized compliance playbooks — one per compliance activity (e.g. sar-filing, ctr-filing). Each wiki distills requirements from multiple authoritative sources into a single cross-authority synthesis with inline citations back to the underlying regulations.
Two shapes are returned depending on the endpoint:
- WikiSummary — returned by List Regulation Wikis
- Wiki — returned by Get Regulation Wiki
WikiSummary Object
Section titled “WikiSummary Object”{ "slug": "sar-filing", "title": "Suspicious Activity Report (SAR) Filing", "domain": "bsa-aml-sanctions", "description": "Requirements for detecting and filing Suspicious Activity Reports under the Bank Secrecy Act, covering thresholds, timelines, completion standards, and safe-harbor protections.", "sourceCount": 7, "updatedAt": "2026-04-15T00:00:00Z"}Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
slug | string | Stable slug identifying the compliance activity. URL-safe, lowercase, hyphenated. Never reused. |
title | string | Human-readable activity name |
domain | string | Kebab-case compliance domain slug from the wiki catalog (e.g. bsa-aml-sanctions, consumer-credit). |
description | string | Plain-language summary of what the wiki covers |
sourceCount | integer | Number of underlying regulation documents synthesized into this wiki |
updatedAt | string | ISO 8601 UTC timestamp of when MidLyr last regenerated this wiki |
Wiki Object
Section titled “Wiki Object”The full wiki object is a superset of WikiSummary. It adds sources and body.
{ "slug": "sar-filing", "title": "Suspicious Activity Report (SAR) Filing", "domain": "bsa-aml-sanctions", "description": "Requirements for detecting and filing Suspicious Activity Reports under the Bank Secrecy Act, covering thresholds, timelines, completion standards, and safe-harbor protections.", "sources": [ "31-cfr-1020-320", "31-cfr-1010-320", "ffiec-bsa-aml-exam-manual-sar", "fincen-sar-instructions-2023", "31-cfr-1020-210", "us-code-31-5318", "fincen-sar-safe-harbor-guidance" ], "body": "# Suspicious Activity Report (SAR) Filing\n\n## Authority Chain\n\n**Statute**: 31 U.S.C. § 5318(g) (Bank Secrecy Act) ...", "updatedAt": "2026-04-15T00:00:00Z"}Fields
Section titled “Fields”All WikiSummary fields, plus:
| Field | Type | Description |
|---|---|---|
sources | string[] | Ordered list of externalId slugs for the regulations synthesized into this wiki. Each slug resolves to a full regulation document via Get Regulation Details using the externalId lookup path. |
body | string | Markdown playbook synthesized in canonical “Authority Chain” format. Sections flow Statute → Regulation → Examination Handbook, with inline citations. |
The sources Array
Section titled “The sources Array”Each entry in sources[] is an externalId slug. Resolve any entry to a full regulation document:
curl "https://api.midlyr.com/api/v1/regulations/31-cfr-1020-320" \ -H "x-api-key: $MIDLYR_API_KEY"Sources are ordered from most authoritative (statute) to most operational (examination guidance). The ordering mirrors the Authority Chain structure of body.
Body Format
Section titled “Body Format”body is a UTF-8 markdown string. It follows the Authority Chain structure:
- Statute — the enabling law with U.S. Code citation
- Regulation — CFR sections implementing the statute
- Examination Handbook — agency examination guidance operationalizing the regulation
Inline citations appear as [Source: <externalId>] anchors throughout the text. Section headings use standard ATX markdown (##, ###).