Skip to content

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:

{
"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"
}
FieldTypeDescription
slugstringStable slug identifying the compliance activity. URL-safe, lowercase, hyphenated. Never reused.
titlestringHuman-readable activity name
domainstringKebab-case compliance domain slug from the wiki catalog (e.g. bsa-aml-sanctions, consumer-credit).
descriptionstringPlain-language summary of what the wiki covers
sourceCountintegerNumber of underlying regulation documents synthesized into this wiki
updatedAtstringISO 8601 UTC timestamp of when MidLyr last regenerated this wiki

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"
}

All WikiSummary fields, plus:

FieldTypeDescription
sourcesstring[]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.
bodystringMarkdown playbook synthesized in canonical “Authority Chain” format. Sections flow Statute → Regulation → Examination Handbook, with inline citations.

Each entry in sources[] is an externalId slug. Resolve any entry to a full regulation document:

Terminal window
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 is a UTF-8 markdown string. It follows the Authority Chain structure:

  1. Statute — the enabling law with U.S. Code citation
  2. Regulation — CFR sections implementing the statute
  3. Examination Handbook — agency examination guidance operationalizing the regulation

Inline citations appear as [Source: <externalId>] anchors throughout the text. Section headings use standard ATX markdown (##, ###).