[{"data":1,"prerenderedAt":1218},["ShallowReactive",2],{"docs-\u002Fapi\u002Fevaluate-rule\u002F":3},{"id":4,"title":5,"body":6,"breadcrumb":1172,"coderail":1179,"dateModified":1205,"datePublished":1205,"description":1206,"extension":1207,"meta":1208,"navigation":1209,"next":1210,"path":1211,"prev":1212,"schemaType":1213,"seo":1214,"stem":1215,"wide":1216,"__hash__":1217},"docs\u002Fapi\u002Fevaluate-rule.md","POST \u002Fevaluate-rule",{"type":7,"value":8,"toc":1160},"minimark",[9,16,55,69,74,79,84,149,153,255,284,287,296,300,311,336,366,749,753,795,802,806,1096,1100,1103,1106,1114,1117,1128,1132,1156],[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"," — run one rule against a container and return its findings in the rule engine's own form, with evidence",[20,36,37,25,40],{},[13,38,39],{},"mcp equivalent",[27,41,42],{},"evaluate_rule",[20,44,45,48],{},[13,46,47],{},"rate limit"," — 500\u002Fday per user",[20,50,51,54],{},[13,52,53],{},"synchronous"," — yes",[10,56,57,58,61,62,65,66,68],{},"Runs a single rule against a container you supply by URL, by GTM container ID, or in the request body. Returns each finding as the rule engine produced it. ",[27,59,60],{},"evidence"," and ",[27,63,64],{},"affectedItems"," are always included. ",[27,67,64],{}," holds the affected items the rule reports (some rules list only the first 10 or 20). Use this endpoint to replay a specific check after a fix, or to investigate one concern in depth without running a full audit.",[70,71],"endpoint-bar",{"method":72,"path":73},"POST","\u002Fv1\u002Fevaluate-rule",[75,76,78],"h2",{"id":77},"request","Request",[80,81,83],"h3",{"id":82},"headers","Headers",[85,86,87,103],"table",{},[88,89,90],"thead",{},[91,92,93,97,100],"tr",{},[94,95,96],"th",{},"Header",[94,98,99],{},"Required",[94,101,102],{},"Value",[104,105,106,133],"tbody",{},[91,107,108,114,117],{},[109,110,111],"td",{},[27,112,113],{},"Authorization",[109,115,116],{},"yes",[109,118,119,122,123,126,127,132],{},[27,120,121],{},"Bearer \u003Ctoken>",". An API key, or an MCP access token with the ",[27,124,125],{},"mcp:tools"," scope. See ",[128,129,131],"a",{"href":130},"\u002Fauth\u002F","Authentication",".",[91,134,135,140,143],{},[109,136,137],{},[27,138,139],{},"Content-Type",[109,141,142],{},"recommended",[109,144,145,148],{},[27,146,147],{},"application\u002Fjson",". The body is read as JSON whether or not the header is sent.",[80,150,152],{"id":151},"body-parameters","Body parameters",[85,154,155,170],{},[88,156,157],{},[91,158,159,162,165,167],{},[94,160,161],{},"Field",[94,163,164],{},"Type",[94,166,99],{},[94,168,169],{},"Description",[104,171,172,196,218,236],{},[91,173,174,179,182,185],{},[109,175,176],{},[27,177,178],{},"rule_id",[109,180,181],{},"string",[109,183,184],{},"required",[109,186,187,188,191,192,195],{},"The rule to evaluate, for example ",[27,189,190],{},"ga4-event-name-invalid-chars",". Use ",[27,193,194],{},"GET \u002Frules"," to discover valid IDs.",[91,197,198,203,205,208],{},[109,199,200],{},[27,201,202],{},"url",[109,204,181],{},[109,206,207],{},"one of",[109,209,210,211,214,215,132],{},"Full ",[27,212,213],{},"http(s)"," page URL. The endpoint fetches the HTML, takes the first GTM container ID it finds, then fetches and parses that container's ",[27,216,217],{},"gtm.js",[91,219,220,225,227,229],{},[109,221,222],{},[27,223,224],{},"gtm_id",[109,226,181],{},[109,228,207],{},[109,230,231,232,235],{},"GTM container ID (e.g. ",[27,233,234],{},"GTM-EXAMPLE","). The page is not fetched.",[91,237,238,243,246,248],{},[109,239,240],{},[27,241,242],{},"data",[109,244,245],{},"object",[109,247,207],{},[109,249,250,251,132],{},"The container itself: a GTM JSON export as downloaded, or an already parsed container. Nothing is fetched. The accepted forms are described under ",[128,252,254],{"href":253},"\u002Fapi\u002Fscan\u002F#request","POST \u002Fscan",[10,256,257,258,260,261,263,264,266,267,269,270,272,273,272,275,277,278,280,281,283],{},"At least one of ",[27,259,202],{},", ",[27,262,224],{}," or ",[27,265,242],{}," is required alongside ",[27,268,178],{},". You may send more than one. The endpoint then uses the first that is present, in this order: ",[27,271,242],{},", then ",[27,274,224],{},[27,276,202],{},". A ",[27,279,202],{}," must still be a full ",[27,282,213],{}," address even when it is not the one used.",[10,285,286],{},"Any other field in the body is refused with a 400.",[288,289,290],"callout",{},[10,291,292,295],{},[13,293,294],{},"Synchronous."," Returns when evaluation completes. A container parsed in the last five minutes is reused. No scan IDs, no polling, no webhooks.",[75,297,299],{"id":298},"response","Response",[10,301,302,303,306,307,310],{},"Returns a result object for the rule. The ",[27,304,305],{},"fired"," boolean is ",[27,308,309],{},"true"," if the rule produced at least one finding. A rule can produce more than one.",[10,312,313,314,61,317,319,320,61,322,325,326,328,329,332,333,132],{},"Findings here are in the rule engine's own form, which differs from the scan endpoints. The field names are camelCase: ",[27,315,316],{},"ruleId",[27,318,64],{},", not ",[27,321,178],{},[27,323,324],{},"affected_items",". ",[27,327,60],{}," is a list of objects whose fields depend on the rule. Some rules add extra fields, such as ",[27,330,331],{},"subType"," on ",[27,334,335],{},"consent-no-cmp",[10,337,338,341,342,263,344,347,348,351,352,325,354,357,358,360,361,363,364,132],{},[27,339,340],{},"container.from_cache"," is ",[27,343,309],{},[27,345,346],{},"false"," when the container was fetched, and ",[27,349,350],{},"null"," when you sent it in ",[27,353,242],{},[27,355,356],{},"container.gtm_id"," is read from the container. When a parsed container in ",[27,359,242],{}," carries no ID, a ",[27,362,224],{}," sent in the same request is used. With neither, it is ",[27,365,350],{},[367,368,370],"details",{"summary":369},"Full response shape",[371,372,377],"pre",{"className":373,"code":374,"language":375,"meta":376,"style":376},"language-json shiki shiki-themes github-light github-dark","{\n  \"rule_id\": \"ga4-event-name-invalid-chars\",\n  \"evaluated_at\": \"2026-05-04T13:25:53.659Z\",\n  \"duration_ms\": 312,\n  \"fired\": true,\n  \"finding_count\": 1,\n  \"findings\": [\n    {\n      \"ruleId\": \"ga4-event-name-invalid-chars\",\n      \"severity\": \"high\",\n      \"category\": \"ga4\",\n      \"title\": \"GA4 event names with invalid characters\",\n      \"description\": \"1 GA4 event tags have event names containing spaces, hyphens, or starting with a number. GA4 event names must only contain letters, numbers, and underscores, and must start with a letter. Events with invalid names may not appear in reports as expected.\",\n      \"affectedItems\": [\n        {\n          \"id\": \"14\",\n          \"name\": \"GA4 - Form Submit\",\n          \"eventName\": \"form-submit\"\n        }\n      ],\n      \"evidence\": [\n        {\n          \"tagId\": \"14\",\n          \"eventName\": \"form-submit\"\n        }\n      ],\n      \"recommendation\": \"Rename events to use only letters, numbers, and underscores. Replace hyphens and spaces with underscores.\",\n      \"action\": \"Fix event name characters\",\n      \"tier\": \"warning\"\n    }\n  ],\n  \"container\": {\n    \"gtm_id\": \"GTM-EXAMPLE\",\n    \"tag_count\": 85,\n    \"from_cache\": false\n  }\n}\n","json","",[27,378,379,388,405,418,431,443,456,465,471,483,496,509,522,535,543,549,562,575,586,592,598,606,611,623,632,637,642,655,668,679,685,691,700,713,726,737,743],{"__ignoreMap":376},[380,381,384],"span",{"class":382,"line":383},"line",1,[380,385,387],{"class":386},"sVt8B","{\n",[380,389,391,395,398,402],{"class":382,"line":390},2,[380,392,394],{"class":393},"sj4cs","  \"rule_id\"",[380,396,397],{"class":386},": ",[380,399,401],{"class":400},"sZZnC","\"ga4-event-name-invalid-chars\"",[380,403,404],{"class":386},",\n",[380,406,408,411,413,416],{"class":382,"line":407},3,[380,409,410],{"class":393},"  \"evaluated_at\"",[380,412,397],{"class":386},[380,414,415],{"class":400},"\"2026-05-04T13:25:53.659Z\"",[380,417,404],{"class":386},[380,419,421,424,426,429],{"class":382,"line":420},4,[380,422,423],{"class":393},"  \"duration_ms\"",[380,425,397],{"class":386},[380,427,428],{"class":393},"312",[380,430,404],{"class":386},[380,432,434,437,439,441],{"class":382,"line":433},5,[380,435,436],{"class":393},"  \"fired\"",[380,438,397],{"class":386},[380,440,309],{"class":393},[380,442,404],{"class":386},[380,444,446,449,451,454],{"class":382,"line":445},6,[380,447,448],{"class":393},"  \"finding_count\"",[380,450,397],{"class":386},[380,452,453],{"class":393},"1",[380,455,404],{"class":386},[380,457,459,462],{"class":382,"line":458},7,[380,460,461],{"class":393},"  \"findings\"",[380,463,464],{"class":386},": [\n",[380,466,468],{"class":382,"line":467},8,[380,469,470],{"class":386},"    {\n",[380,472,474,477,479,481],{"class":382,"line":473},9,[380,475,476],{"class":393},"      \"ruleId\"",[380,478,397],{"class":386},[380,480,401],{"class":400},[380,482,404],{"class":386},[380,484,486,489,491,494],{"class":382,"line":485},10,[380,487,488],{"class":393},"      \"severity\"",[380,490,397],{"class":386},[380,492,493],{"class":400},"\"high\"",[380,495,404],{"class":386},[380,497,499,502,504,507],{"class":382,"line":498},11,[380,500,501],{"class":393},"      \"category\"",[380,503,397],{"class":386},[380,505,506],{"class":400},"\"ga4\"",[380,508,404],{"class":386},[380,510,512,515,517,520],{"class":382,"line":511},12,[380,513,514],{"class":393},"      \"title\"",[380,516,397],{"class":386},[380,518,519],{"class":400},"\"GA4 event names with invalid characters\"",[380,521,404],{"class":386},[380,523,525,528,530,533],{"class":382,"line":524},13,[380,526,527],{"class":393},"      \"description\"",[380,529,397],{"class":386},[380,531,532],{"class":400},"\"1 GA4 event tags have event names containing spaces, hyphens, or starting with a number. GA4 event names must only contain letters, numbers, and underscores, and must start with a letter. Events with invalid names may not appear in reports as expected.\"",[380,534,404],{"class":386},[380,536,538,541],{"class":382,"line":537},14,[380,539,540],{"class":393},"      \"affectedItems\"",[380,542,464],{"class":386},[380,544,546],{"class":382,"line":545},15,[380,547,548],{"class":386},"        {\n",[380,550,552,555,557,560],{"class":382,"line":551},16,[380,553,554],{"class":393},"          \"id\"",[380,556,397],{"class":386},[380,558,559],{"class":400},"\"14\"",[380,561,404],{"class":386},[380,563,565,568,570,573],{"class":382,"line":564},17,[380,566,567],{"class":393},"          \"name\"",[380,569,397],{"class":386},[380,571,572],{"class":400},"\"GA4 - Form Submit\"",[380,574,404],{"class":386},[380,576,578,581,583],{"class":382,"line":577},18,[380,579,580],{"class":393},"          \"eventName\"",[380,582,397],{"class":386},[380,584,585],{"class":400},"\"form-submit\"\n",[380,587,589],{"class":382,"line":588},19,[380,590,591],{"class":386},"        }\n",[380,593,595],{"class":382,"line":594},20,[380,596,597],{"class":386},"      ],\n",[380,599,601,604],{"class":382,"line":600},21,[380,602,603],{"class":393},"      \"evidence\"",[380,605,464],{"class":386},[380,607,609],{"class":382,"line":608},22,[380,610,548],{"class":386},[380,612,614,617,619,621],{"class":382,"line":613},23,[380,615,616],{"class":393},"          \"tagId\"",[380,618,397],{"class":386},[380,620,559],{"class":400},[380,622,404],{"class":386},[380,624,626,628,630],{"class":382,"line":625},24,[380,627,580],{"class":393},[380,629,397],{"class":386},[380,631,585],{"class":400},[380,633,635],{"class":382,"line":634},25,[380,636,591],{"class":386},[380,638,640],{"class":382,"line":639},26,[380,641,597],{"class":386},[380,643,645,648,650,653],{"class":382,"line":644},27,[380,646,647],{"class":393},"      \"recommendation\"",[380,649,397],{"class":386},[380,651,652],{"class":400},"\"Rename events to use only letters, numbers, and underscores. Replace hyphens and spaces with underscores.\"",[380,654,404],{"class":386},[380,656,658,661,663,666],{"class":382,"line":657},28,[380,659,660],{"class":393},"      \"action\"",[380,662,397],{"class":386},[380,664,665],{"class":400},"\"Fix event name characters\"",[380,667,404],{"class":386},[380,669,671,674,676],{"class":382,"line":670},29,[380,672,673],{"class":393},"      \"tier\"",[380,675,397],{"class":386},[380,677,678],{"class":400},"\"warning\"\n",[380,680,682],{"class":382,"line":681},30,[380,683,684],{"class":386},"    }\n",[380,686,688],{"class":382,"line":687},31,[380,689,690],{"class":386},"  ],\n",[380,692,694,697],{"class":382,"line":693},32,[380,695,696],{"class":393},"  \"container\"",[380,698,699],{"class":386},": {\n",[380,701,703,706,708,711],{"class":382,"line":702},33,[380,704,705],{"class":393},"    \"gtm_id\"",[380,707,397],{"class":386},[380,709,710],{"class":400},"\"GTM-EXAMPLE\"",[380,712,404],{"class":386},[380,714,716,719,721,724],{"class":382,"line":715},34,[380,717,718],{"class":393},"    \"tag_count\"",[380,720,397],{"class":386},[380,722,723],{"class":393},"85",[380,725,404],{"class":386},[380,727,729,732,734],{"class":382,"line":728},35,[380,730,731],{"class":393},"    \"from_cache\"",[380,733,397],{"class":386},[380,735,736],{"class":393},"false\n",[380,738,740],{"class":382,"line":739},36,[380,741,742],{"class":386},"  }\n",[380,744,746],{"class":382,"line":745},37,[380,747,748],{"class":386},"}\n",[80,750,752],{"id":751},"response-headers","Response headers",[85,754,755,763],{},[88,756,757],{},[91,758,759,761],{},[94,760,96],{},[94,762,169],{},[104,764,765,775,785],{},[91,766,767,772],{},[109,768,769],{},[27,770,771],{},"X-RateLimit-Limit",[109,773,774],{},"Daily call ceiling for this endpoint",[91,776,777,782],{},[109,778,779],{},[27,780,781],{},"X-RateLimit-Remaining",[109,783,784],{},"Calls remaining in the current bucket",[91,786,787,792],{},[109,788,789],{},[27,790,791],{},"X-RateLimit-Reset",[109,793,794],{},"ISO timestamp when the bucket resets",[10,796,797,798,132],{},"These headers are on every response to a request that was counted, including the 400, 404, 429 and 502 errors below. They are absent on 401, 403, 405, 503 and on a 413 for a declared oversize body. See ",[128,799,801],{"href":800},"\u002Frate-limits\u002F","Rate limits",[75,803,805],{"id":804},"errors","Errors",[85,807,808,821],{},[88,809,810],{},[91,811,812,815,818],{},[94,813,814],{},"Status",[94,816,817],{},"Body",[94,819,820],{},"Cause",[104,822,823,840,854,872,888,902,924,942,960,977,995,1010,1028,1046,1063,1081],{},[91,824,825,830,835],{},[109,826,827],{},[27,828,829],{},"400",[109,831,832],{},[27,833,834],{},"{ \"error\": \"Missing required field: rule_id\" }",[109,836,837,839],{},[27,838,178],{}," not provided.",[91,841,842,846,851],{},[109,843,844],{},[27,845,829],{},[109,847,848],{},[27,849,850],{},"{ \"error\": \"Provide one of: data, gtm_id, url\" }",[109,852,853],{},"No container source in the body.",[91,855,856,860,865],{},[109,857,858],{},[27,859,829],{},[109,861,862],{},[27,863,864],{},"{ \"error\": \"Invalid gtm_id: ...\" }",[109,866,867,868,871],{},"GTM ID does not match the ",[27,869,870],{},"GTM-[A-Z0-9]+"," pattern.",[91,873,874,878,883],{},[109,875,876],{},[27,877,829],{},[109,879,880],{},[27,881,882],{},"{ \"error\": \"url must be a full http(s) URL. For a container ID, use gtm_id.\" }",[109,884,885,887],{},[27,886,202],{}," is not an address, for example a container ID put in the wrong field. Nothing is fetched.",[91,889,890,894,899],{},[109,891,892],{},[27,893,829],{},[109,895,896],{},[27,897,898],{},"{ \"error\": \"Unknown field: \\\"urls\\\" (did you mean \\\"url\\\"?). Accepted: rule_id, data, gtm_id, url.\" }",[109,900,901],{},"The body has a field this endpoint does not take.",[91,903,904,908,913],{},[109,905,906],{},[27,907,829],{},[109,909,910],{},[27,911,912],{},"{ \"error\": \"data is not a GTM container: ...\" }",[109,914,915,917,918,132],{},[27,916,242],{}," is neither a GTM JSON export nor a parsed container. The full list of messages is under ",[128,919,921,922],{"href":920},"\u002Ferrors\u002F#bad-data","Bad ",[27,923,242],{},[91,925,926,931,936],{},[109,927,928],{},[27,929,930],{},"401",[109,932,933],{},[27,934,935],{},"{ \"error\": \"Invalid or expired token\" }",[109,937,938,939,132],{},"Missing, malformed, expired or revoked bearer token. An API key failure reads ",[27,940,941],{},"Invalid or revoked API key",[91,943,944,949,954],{},[109,945,946],{},[27,947,948],{},"403",[109,950,951],{},[27,952,953],{},"{ \"error\": \"insufficient_scope\", \"message\": \"This token was not granted 'mcp:tools', which this endpoint requires.\" }",[109,955,956,957,959],{},"An MCP access token without the ",[27,958,125],{}," scope. Not counted against the rate limit.",[91,961,962,967,972],{},[109,963,964],{},[27,965,966],{},"404",[109,968,969],{},[27,970,971],{},"{ \"error\": \"Unknown rule_id: ...\" }",[109,973,974,976],{},[27,975,178],{}," is not a rule the engine runs.",[91,978,979,983,988],{},[109,980,981],{},[27,982,966],{},[109,984,985],{},[27,986,987],{},"{ \"error\": \"No GTM container ID found in page HTML\" }",[109,989,990,991,994],{},"Page fetched successfully but its HTML has no ",[27,992,993],{},"GTM-"," ID.",[91,996,997,1002,1007],{},[109,998,999],{},[27,1000,1001],{},"413",[109,1003,1004],{},[27,1005,1006],{},"{ \"error\": \"payload_too_large\", \"message\": \"Request body too large. The limit is 10 MB.\" }",[109,1008,1009],{},"Request body over 10 MB.",[91,1011,1012,1017,1022],{},[109,1013,1014],{},[27,1015,1016],{},"429",[109,1018,1019],{},[27,1020,1021],{},"{ \"error\": \"rate_limit_exceeded\", \"message\": \"Daily limit reached for evaluate_rule (501\u002F500)\", \"tool\": \"evaluate_rule\", \"limit\": 500, \"count\": 501, \"reset_at\": \"...\" }",[109,1023,1024,1025,1027],{},"Daily bucket exhausted. Check ",[27,1026,791],{}," for the reset time.",[91,1029,1030,1035,1040],{},[109,1031,1032],{},[27,1033,1034],{},"502",[109,1036,1037],{},[27,1038,1039],{},"{ \"error\": \"Failed to fetch page: ...\" }",[109,1041,1042,1043,1045],{},"Outbound fetch of the supplied ",[27,1044,202],{}," failed or returned a non-2xx status. The fetch gives up after 8 seconds per request, after more than 3 redirects, or when the page is over 5 MB.",[91,1047,1048,1052,1057],{},[109,1049,1050],{},[27,1051,1034],{},[109,1053,1054],{},[27,1055,1056],{},"{ \"error\": \"Container fetch failed: Failed to fetch gtm.js: HTTP 404\" }",[109,1058,1059,1060,1062],{},"Outbound ",[27,1061,217],{}," fetch failed. A 404 means Google has no published container with that ID.",[91,1064,1065,1070,1075],{},[109,1066,1067],{},[27,1068,1069],{},"503",[109,1071,1072],{},[27,1073,1074],{},"{ \"error\": \"rate_limiter_unavailable\", \"message\": \"...\" }",[109,1076,1077,1078,132],{},"The rate limiter could not be reached, so the rule was not run. The response has ",[27,1079,1080],{},"Retry-After: 30",[91,1082,1083,1088,1093],{},[109,1084,1085],{},[27,1086,1087],{},"500",[109,1089,1090],{},[27,1091,1092],{},"{ \"error\": \"Rule evaluation failed: ...\" }",[109,1094,1095],{},"Internal error during rule execution. Retry once before reporting.",[75,1097,1099],{"id":1098},"try-saying","Try saying",[10,1101,1102],{},"Useful when wiring this endpoint to an agent that calls it programmatically.",[10,1104,1105],{},"Tell the agent something like:",[371,1107,1112],{"className":1108,"code":1110,"language":1111},[1109],"language-text","You have access to TagManifest's REST API at https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1.\nUse POST \u002Fevaluate-rule to run a single rule against a GTM container and get the full evidence.\nSend rule_id plus at least one of: url, gtm_id, or data.\nAuthentication: include header \"Authorization: Bearer \u003Capi-key>\".\n","text",[27,1113,1110],{"__ignoreMap":376},[10,1115,1116],{},"Or, when the agent has direct HTTP capability:",[17,1118,1119,1122,1125],{},[20,1120,1121],{},"\"Check whether example.com passes rule ga4-event-name-invalid-chars using TagManifest's evaluate-rule endpoint\"",[20,1123,1124],{},"\"Re-run the consent-no-cmp rule against GTM-EXAMPLE and show me the full evidence\"",[20,1126,1127],{},"\"After I push this fix, use evaluate-rule to confirm ga4-event-name-invalid-chars no longer fires on staging.example.com\"",[75,1129,1131],{"id":1130},"see-also","See also",[17,1133,1134,1143,1150],{},[20,1135,1136,1142],{},[128,1137,1139,1140],{"href":1138},"\u002Fmcp\u002Ftools\u002Fevaluate-rule\u002F","MCP equivalent: ",[27,1141,42],{}," — same data, MCP path",[20,1144,1145,1149],{},[128,1146,1148],{"href":1147},"\u002Fapi\u002Fscan-url\u002F","POST \u002Fscan-url"," — full audit across all rules; findings are shortened by default",[20,1151,1152,1155],{},[128,1153,194],{"href":1154},"\u002Fapi\u002Frules\u002F"," — discover valid rule IDs and their metadata",[1157,1158,1159],"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":376,"searchDepth":390,"depth":390,"links":1161},[1162,1166,1169,1170,1171],{"id":77,"depth":390,"text":78,"children":1163},[1164,1165],{"id":82,"depth":407,"text":83},{"id":151,"depth":407,"text":152},{"id":298,"depth":390,"text":299,"children":1167},[1168],{"id":751,"depth":407,"text":752},{"id":804,"depth":390,"text":805},{"id":1098,"depth":390,"text":1099},{"id":1130,"depth":390,"text":1131},[1173,1176,1178],{"label":1174,"href":1175},"API Reference","\u002F",{"label":1177},"REST endpoints",{"label":5},{"cards":1180,"onpage":1200},[1181,1195],{"title":78,"tabs":1182},[1183,1187,1191],{"label":1184,"language":1185,"code":1186},"cURL","bash","curl https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\u002Fevaluate-rule \\\n  -H \"Authorization: Bearer $TM_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"rule_id\":\"ga4-event-name-invalid-chars\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":1188,"language":1189,"code":1190},"Node","javascript","const r = await fetch(\"https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\u002Fevaluate-rule\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.TM_API_KEY}`,\n    \"Content-Type\": \"application\u002Fjson\"\n  },\n  body: JSON.stringify({\n    rule_id: \"ga4-event-name-invalid-chars\",\n    url: \"https:\u002F\u002Fexample.com\"\n  })\n});\nconst result = await r.json();\n",{"label":1192,"language":1193,"code":1194},"Python","python","import os, requests\n\nresp = requests.post(\n    \"https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\u002Fevaluate-rule\",\n    headers={\"Authorization\": f\"Bearer {os.environ['TM_API_KEY']}\"},\n    json={\n        \"rule_id\": \"ga4-event-name-invalid-chars\",\n        \"url\": \"https:\u002F\u002Fexample.com\",\n    },\n)\nresult = resp.json()\n",{"title":1196,"variant":298,"tabs":1197},"200 — finding",[1198],{"label":1199,"language":375,"code":374},"JSON",[1201,1202,1203,1204],{"id":77,"label":78},{"id":298,"label":299},{"id":804,"label":805},{"id":1098,"label":1099},null,"Run a single rule against a container and return its findings in full, with evidence. Use this to replay a check after a fix or drill into one specific concern.","md",{},true,{"href":1154,"title":194},"\u002Fapi\u002Fevaluate-rule",{"href":1147,"title":1148},"APIReference",{"title":5,"description":1206},"api\u002Fevaluate-rule",false,"8ks8tKvZGvnrJGXGCuTxw4rxv7iLoVVEoiKTL53Gfwc",1796069482903]