List mapping rules
layerz_list_mappingsList the import classification rules in scope for a model. Each mapping set is labeled with a scope: model (this model's own rules), system_template (the curated country catalogs — PCG, US GAAP, UK, SKR03/04), or user_template (your reusable catalogs). A model classifies ONLY with its own model rules — catalogs and templates apply by being imported (see layerz_import_mapping_template), never implicitly (a pre-cutover account source may still classify through the legacy PCG overlay until its next sync materializes those rules into the model set). A pattern is a case-insensitive GLOB where * matches anywhere: 641* (prefix), *PERPLEXITY* (contains), *641 (suffix), or exact 601000 (no *). The default result == what the importer actually applies; pass include_user_mappings: true to ALSO surface your account-wide catalogs for discovery. Pass include_coverage: true to add, per rule, the count of staged transactions it matches (match_count) plus a coverage block (auto-created count + the top unrouted keys) — the actionable input for writing rules. templates lists the catalogs you can fork. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | No | Target model UUID. Required for user-scoped API keys; ignored (or validated against scope) for model-scoped keys. | |
| include_coverage | No | Also compute, per rule, `match_count` (staged rows it captures) and a `coverage` block (auto-created count + top unrouted keys). Off by default — it classifies every source, so it is a heavier read. | |
| include_user_mappings | No | Also surface your account-wide (model-independent) user catalogs in `sets`/`mappings` for discovery. Default false: only what this model actually classifies with (system + this-model rules). |