[{"data":1,"prerenderedAt":1033},["ShallowReactive",2],{"docs-\u002Fapi\u002Frules\u002F":3},{"id":4,"title":5,"body":6,"breadcrumb":985,"coderail":992,"dateModified":1019,"datePublished":1019,"description":1020,"extension":1021,"meta":1022,"navigation":1023,"next":1024,"path":1025,"prev":1026,"schemaType":1028,"seo":1029,"stem":1030,"wide":1031,"__hash__":1032},"docs\u002Fapi\u002Frules.md","GET \u002Frules",{"type":7,"value":8,"toc":973},"minimark",[9,16,55,58,61,66,75,80,85,138,142,303,310,314,336,709,713,755,762,766,776,909,913,916,919,927,930,941,945,969],[10,11,12],"p",{},[13,14,15],"strong",{},"Summary",[17,18,19,29,35,43,49],"ul",{},[20,21,22,25,26],"li",{},[13,23,24],{},"endpoint"," — ",[27,28,5],"code",{},[20,30,31,34],{},[13,32,33],{},"purpose"," — browse the full rule catalog, optionally filtered by category, tier, or status",[20,36,37,25,40],{},[13,38,39],{},"mcp equivalent",[27,41,42],{},"list_rules",[20,44,45,48],{},[13,46,47],{},"rate limit"," — 1000\u002Fday per user",[20,50,51,54],{},[13,52,53],{},"synchronous"," — yes (database read, no fetch or scan)",[10,56,57],{},"Returns the TagManifest rule catalog as an array of rules. Results are sorted by category, then by rule ID. No container is required: this reads the catalog and audits nothing.",[10,59,60],{},"The catalog has 92 shipped rules. With no filters the endpoint returns all of them.",[62,63],"endpoint-bar",{"method":64,"path":65},"GET","\u002Fv1\u002Frules",[67,68,69],"blockquote",{},[10,70,71,74],{},[13,72,73],{},"No scan."," This endpoint reads from the rule registry. It fetches no container and runs no rules.",[76,77,79],"h2",{"id":78},"request","Request",[81,82,84],"h3",{"id":83},"headers","Headers",[86,87,88,104],"table",{},[89,90,91],"thead",{},[92,93,94,98,101],"tr",{},[95,96,97],"th",{},"Header",[95,99,100],{},"Required",[95,102,103],{},"Value",[105,106,107],"tbody",{},[92,108,109,115,118],{},[110,111,112],"td",{},[27,113,114],{},"Authorization",[110,116,117],{},"yes",[110,119,120,123,124,127,128,131,132,137],{},[27,121,122],{},"Bearer \u003Ctoken>",". An API key, or an MCP access token with the ",[27,125,126],{},"mcp:read"," or ",[27,129,130],{},"mcp:tools"," scope. See ",[133,134,136],"a",{"href":135},"\u002Fauth\u002F","Authentication",".",[81,139,141],{"id":140},"query-parameters","Query parameters",[86,143,144,162],{},[89,145,146],{},[92,147,148,151,154,156,159],{},[95,149,150],{},"Param",[95,152,153],{},"Type",[95,155,100],{},[95,157,158],{},"Default",[95,160,161],{},"Description",[105,163,164,214,243,279],{},[92,165,166,171,174,177,180],{},[110,167,168],{},[27,169,170],{},"category",[110,172,173],{},"string",[110,175,176],{},"optional",[110,178,179],{},"—",[110,181,182,183,186,187,186,190,186,193,186,196,186,199,186,202,186,205,186,208,127,211,137],{},"Restrict results to one category: ",[27,184,185],{},"consent",", ",[27,188,189],{},"ga4",[27,191,192],{},"ads",[27,194,195],{},"ecommerce",[27,197,198],{},"security",[27,200,201],{},"pii",[27,203,204],{},"performance",[27,206,207],{},"quality",[27,209,210],{},"organization",[27,212,213],{},"dead-code",[92,215,216,221,223,225,227],{},[110,217,218],{},[27,219,220],{},"tier",[110,222,173],{},[110,224,176],{},[110,226,179],{},[110,228,229,230,186,233,186,236,239,240,137],{},"Restrict results to one tier: ",[27,231,232],{},"error",[27,234,235],{},"warning",[27,237,238],{},"optimization",", or ",[27,241,242],{},"info",[92,244,245,250,252,254,259],{},[110,246,247],{},[27,248,249],{},"status",[110,251,173],{},[110,253,176],{},[110,255,256],{},[27,257,258],{},"shipped",[110,260,261,186,263,127,266,269,270,272,273,275,276,278],{},[27,262,258],{},[27,264,265],{},"deferred",[27,267,268],{},"all",". ",[27,271,258],{}," rules are the ones that produce findings. Two rules are listed with status ",[27,274,265],{},"; they produce no findings today. ",[27,277,268],{}," returns every rule whatever its status.",[92,280,281,286,289,291,296],{},[110,282,283],{},[27,284,285],{},"limit",[110,287,288],{},"number",[110,290,176],{},[110,292,293],{},[27,294,295],{},"200",[110,297,298,299,302],{},"Maximum rules to return. Must be 0 or more. ",[27,300,301],{},"0"," means the default of 200. Values over 500 are cut to 500. A fraction is rounded down.",[10,304,305,306,309],{},"These four are the only query parameters. Any other, such as ",[27,307,308],{},"layer",", is refused with a 400.",[76,311,313],{"id":312},"response","Response",[10,315,316,317,320,321,324,325,327,328,330,331,335],{},"Returns an object with a ",[27,318,319],{},"total"," count and a ",[27,322,323],{},"rules"," array. ",[27,326,319],{}," is the number of rules in this response, after the filters and the ",[27,329,285],{},". Each entry has the same 14 fields as ",[133,332,334],{"href":333},"\u002Fapi\u002Frules-detail\u002F#response","GET \u002Frules-detail","; that page describes each one.",[337,338,340,346,608],"details",{"summary":339},"Full response shape",[10,341,342,343,345],{},"The example holds one rule, so ",[27,344,319],{}," is 1. A call with no filters returns 92.",[347,348,353],"pre",{"className":349,"code":350,"language":351,"meta":352,"style":352},"language-json shiki shiki-themes github-light github-dark","{\n  \"total\": 1,\n  \"rules\": [\n    {\n      \"rule_id\": \"consent-no-cmp\",\n      \"title\": \"No CMP detected\",\n      \"description\": \"Tags require consent but no Consent Management Platform is detected in the container.\",\n      \"recommendation\": \"Install a CMP (CookieBot, OneTrust, etc.) and configure it to fire on Consent Initialization.\",\n      \"category\": \"consent\",\n      \"tier\": \"warning\",\n      \"severity\": \"high\",\n      \"layer_requirements\": \"container\",\n      \"status\": \"shipped\",\n      \"version\": 1,\n      \"effort_estimate\": \"strategic\",\n      \"reversibility\": \"non-destructive\",\n      \"regulatory_cites\": [\n        \"GDPR Art. 6 (lawful basis)\",\n        \"GDPR Art. 7 (consent)\"\n      ],\n      \"learn_more_url\": null\n    }\n  ]\n}\n","json","",[27,354,355,364,380,389,395,409,422,435,448,461,474,487,500,513,525,538,551,559,567,573,579,590,596,602],{"__ignoreMap":352},[356,357,360],"span",{"class":358,"line":359},"line",1,[356,361,363],{"class":362},"sVt8B","{\n",[356,365,367,371,374,377],{"class":358,"line":366},2,[356,368,370],{"class":369},"sj4cs","  \"total\"",[356,372,373],{"class":362},": ",[356,375,376],{"class":369},"1",[356,378,379],{"class":362},",\n",[356,381,383,386],{"class":358,"line":382},3,[356,384,385],{"class":369},"  \"rules\"",[356,387,388],{"class":362},": [\n",[356,390,392],{"class":358,"line":391},4,[356,393,394],{"class":362},"    {\n",[356,396,398,401,403,407],{"class":358,"line":397},5,[356,399,400],{"class":369},"      \"rule_id\"",[356,402,373],{"class":362},[356,404,406],{"class":405},"sZZnC","\"consent-no-cmp\"",[356,408,379],{"class":362},[356,410,412,415,417,420],{"class":358,"line":411},6,[356,413,414],{"class":369},"      \"title\"",[356,416,373],{"class":362},[356,418,419],{"class":405},"\"No CMP detected\"",[356,421,379],{"class":362},[356,423,425,428,430,433],{"class":358,"line":424},7,[356,426,427],{"class":369},"      \"description\"",[356,429,373],{"class":362},[356,431,432],{"class":405},"\"Tags require consent but no Consent Management Platform is detected in the container.\"",[356,434,379],{"class":362},[356,436,438,441,443,446],{"class":358,"line":437},8,[356,439,440],{"class":369},"      \"recommendation\"",[356,442,373],{"class":362},[356,444,445],{"class":405},"\"Install a CMP (CookieBot, OneTrust, etc.) and configure it to fire on Consent Initialization.\"",[356,447,379],{"class":362},[356,449,451,454,456,459],{"class":358,"line":450},9,[356,452,453],{"class":369},"      \"category\"",[356,455,373],{"class":362},[356,457,458],{"class":405},"\"consent\"",[356,460,379],{"class":362},[356,462,464,467,469,472],{"class":358,"line":463},10,[356,465,466],{"class":369},"      \"tier\"",[356,468,373],{"class":362},[356,470,471],{"class":405},"\"warning\"",[356,473,379],{"class":362},[356,475,477,480,482,485],{"class":358,"line":476},11,[356,478,479],{"class":369},"      \"severity\"",[356,481,373],{"class":362},[356,483,484],{"class":405},"\"high\"",[356,486,379],{"class":362},[356,488,490,493,495,498],{"class":358,"line":489},12,[356,491,492],{"class":369},"      \"layer_requirements\"",[356,494,373],{"class":362},[356,496,497],{"class":405},"\"container\"",[356,499,379],{"class":362},[356,501,503,506,508,511],{"class":358,"line":502},13,[356,504,505],{"class":369},"      \"status\"",[356,507,373],{"class":362},[356,509,510],{"class":405},"\"shipped\"",[356,512,379],{"class":362},[356,514,516,519,521,523],{"class":358,"line":515},14,[356,517,518],{"class":369},"      \"version\"",[356,520,373],{"class":362},[356,522,376],{"class":369},[356,524,379],{"class":362},[356,526,528,531,533,536],{"class":358,"line":527},15,[356,529,530],{"class":369},"      \"effort_estimate\"",[356,532,373],{"class":362},[356,534,535],{"class":405},"\"strategic\"",[356,537,379],{"class":362},[356,539,541,544,546,549],{"class":358,"line":540},16,[356,542,543],{"class":369},"      \"reversibility\"",[356,545,373],{"class":362},[356,547,548],{"class":405},"\"non-destructive\"",[356,550,379],{"class":362},[356,552,554,557],{"class":358,"line":553},17,[356,555,556],{"class":369},"      \"regulatory_cites\"",[356,558,388],{"class":362},[356,560,562,565],{"class":358,"line":561},18,[356,563,564],{"class":405},"        \"GDPR Art. 6 (lawful basis)\"",[356,566,379],{"class":362},[356,568,570],{"class":358,"line":569},19,[356,571,572],{"class":405},"        \"GDPR Art. 7 (consent)\"\n",[356,574,576],{"class":358,"line":575},20,[356,577,578],{"class":362},"      ],\n",[356,580,582,585,587],{"class":358,"line":581},21,[356,583,584],{"class":369},"      \"learn_more_url\"",[356,586,373],{"class":362},[356,588,589],{"class":369},"null\n",[356,591,593],{"class":358,"line":592},22,[356,594,595],{"class":362},"    }\n",[356,597,599],{"class":358,"line":598},23,[356,600,601],{"class":362},"  ]\n",[356,603,605],{"class":358,"line":604},24,[356,606,607],{"class":362},"}\n",[17,609,610,618,636,644,650,659,677,689,698,704],{},[20,611,612,614,615,617],{},[27,613,170],{}," and ",[27,616,220],{}," take the values listed under Query parameters.",[20,619,620,623,624,186,627,186,630,127,633,137],{},[27,621,622],{},"severity"," is ",[27,625,626],{},"critical",[27,628,629],{},"high",[27,631,632],{},"medium",[27,634,635],{},"low",[20,637,638,623,640,127,642,137],{},[27,639,249],{},[27,641,258],{},[27,643,265],{},[20,645,646,649],{},[27,647,648],{},"version"," is an integer.",[20,651,652,655,656,137],{},[27,653,654],{},"layer_requirements"," is a string, not a list. Every shipped rule has ",[27,657,658],{},"container",[20,660,661,664,665,186,668,186,671,127,674,137],{},[27,662,663],{},"effort_estimate"," is one of ",[27,666,667],{},"15min",[27,669,670],{},"2hr",[27,672,673],{},"2wk",[27,675,676],{},"strategic",[20,678,679,623,682,685,686,137],{},[27,680,681],{},"reversibility",[27,683,684],{},"non-destructive"," for every rule in the catalog today. The field also allows ",[27,687,688],{},"destructive",[20,690,691,623,694,697],{},[27,692,693],{},"learn_more_url",[27,695,696],{},"null"," for every rule in the catalog today.",[20,699,700,703],{},[27,701,702],{},"regulatory_cites"," is an empty array when a rule has none.",[20,705,706,708],{},[27,707,622],{}," here is the rule's catalog value. A finding from a scan carries the severity that applies to that container, which can differ.",[81,710,712],{"id":711},"response-headers","Response headers",[86,714,715,723],{},[89,716,717],{},[92,718,719,721],{},[95,720,97],{},[95,722,161],{},[105,724,725,735,745],{},[92,726,727,732],{},[110,728,729],{},[27,730,731],{},"X-RateLimit-Limit",[110,733,734],{},"Daily call ceiling for this endpoint",[92,736,737,742],{},[110,738,739],{},[27,740,741],{},"X-RateLimit-Remaining",[110,743,744],{},"Calls remaining in the current bucket",[92,746,747,752],{},[110,748,749],{},[27,750,751],{},"X-RateLimit-Reset",[110,753,754],{},"ISO timestamp when the bucket resets",[10,756,757,758,137],{},"These headers are on every response to a request that was counted, including a 400 for a bad parameter. They are absent on 401, 403 and 405. During a rate-limiter outage this endpoint still answers and the headers hold placeholder values, not your real count. See ",[133,759,761],{"href":760},"\u002Frate-limits\u002F#handling-429","Rate limits",[76,763,765],{"id":764},"errors","Errors",[10,767,768,769,771,772,775],{},"No-results queries return an empty ",[27,770,323],{}," array with ",[27,773,774],{},"total: 0"," — not a 404.",[86,777,778,791],{},[89,779,780],{},[92,781,782,785,788],{},[95,783,784],{},"Status",[95,786,787],{},"Body",[95,789,790],{},"Cause",[105,792,793,814,828,844,862,877,894],{},[92,794,795,800,805],{},[110,796,797],{},[27,798,799],{},"400",[110,801,802],{},[27,803,804],{},"{ \"error\": \"Unknown category \\\"privacy\\\". Category must be one of: ...\" }",[110,806,807,186,809,127,811,813],{},[27,808,170],{},[27,810,220],{},[27,812,249],{}," is not a real value. The message lists the accepted ones.",[92,815,816,820,825],{},[110,817,818],{},[27,819,799],{},[110,821,822],{},[27,823,824],{},"{ \"error\": \"Unknown query parameter: \\\"statuses\\\" (did you mean \\\"status\\\"?). Accepted: category, tier, status, limit.\" }",[110,826,827],{},"A query parameter this endpoint does not take. It is refused so that a misspelt filter is never silently ignored.",[92,829,830,834,839],{},[110,831,832],{},[27,833,799],{},[110,835,836],{},[27,837,838],{},"{ \"error\": \"limit must be a number of 0 or more (got \\\"-1\\\").\" }",[110,840,841,843],{},[27,842,285],{}," is negative or not a number.",[92,845,846,851,856],{},[110,847,848],{},[27,849,850],{},"401",[110,852,853],{},[27,854,855],{},"{ \"error\": \"Invalid or expired token\" }",[110,857,858,859,137],{},"Missing, malformed, expired or revoked bearer token. An API key failure reads ",[27,860,861],{},"Invalid or revoked API key",[92,863,864,869,874],{},[110,865,866],{},[27,867,868],{},"403",[110,870,871],{},[27,872,873],{},"{ \"error\": \"insufficient_scope\", \"message\": \"This token was not granted 'mcp:read', which this endpoint requires.\" }",[110,875,876],{},"An MCP access token with no usable scope.",[92,878,879,884,889],{},[110,880,881],{},[27,882,883],{},"429",[110,885,886],{},[27,887,888],{},"{ \"error\": \"rate_limit_exceeded\", \"message\": \"Daily limit reached for list_rules (1001\u002F1000)\", \"tool\": \"list_rules\", \"limit\": 1000, \"count\": 1001, \"reset_at\": \"...\" }",[110,890,891,892,137],{},"Daily bucket exhausted. See ",[27,893,751],{},[92,895,896,901,906],{},[110,897,898],{},[27,899,900],{},"500",[110,902,903],{},[27,904,905],{},"{ \"error\": \"Registry read failed: ...\" }",[110,907,908],{},"Internal registry failure. Retry once before reporting.",[76,910,912],{"id":911},"try-saying","Try saying",[10,914,915],{},"Useful when wiring this endpoint to an agent that calls it programmatically.",[10,917,918],{},"Tell the agent something like:",[347,920,925],{"className":921,"code":923,"language":924},[922],"language-text","You have access to TagManifest's REST API at https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1.\nUse GET \u002Frules to browse the rule catalog.\nFilter with query params: category, tier, status, limit.\nAuthentication: include header \"Authorization: Bearer \u003Capi-key>\".\n","text",[27,926,923],{"__ignoreMap":352},[10,928,929],{},"Or, when the agent has direct HTTP capability:",[17,931,932,935,938],{},[20,933,934],{},"\"List all TagManifest rules in the consent category\"",[20,936,937],{},"\"Show me the warning-tier consent rules available in TagManifest\"",[20,939,940],{},"\"Fetch the full TagManifest rule catalog and summarize what's in the performance category\"",[76,942,944],{"id":943},"see-also","See also",[17,946,947,956,962],{},[20,948,949,955],{},[133,950,952,953],{"href":951},"\u002Fmcp\u002Ftools\u002Flist-rules\u002F","MCP equivalent: ",[27,954,42],{}," — same data, MCP path",[20,957,958,961],{},[133,959,334],{"href":960},"\u002Fapi\u002Frules-detail\u002F"," — full detail for a single rule by ID",[20,963,964,968],{},[133,965,967],{"href":966},"\u002Frules\u002F","Rules catalog"," — human-readable version of the same registry",[970,971,972],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":352,"searchDepth":366,"depth":366,"links":974},[975,979,982,983,984],{"id":78,"depth":366,"text":79,"children":976},[977,978],{"id":83,"depth":382,"text":84},{"id":140,"depth":382,"text":141},{"id":312,"depth":366,"text":313,"children":980},[981],{"id":711,"depth":382,"text":712},{"id":764,"depth":366,"text":765},{"id":911,"depth":366,"text":912},{"id":943,"depth":366,"text":944},[986,989,991],{"label":987,"href":988},"API Reference","\u002F",{"label":990},"REST endpoints",{"label":5},{"cards":993,"onpage":1014},[994,1008],{"title":79,"tabs":995},[996,1000,1004],{"label":997,"language":998,"code":999},"cURL","bash","curl \"https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\u002Frules?category=consent&tier=warning\" \\\n  -H \"Authorization: Bearer $TM_API_KEY\"\n",{"label":1001,"language":1002,"code":1003},"Node","javascript","const params = new URLSearchParams({ category: \"consent\", tier: \"warning\" });\nconst r = await fetch(`https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\u002Frules?${params}`, {\n  headers: { Authorization: `Bearer ${process.env.TM_API_KEY}` }\n});\nconst { total, rules } = await r.json();\n",{"label":1005,"language":1006,"code":1007},"Python","python","import httpx, os\nr = httpx.get(\n    \"https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\u002Frules\",\n    params={\"category\": \"consent\", \"tier\": \"warning\"},\n    headers={\"Authorization\": f\"Bearer {os.environ['TM_API_KEY']}\"},\n)\ndata = r.json()  # { \"total\": N, \"rules\": [...] }\n",{"title":1009,"variant":312,"tabs":1010},"200 — rules list",[1011],{"label":1012,"language":351,"code":1013},"JSON","{\n  \"total\": 2,\n  \"rules\": [\n    {\n      \"rule_id\": \"consent-cmp-not-wired\",\n      \"title\": \"CMP detected but consent mode not wired\",\n      \"description\": \"A CMP is installed but 80%+ of tags have no consent configuration, making the CMP effectively decorative.\",\n      \"recommendation\": \"Configure consent types on all tags that collect or process user data.\",\n      \"category\": \"consent\",\n      \"tier\": \"warning\",\n      \"severity\": \"critical\",\n      \"layer_requirements\": \"container\",\n      \"status\": \"shipped\",\n      \"version\": 1,\n      \"effort_estimate\": \"2wk\",\n      \"reversibility\": \"non-destructive\",\n      \"regulatory_cites\": [\n        \"GDPR Art. 6 (lawful basis)\",\n        \"GDPR Art. 7 (consent)\"\n      ],\n      \"learn_more_url\": null\n    },\n    {\n      \"rule_id\": \"consent-no-cmp\",\n      \"title\": \"No CMP detected\",\n      \"description\": \"Tags require consent but no Consent Management Platform is detected in the container.\",\n      \"recommendation\": \"Install a CMP (CookieBot, OneTrust, etc.) and configure it to fire on Consent Initialization.\",\n      \"category\": \"consent\",\n      \"tier\": \"warning\",\n      \"severity\": \"high\",\n      \"layer_requirements\": \"container\",\n      \"status\": \"shipped\",\n      \"version\": 1,\n      \"effort_estimate\": \"strategic\",\n      \"reversibility\": \"non-destructive\",\n      \"regulatory_cites\": [\n        \"GDPR Art. 6 (lawful basis)\",\n        \"GDPR Art. 7 (consent)\"\n      ],\n      \"learn_more_url\": null\n    }\n  ]\n}\n",[1015,1016,1017,1018],{"id":78,"label":79},{"id":312,"label":313},{"id":764,"label":765},{"id":911,"label":912},null,"List the rule catalog with metadata. Filter by category, tier, or status.","md",{},true,{"href":960,"title":334},"\u002Fapi\u002Frules",{"href":951,"title":1027},"list_rules tool","APIReference",{"title":5,"description":1020},"api\u002Frules",false,"veMiFXSDVooNJNf7LXn3HYlQ959CIDRJphwvWrKUa1Y",1796069482925]