GET /rules
List the rule catalog with metadata. Filter by category, tier, or status.
Summary
- endpoint —
GET /rules - purpose — browse the full rule catalog, optionally filtered by category, tier, or status
- mcp equivalent —
list_rules - rate limit — 1000/day per user
- synchronous — yes (database read, no fetch or scan)
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.
The catalog has 92 shipped rules. With no filters the endpoint returns all of them.
No scan. This endpoint reads from the rule registry. It fetches no container and runs no rules.
Request
Headers
| Header | Required | Value |
|---|---|---|
Authorization | yes | Bearer <token>. An API key, or an MCP access token with the mcp:read or mcp:tools scope. See Authentication. |
Query parameters
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
category | string | optional | — | Restrict results to one category: consent, ga4, ads, ecommerce, security, pii, performance, quality, organization or dead-code. |
tier | string | optional | — | Restrict results to one tier: error, warning, optimization, or info. |
status | string | optional | shipped | shipped, deferred or all. shipped rules are the ones that produce findings. Two rules are listed with status deferred; they produce no findings today. all returns every rule whatever its status. |
limit | number | optional | 200 | Maximum rules to return. Must be 0 or more. 0 means the default of 200. Values over 500 are cut to 500. A fraction is rounded down. |
These four are the only query parameters. Any other, such as layer, is refused with a 400.
Response
Returns an object with a total count and a rules array. total is the number of rules in this response, after the filters and the limit. Each entry has the same 14 fields as GET /rules-detail; that page describes each one.
The example holds one rule, so total is 1. A call with no filters returns 92.
{
"total": 1,
"rules": [
{
"rule_id": "consent-no-cmp",
"title": "No CMP detected",
"description": "Tags require consent but no Consent Management Platform is detected in the container.",
"recommendation": "Install a CMP (CookieBot, OneTrust, etc.) and configure it to fire on Consent Initialization.",
"category": "consent",
"tier": "warning",
"severity": "high",
"layer_requirements": "container",
"status": "shipped",
"version": 1,
"effort_estimate": "strategic",
"reversibility": "non-destructive",
"regulatory_cites": [
"GDPR Art. 6 (lawful basis)",
"GDPR Art. 7 (consent)"
],
"learn_more_url": null
}
]
}
categoryandtiertake the values listed under Query parameters.severityiscritical,high,mediumorlow.statusisshippedordeferred.versionis an integer.layer_requirementsis a string, not a list. Every shipped rule hascontainer.effort_estimateis one of15min,2hr,2wkorstrategic.reversibilityisnon-destructivefor every rule in the catalog today. The field also allowsdestructive.learn_more_urlisnullfor every rule in the catalog today.regulatory_citesis an empty array when a rule has none.severityhere is the rule's catalog value. A finding from a scan carries the severity that applies to that container, which can differ.
Response headers
| Header | Description |
|---|---|
X-RateLimit-Limit | Daily call ceiling for this endpoint |
X-RateLimit-Remaining | Calls remaining in the current bucket |
X-RateLimit-Reset | ISO timestamp when the bucket resets |
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 Rate limits.
Errors
No-results queries return an empty rules array with total: 0 — not a 404.
| Status | Body | Cause |
|---|---|---|
400 | { "error": "Unknown category \"privacy\". Category must be one of: ..." } | category, tier or status is not a real value. The message lists the accepted ones. |
400 | { "error": "Unknown query parameter: \"statuses\" (did you mean \"status\"?). Accepted: category, tier, status, limit." } | A query parameter this endpoint does not take. It is refused so that a misspelt filter is never silently ignored. |
400 | { "error": "limit must be a number of 0 or more (got \"-1\")." } | limit is negative or not a number. |
401 | { "error": "Invalid or expired token" } | Missing, malformed, expired or revoked bearer token. An API key failure reads Invalid or revoked API key. |
403 | { "error": "insufficient_scope", "message": "This token was not granted 'mcp:read', which this endpoint requires." } | An MCP access token with no usable scope. |
429 | { "error": "rate_limit_exceeded", "message": "Daily limit reached for list_rules (1001/1000)", "tool": "list_rules", "limit": 1000, "count": 1001, "reset_at": "..." } | Daily bucket exhausted. See X-RateLimit-Reset. |
500 | { "error": "Registry read failed: ..." } | Internal registry failure. Retry once before reporting. |
Try saying
Useful when wiring this endpoint to an agent that calls it programmatically.
Tell the agent something like:
You have access to TagManifest's REST API at https://developer.tagmanifest.com/v1.
Use GET /rules to browse the rule catalog.
Filter with query params: category, tier, status, limit.
Authentication: include header "Authorization: Bearer <api-key>".
Or, when the agent has direct HTTP capability:
- "List all TagManifest rules in the consent category"
- "Show me the warning-tier consent rules available in TagManifest"
- "Fetch the full TagManifest rule catalog and summarize what's in the performance category"
See also
- MCP equivalent:
list_rules— same data, MCP path - GET /rules-detail — full detail for a single rule by ID
- Rules catalog — human-readable version of the same registry
Examples
curl "https://developer.tagmanifest.com/v1/rules?category=consent&tier=warning" \
-H "Authorization: Bearer $TM_API_KEY"
const params = new URLSearchParams({ category: "consent", tier: "warning" });
const r = await fetch(`https://developer.tagmanifest.com/v1/rules?${params}`, {
headers: { Authorization: `Bearer ${process.env.TM_API_KEY}` }
});
const { total, rules } = await r.json();
import httpx, os
r = httpx.get(
"https://developer.tagmanifest.com/v1/rules",
params={"category": "consent", "tier": "warning"},
headers={"Authorization": f"Bearer {os.environ['TM_API_KEY']}"},
)
data = r.json() # { "total": N, "rules": [...] }
{
"total": 2,
"rules": [
{
"rule_id": "consent-cmp-not-wired",
"title": "CMP detected but consent mode not wired",
"description": "A CMP is installed but 80%+ of tags have no consent configuration, making the CMP effectively decorative.",
"recommendation": "Configure consent types on all tags that collect or process user data.",
"category": "consent",
"tier": "warning",
"severity": "critical",
"layer_requirements": "container",
"status": "shipped",
"version": 1,
"effort_estimate": "2wk",
"reversibility": "non-destructive",
"regulatory_cites": [
"GDPR Art. 6 (lawful basis)",
"GDPR Art. 7 (consent)"
],
"learn_more_url": null
},
{
"rule_id": "consent-no-cmp",
"title": "No CMP detected",
"description": "Tags require consent but no Consent Management Platform is detected in the container.",
"recommendation": "Install a CMP (CookieBot, OneTrust, etc.) and configure it to fire on Consent Initialization.",
"category": "consent",
"tier": "warning",
"severity": "high",
"layer_requirements": "container",
"status": "shipped",
"version": 1,
"effort_estimate": "strategic",
"reversibility": "non-destructive",
"regulatory_cites": [
"GDPR Art. 6 (lawful basis)",
"GDPR Art. 7 (consent)"
],
"learn_more_url": null
}
]
}