{
  "openapi": "3.1.0",
  "info": {
    "title": "KWL Skill",
    "version": "0.2.0",
    "summary": "Behavioural intelligence for eleven European markets, over REST and MCP.",
    "description": "KWL publishes governed, receipted findings about how European consumer markets currently behave. Every figure carries its source and its period. A read, not a forecast: no endpoint here returns a prediction, and no response licenses one.\n\nThe unit is the **intelligence object** rather than the endpoint — a governed relationship between measurements, carrying its evidence, its comparison basis, its prevalence denominator and both what it allows and what it prohibits being concluded. `GET /v1/objects` serves those directly; the other routes are readings composed from the same evidence.\n\nAn object's field names map to PROV-O and Dublin Core through a JSON-LD context at https://www.knowwhatsloved.com/ns/cadence-object.jsonld. It is ADDITIVE and no response carries it: add it as `@context` at the point of use to read a payload as RDF. Lineage is `prov:wasDerivedFrom`. Nothing in it claims a `prov:Activity` or a `prov:Agent`, because KWL records neither per object.\n\nEvery path is a thin translation of one MCP tool (`x-mcp-tool`), so the same capability answers identically over either transport. `mcp-tools.json` carries the tool registry.\n\nSetup: https://www.knowwhatsloved.com/skill/connect/"
  },
  "servers": [
    {
      "url": "https://skill.knowwhatsloved.com",
      "description": "Production"
    }
  ],
  "security": [
    {
      "ApiKeyHeader": []
    },
    {
      "BearerToken": []
    },
    {
      "ApiKeyQuery": []
    }
  ],
  "x-cadence-editions-held": [
    "Q3 2026"
  ],
  "x-mcp-endpoint": "https://skill.knowwhatsloved.com/mcp",
  "paths": {
    "/v1/markets": {
      "get": {
        "operationId": "listMarkets",
        "summary": "Markets covered",
        "description": "List every covered market with its governed position (the archetype naming where the market sits this quarter). EVERY MARKET LISTED HERE IS FULLY COVERED and publishes a complete edition — this list IS the coverage answer, and there is no partial or second-class market in it. (`tier` was removed: it classified the MUSIC chart, not the data, and callers read \"absent\" as \"not covered\". `grade` and the editorial `headline` went earlier: neither is a governed publication object.)",
        "x-mcp-tool": "list_markets",
        "parameters": [
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "Edition quarter, e.g. \"Q3 2026\". Omit for the current edition. A quarter KWL does not hold is REFUSED and the held quarters are named, never answered from another quarter. Relative phrasing is read literally: \"last quarter\" is the one before this edition and is refused; \"this quarter\" is the current one.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The read. This route is not edition-stamped: it returns a bare array.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/v1/markets/{market}": {
      "get": {
        "operationId": "marketRead",
        "summary": "Market read",
        "description": "Full read for one market: the governed `position` and TL;DR, the commercial weather (Eurostat confidence, savings intent, unemployment — each with its source and period; an indicator whose series has stopped publishing is returned as `withheld` with the reason, never as a last-known value presented as current), derived signals, evidence chips (each with a receipt), brand demand-vs-supply, and `coverage` (what KWL measures and what it does not). A read, not a forecast.",
        "x-mcp-tool": "market_read",
        "parameters": [
          {
            "name": "market",
            "in": "path",
            "required": true,
            "description": "ISO code, slug, or the market's name in English or in its own language (Deutschland, Espana, Pays-Bas all resolve; accents and hyphens are optional)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "Edition quarter, e.g. \"Q3 2026\". Omit for the current edition. A quarter KWL does not hold is REFUSED and the held quarters are named, never answered from another quarter. Relative phrasing is read literally: \"last quarter\" is the one before this edition and is refused; \"this quarter\" is the current one.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The read, with the edition stamp. May instead carry a refusal — see Refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/v1/sectors/{market}": {
      "get": {
        "operationId": "sectorRead",
        "summary": "Sector read",
        "description": "The governed SECTOR reads for one market — Retail & Grocery, Finance & fintech, Travel, leisure & hospitality — each with its state, the claim, the entities the claim is about, the receipt, and `state_contract`: what that state licenses an answer to say. Five states: finding (a rule ran and the sector qualified) · observed (measured and deliberately not classified: the figures are published and no finding, shift, trend, gain, move or stability is asserted about them) · stable (a rule ran and nothing qualified, which is a result) · withheld (the rule exists and its evidence was absent or stale; the response names what is missing and asserts nothing about change, so it is not \"no change\") · not_assessed (no rule for this sector here, so the question was not asked). Also returns the European state for the same sectors, labelled — a country state is not a European one. Sector state is carried here and nowhere else: market_read does not return it. `evidence_rows` is the sector's OBSERVED entities in this market — each with its observed advertising and its subcategory group — ranked by that advertising and CAPPED FOR DISPLAY, so it is not every brand in the sector and not every brand KWL observes. The sector's declared entity set is several times longer. What it always contains is every entity the claim names, which the cap may never drop. A brand ABSENT from these rows is not a brand without advertising: an unconfirmed zero is a wrong advertiser domain as often as it is an absence, so it is refused rather than counted, and asking for a count of the sector's brands from this list is the one thing it cannot answer. IT CARRIES NO MOVEMENT OF ANY KIND: the rows are the entity and its advertising, so this tool answers who is observable rather than what moved, and an answer of \"not published\" from here is about this tool and not about the edition. The published movement observable is a brand's SHARE within a named basket, on the governed objects — ask `objects` with this market and sector. `movers` is a cross-market list and its `attention_vs_europe` is a de-meaned residual — a different observable from within-market movement, not a substitute for it. `context_observables` carries the receipted context for that sector (Eurostat nights for Travel, ECB household rates for Finance), each with its period.",
        "x-mcp-tool": "sector_read",
        "parameters": [
          {
            "name": "market",
            "in": "path",
            "required": true,
            "description": "ISO code, slug, or the market's name in English or in its own language (Deutschland, Espana, Pays-Bas all resolve; accents and hyphens are optional)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sector",
            "in": "query",
            "required": false,
            "description": "Optional substring of one sector name, e.g. retail, finance, travel. Omit for all three.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "Edition quarter, e.g. \"Q3 2026\". Omit for the current edition. A quarter KWL does not hold is REFUSED and the held quarters are named, never answered from another quarter. Relative phrasing is read literally: \"last quarter\" is the one before this edition and is refused; \"this quarter\" is the current one.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The read, with the edition stamp. May instead carry a refusal — see Refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/v1/compare": {
      "get": {
        "operationId": "compareMarkets",
        "summary": "Compare two markets",
        "description": "Side-by-side of two markets, returning each one’s governed position and five signals: macro, discourse, grocery_gap, neobank, premium. COVERAGE VARIES BY SIGNAL and a null means that signal is not published for that market, which is a result and not an error: neobank publishes in 5 of 11 markets, premium in 8, grocery_gap in 10, macro and discourse in all 11. A null is none of these three things: it is not a zero, not an unmeasured value, and not a market with thinner coverage. `mood` and `sound` are NOT SERVED here: they were the music comparison, and music is not a surface this product carries — a product decision, not a measurement problem. The `premium` signal here is a different instrument from the WITHDRAWN `premium` metric in league; this one is published, that one is not.",
        "x-mcp-tool": "compare",
        "parameters": [
          {
            "name": "a",
            "in": "query",
            "required": true,
            "description": "First market: ISO code, slug, or its name in English or in its own language (Deutschland, Espana, Pays-Bas all resolve) Fills the `market_a` input of `compare`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "b",
            "in": "query",
            "required": true,
            "description": "Second market, in any of the same forms. Both must be markets this key holds, and the comparison itself needs the cross-market layer Fills the `market_b` input of `compare`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "Edition quarter, e.g. \"Q3 2026\". Omit for the current edition. A quarter KWL does not hold is REFUSED and the held quarters are named, never answered from another quarter. Relative phrasing is read literally: \"last quarter\" is the one before this edition and is refused; \"this quarter\" is the current one.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The read, with the edition stamp. May instead carry a refusal — see Refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/v1/resemble/{market}": {
      "get": {
        "operationId": "resembleMarket",
        "summary": "Market similarity",
        "description": "WITHHELD this quarter. Market similarity is not published: the resemblance measure treated unmeasured components as a measured zero, which contaminated every market's score. Calling this returns the withholding and its reason, never a nearest-market list.",
        "x-mcp-tool": "resemble",
        "parameters": [
          {
            "name": "market",
            "in": "path",
            "required": true,
            "description": "ISO code, slug, or the market's name in English or in its own language (Deutschland, Espana, Pays-Bas all resolve)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "Edition quarter, e.g. \"Q3 2026\". Omit for the current edition. A quarter KWL does not hold is REFUSED and the held quarters are named, never answered from another quarter. Relative phrasing is read literally: \"last quarter\" is the one before this edition and is refused; \"this quarter\" is the current one.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The read, with the edition stamp. May instead carry a refusal — see Refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/v1/europe": {
      "get": {
        "operationId": "europePicture",
        "summary": "European control room",
        "description": "The European Control Room: where eleven markets sit on two measured axes and which moved, observations that repeat across markets with their denominators, measured ranges across the set, the sector state per market, disagreements between independent observables, the watchlist, and what is withheld. Every cross-market claim carries its denominator; a pattern that reduces to one entity is reported as that entity.",
        "x-mcp-tool": "europe_picture",
        "parameters": [
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "Edition quarter, e.g. \"Q3 2026\". Omit for the current edition. A quarter KWL does not hold is REFUSED and the held quarters are named, never answered from another quarter. Relative phrasing is read literally: \"last quarter\" is the one before this edition and is refused; \"this quarter\" is the current one.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The read, with the edition stamp. May instead carry a refusal — see Refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/v1/league/{metric}": {
      "get": {
        "operationId": "leagueTable",
        "summary": "Cross-market league table",
        "description": "One cross-market measure. metric ∈ {newsTone, confidence, bigTicket, behavingBetter}. Returns the distribution with its withheld markets named, never a ranking that hides them. tradeDown and premium are WITHDRAWN — asking for either returns why, and what does answer the question. domesticShare is NOT SERVED: music is not a surface this product carries. That is a product decision rather than a measurement problem — the evidence exists and this interface does not carry it, so it is neither unmeasured nor unreliable.",
        "x-mcp-tool": "league",
        "parameters": [
          {
            "name": "metric",
            "in": "path",
            "required": true,
            "description": "One of newsTone, confidence, bigTicket, behavingBetter. Aliases are accepted after case and separator normalisation. tradeDown and premium are WITHDRAWN and domesticShare is NOT SERVED — asking for any of them returns why.",
            "schema": {
              "type": "string",
              "enum": [
                "newsTone",
                "confidence",
                "bigTicket",
                "behavingBetter"
              ]
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "Edition quarter, e.g. \"Q3 2026\". Omit for the current edition. A quarter KWL does not hold is REFUSED and the held quarters are named, never answered from another quarter. Relative phrasing is read literally: \"last quarter\" is the one before this edition and is refused; \"this quarter\" is the current one.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The read, with the edition stamp. May instead carry a refusal — see Refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/v1/whitespace": {
      "get": {
        "operationId": "whitespace",
        "summary": "Attention without matched advertising",
        "description": "WITHHELD this edition. The rule reads branded search movement, which is not published for Q3 2026 — repeated identical measurement did not reproduce the per-brand figure at the precision KWL publishes — so the rule did not run and calling this returns the withholding and its reason. It does NOT return \"no brand qualified\", a zero count or an empty finding: an absent measurement is not an absence of movement. When it is served, it reports where search attention rose and no advertising was matched: a disagreement between two independent observables, not an opportunity. (Endpoint name retained for compatibility; the vocabulary it was named for has been withdrawn.)",
        "x-mcp-tool": "whitespace",
        "parameters": [
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "Edition quarter, e.g. \"Q3 2026\". Omit for the current edition. A quarter KWL does not hold is REFUSED and the held quarters are named, never answered from another quarter. Relative phrasing is read literally: \"last quarter\" is the one before this edition and is refused; \"this quarter\" is the current one.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The read, with the edition stamp. May instead carry a refusal — see Refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/v1/objects": {
      "get": {
        "operationId": "objects",
        "summary": "Governed intelligence objects",
        "description": "GOVERNED INTELLIGENCE OBJECTS (Report 2.0). Retrieve by stable `id`, `market`, `sector`, `period`, `type` or `scope` (market|europe). A BROAD QUERY IS ANSWERED AS AN INDEX: ask for every object and you get every match listed by id with `form: 'index'`, because the bodies are past what a tool result carries - that is not a truncation and not a withholding, the count is the same, and narrowing by market, sector or type returns the bodies (a single market always does). An object is a governed RELATIONSHIP between measurements, not a figure: `divergence` (two legs of one measurement contract moving in opposite directions), `counter_signal` (an opinion or salience instrument disagreeing with a behaviour instrument), `outlier` (the sole market holding a state), `finding` (a sector rule ran and qualified). Every object carries its measurements with receipts, comparison basis, eligibility and prevalence denominator, evidence lineage, and BOTH allowed_interpretation and prohibited_interpretation, which state in the object’s own words what it does and does not license. Ids are hashed from measurement identity, not prose, so they are stable across rewording and translation and safe to quote back. How much KWL found is `grouping[market].independent_findings`. `objects.length` is a count of objects and is a larger number, because several objects can rest on one instrument and are one finding. Where a sector state is withheld no object asserts one, and the absence of an object is not stability. A Europe object carries its eligible country set; an excluded country is not a zero. THIS IS WHERE BRANDED SEARCH MOVEMENT LIVES: `divergence.brand_attention_share` carries each cited brand's share of search attention within a named basket and its year-on-year change in points, with two query configurations and an independent repeat, and `observed.finance_attention_decline` carries a direction with NO magnitude at any precision. Each one's own allowed_interpretation and prohibited_interpretation govern what it licenses, and they govern over any general sentence about the edition — a basket is zero-sum by construction, so a riser is its fallers rather than growth, and every riser is published with its fallers.",
        "x-mcp-tool": "objects",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "stable object id",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "market",
            "in": "query",
            "required": false,
            "description": "market name or ISO, or EUROPE. A name in the market's own language resolves (Deutschland, Espana, Pays-Bas) May also be given as a path segment (`/v1/objects/{market}`). When both are present the query parameter wins.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sector",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "finding",
                "divergence",
                "counter_signal",
                "outlier",
                "observed"
              ]
            }
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "market",
                "europe"
              ]
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "Edition quarter, e.g. \"Q3 2026\". Omit for the current edition. A quarter KWL does not hold is REFUSED and the held quarters are named, never answered from another quarter. Relative phrasing is read literally: \"last quarter\" is the one before this edition and is refused; \"this quarter\" is the current one.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The read, with the edition stamp. May instead carry a refusal — see Refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    },
    "/v1/movers": {
      "get": {
        "operationId": "movers",
        "summary": "Brand movers across markets",
        "description": "RETURNS NO ROWS THIS EDITION, and returns a withholding rather than an empty list. THIS tool is the cross-market rollup of a brand's OWN year-on-year search movement, and that figure is what the edition withholds, so there is no list to filter: naming a category, market, tag or direction does not change the answer. The response carries `state: withheld` and no count, which is an absent measurement rather than an absence of movement — it is not \"nothing moved\", not \"no brand qualified\", not a flat category and not a stable market. IT IS NOT A STATEMENT THAT NO BRAND MOVEMENT PUBLISHES: a brand's SHARE within a named basket, and its year-on-year change in points, is published on the governed objects — ask `objects` with a market and sector. Entity coverage and observed advertising are in `sector_read` and its `evidence_rows`. When movement is served, this is the cross-market rollup of every brand mover across all 11 markets in ONE call, sorted by largest absolute move, where `demand` is the WITHIN-market figure and `attention_vs_europe` is the de-meaned residual under its own name.",
        "x-mcp-tool": "movers",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Filter to one category, e.g. grocery, fintech, automotive, travel, electronics, fashion, luxury, energy, tech, home, marketplace.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "market",
            "in": "query",
            "required": false,
            "description": "Filter to one market: ISO code, slug, or its name in English or in its own language (Deutschland, Espana, Pays-Bas all resolve). May also be given as a path segment (`/v1/movers/{market}`). When both are present the query parameter wins.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "description": "Filter by the observed state: attention_up_ads_active | attention_down_ads_active | attention_up_ads_none.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "description": "rising/up (demand up) or falling/down (demand down).",
            "schema": {
              "type": "string",
              "enum": [
                "rising",
                "up",
                "falling",
                "down"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Max rows (default 40, max 300).",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "Edition quarter, e.g. \"Q3 2026\". Omit for the current edition. A quarter KWL does not hold is REFUSED and the held quarters are named, never answered from another quarter. Relative phrasing is read literally: \"last quarter\" is the one before this edition and is refused; \"this quarter\" is the current one.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The read, with the edition stamp. May instead carry a refusal — see Refusal.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "Refusal": {
        "x-status": 200,
        "description": "A WITHHOLDING. The rule ran and its evidence could not be published this edition, so the response says so and asserts nothing about change. Answered 200 because the request was understood and this IS the answer — an absent measurement is not an absence of movement, an empty result or a stable market, and it is not an access failure either: nobody can read it. An entitlement refusal is a 403.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string"
                },
                "state": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "Forbidden": {
        "x-status": 403,
        "description": "The credential resolved and the account may not read this. A market outside its coverage, or the cross-market synthesis without an entitlement that includes it. The body names what the key does cover. This is NOT a withholding: a withholding is a 200, because the measurement was made and deliberately not published, and nobody can read it.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string"
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "not_in_plan",
                    "cross_not_in_plan",
                    "period_not_in_grant"
                  ]
                }
              }
            }
          }
        }
      },
      "Unauthorized": {
        "x-status": 401,
        "description": "No credential, or one that does not resolve to an account. Carries `WWW-Authenticate` with a `resource_metadata` pointer to the RFC 9728 document, so a client can discover the authorization server rather than guess."
      },
      "NotFound": {
        "x-status": 404,
        "description": "No such route, or a well-formed quarter KWL does not publish. The second names the editions it does hold, and is never answered from a different quarter. A quarter that cannot be read as a quarter at all is a 400."
      },
      "RateLimited": {
        "x-status": 429,
        "description": "The account's hourly allowance is spent. Carries `Retry-After`. The allowance bounds cost and abuse; it does not meter a billable quantity."
      },
      "BadRequest": {
        "x-status": 400,
        "description": "The route is right and the shape is wrong; the body names the shape expected."
      }
    },
    "securitySchemes": {
      "ApiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "The access key for the account. This is the preferred presentation."
      },
      "BearerToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "Either the same access key, or an OAuth access token obtained from the authorization server at https://www.knowwhatsloved.com. Both resolve to the account and to exactly the entitlements it already holds; no second credential is minted."
      },
      "ApiKeyQuery": {
        "type": "apiKey",
        "in": "query",
        "name": "key",
        "description": "Accepted, and read last of the three. Prefer a header: a credential in a URL is recorded by every proxy and log between the caller and this server, and is the shape that gets pasted into a chat window. It is kept because a client that cannot set a header has no other way in."
      },
      "OAuth2": {
        "type": "oauth2",
        "description": "Authorization code with PKCE, per the MCP authorization spec. Public clients only; no client secret is issued or verified. Clients may register themselves (RFC 7591) and discover all of this from the RFC 8414 document at https://www.knowwhatsloved.com/.well-known/oauth-authorization-server — which is the route to prefer over anything written here, because it is served by the authorization server itself.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://www.knowwhatsloved.com/connect/",
            "tokenUrl": "https://www.knowwhatsloved.com/api/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  }
}
