{"openapi":"3.1.0","info":{"title":"Cabinhub News API","description":"Compliance-gated, multi-language financial news feed. Structured fields only.","version":"1.0.0"},"paths":{"/v1/version":{"get":{"tags":["version"],"summary":"Version","description":"Public, keyless, cacheable for a few seconds. Contract, not telemetry.\n\nNo auth dependency on purpose: a client that cannot authenticate (a wrong key, an\nexpired one, an unset one) still needs to know which contract it is talking to, and this\nroute reveals nothing a public ``/openapi.json`` does not already reveal. It is not\nmetered, because it delivers no items and is answered from memory.","operationId":"version_v1_version_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"304":{"description":"the representation is unchanged; no body is sent"}}}},"/v1/admin/webhooks/deliveries":{"get":{"tags":["webhooks"],"summary":"List delivery outbox rows, newest first, with the endpoint masked","description":"One page of deliveries. See the module docstring for order, cursor and masking.\n\n``limit`` is validated here rather than by ``Query(ge=..., le=...)`` so a bad page size is\nthe same documented ``400`` a bad ``status`` gets, instead of FastAPI's ``422`` envelope.\nOne error shape per route is what a client can code against.","operationId":"list_deliveries_v1_admin_webhooks_deliveries_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"pending | delivered | dead","title":"Status"},"description":"pending | delivered | dead"},{"name":"endpoint","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"the MASKED endpoint shown by this route (scheme://host/#hash); a raw URL is refused","title":"Endpoint"},"description":"the MASKED endpoint shown by this route (scheme://host/#hash); a raw URL is refused"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"page size, 1..200 (default 50)","title":"Limit"},"description":"page size, 1..200 (default 50)"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"opaque cursor from a previous page","title":"Cursor"},"description":"opaque cursor from a previous page"},{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"the operation is not available in the row's current state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"the operator surface is disabled: NEWS_ADMIN_TOKEN is not configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"operatorToken":[]}]}},"/v1/admin/webhooks/deliveries/{delivery_id}/replay":{"post":{"tags":["webhooks"],"summary":"Requeue one DEAD delivery; a row that is not dead is refused 409","description":"Move exactly one dead row back to ``pending`` with a fresh attempt budget.\n\nNo row is inserted and ``attempts`` is reset (not incremented), so repeating the call can\nnever create a second delivery or a second attempt: the second call finds the row no longer\ndead and is refused 409 with the status it now has. The check and the write are one\nconditional UPDATE inside ``webhooks.requeue_dead`` (``WHERE status = 'dead'``), so two\nconcurrent replays cannot both win.","operationId":"replay_delivery_v1_admin_webhooks_deliveries__delivery_id__replay_post","parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}},{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"the operation is not available in the row's current state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"the operator surface is disabled: NEWS_ADMIN_TOKEN is not configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"operatorToken":[]}]}},"/v1/admin/webhooks/summary":{"get":{"tags":["webhooks"],"summary":"Outbox counts, the oldest dead letter and an evidence-only dispatcher verdict","description":"Counts by status, oldest dead-letter age and the dispatcher verdict.","operationId":"delivery_summary_v1_admin_webhooks_summary_get","parameters":[{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"the operation is not available in the row's current state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"the operator surface is disabled: NEWS_ADMIN_TOKEN is not configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"operatorToken":[]}]}},"/v1/usage":{"get":{"summary":"Usage","description":"Current (or explicitly named) month: items metered, quota, remaining, per endpoint.\n\n``billable_items`` is the deduplicated ledger figure the quota is measured against;\n``items_served`` is raw traffic (re-polls included); ``by_endpoint`` is per-endpoint raw\ntraffic. A per-endpoint *billable* split is deliberately absent: ``usage_items`` records\nthe item, not the endpoint it arrived on, so that number cannot be derived and is not\ninvented.","operationId":"usage_v1_usage_get","parameters":[{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"YYYY-MM; defaults to the current UTC month","title":"Month"},"description":"YYYY-MM; defaults to the current UTC month"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"501":{"description":"usage reporting requires a database-issued key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[]}]}},"/v1/usage/history":{"get":{"summary":"Usage History","description":"The most recent ``months`` UTC billing months for the calling key, newest first.\n\nEvery month in the window is present even when it recorded no traffic (zeros, not a\ngap), so a client can render a continuous trend without filling holes. The current\nmonth is ``history[0]`` and agrees with ``GET /v1/usage``. ``quota`` on the envelope is\nthe key's CURRENT quota; it is not a historical record, so it is not repeated per month.","operationId":"usage_history_v1_usage_history_get","parameters":[{"name":"months","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"number of billing months to return, 1-12 (default 6)","title":"Months"},"description":"number of billing months to return, 1-12 (default 6)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"501":{"description":"usage reporting requires a database-issued key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[]}]}},"/v1/images/{key}":{"get":{"summary":"Get Image","description":"Serve the stored bytes, or a resized WebP variant when ``?w=`` asks for one.\n\n``w`` is taken as a STRING on purpose: ``?w=abc`` must fall back to the original, not\nanswer 422, and a request can never fail because of a query parameter.","operationId":"get_image_v1_images__key__get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"w","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"W"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"monthly billable-item quota exhausted; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[]}]},"head":{"summary":"Head Image","description":"``HEAD``: the GET's headers and status, without the bytes.\n\nSame handler body on purpose — ``_image_response`` already answers a ``304`` with no body\nfor a revalidating client, and Starlette drops the body of a ``HEAD`` response, so there\nis one response builder, not two. A cache or a CDN warms an image key this way without\npaying for the picture.","operationId":"head_image_v1_images__key__head","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"w","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"W"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[]}]}},"/v1/health":{"get":{"summary":"Health","description":"Liveness plus the pipeline verdict from ``app.health.snapshot``.\n\n``status`` is ``\"ok\"`` or ``\"degraded\"`` — and a degraded pipeline is still HTTP 200.\nA run that fetched stories and published none is a content outage, not a dead\nprocess, so an uptime probe must keep seeing 200; the alert watchdog\n(``app.workers.watchdog``) is what turns the verdict into one notification per\nincident. Only an unreadable database is a 503.\n\nEvery pre-existing key keeps its name and type. ``last_published_at`` (RFC3339 UTC or\nnull) and ``reason`` (a short string or null) are additive.","operationId":"health_v1_health_get","responses":{"200":{"description":"Successful Response","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{}}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"per-IP rate limit for the public mirror exceeded; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"keyword search is unavailable: this SQLite build has no FTS5 support","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/items":{"get":{"summary":"List Items","operationId":"list_items_v1_items_get","parameters":[{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Until"}},{"name":"min_importance","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Importance"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"include","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Include"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"monthly billable-item quota exhausted; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[]}]}},"/v1/items/{item_id}":{"get":{"summary":"Get Item","operationId":"get_item_v1_items__item_id__get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"monthly billable-item quota exhausted; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"the item was retired as a duplicate of another item; detail names the survivor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[]}]}},"/v1/feed/{locale}":{"get":{"summary":"Feed","operationId":"feed_v1_feed__locale__get","parameters":[{"name":"locale","in":"path","required":true,"schema":{"type":"string","title":"Locale"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"include","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Include"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"monthly billable-item quota exhausted; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[]}]}},"/v1/meta":{"get":{"summary":"Meta","operationId":"meta_v1_meta_get","responses":{"200":{"description":"Successful Response","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{}}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"monthly billable-item quota exhausted; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}}},"security":[{"clientKey":[]}]}},"/v1/admin/usage":{"get":{"summary":"Admin Usage","description":"Per-customer totals for invoicing. Admin token only, never a client key.","operationId":"admin_usage_v1_admin_usage_get","parameters":[{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"YYYY-MM; defaults to the current UTC month","title":"Month"},"description":"YYYY-MM; defaults to the current UTC month"},{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"the operation is not available in the row's current state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"the operator surface is disabled: NEWS_ADMIN_TOKEN is not configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"operatorToken":[]}]}},"/v1/refresh":{"post":{"summary":"Refresh","operationId":"refresh_v1_refresh_post","parameters":[{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"the operation is not available in the row's current state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"the operator surface is disabled: NEWS_ADMIN_TOKEN is not configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[],"operatorToken":[]}]}},"/v1/runs/{run_id}":{"get":{"tags":["runs"],"summary":"Get Run","operationId":"get_run_v1_runs__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"monthly billable-item quota exhausted; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[]}]}},"/v1/digest/{locale}":{"get":{"summary":"Latest edition of the day's stories","description":"The most recent edition that has publishable items.","operationId":"latest_digest_v1_digest__locale__get","parameters":[{"name":"locale","in":"path","required":true,"schema":{"type":"string","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"monthly billable-item quota exhausted; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[]}]}},"/v1/digest/{locale}/email":{"get":{"summary":"The latest edition as a branded HTML email","description":"The latest edition as a branded HTML email (what the digest mail delivers).","operationId":"latest_digest_email_v1_digest__locale__email_get","parameters":[{"name":"locale","in":"path","required":true,"schema":{"type":"string","title":"Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[]}]}},"/v1/digest/{locale}/email/{day}":{"get":{"summary":"One edition by UTC date as a branded HTML email","description":"One UTC day's edition as a branded HTML email. ``404`` when that day is empty.","operationId":"digest_email_for_day_v1_digest__locale__email__day__get","parameters":[{"name":"locale","in":"path","required":true,"schema":{"type":"string","title":"Locale"}},{"name":"day","in":"path","required":true,"schema":{"type":"string","title":"Day"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[]}]}},"/v1/digest/{locale}/{day}":{"get":{"summary":"One edition by UTC date","description":"One edition by UTC date. ``404`` when that day is empty.","operationId":"digest_for_day_v1_digest__locale___day__get","parameters":[{"name":"locale","in":"path","required":true,"schema":{"type":"string","title":"Locale"}},{"name":"day","in":"path","required":true,"schema":{"type":"string","title":"Day"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"monthly billable-item quota exhausted; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[]}]}},"/v1/search":{"get":{"summary":"Search Items","description":"Keyword search over clean items, ranked by FTS relevance then importance and recency.","operationId":"search_items_v1_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Keyword query, at least 2 characters","title":"Q"},"description":"Keyword query, at least 2 characters"},{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Until"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"include","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Include"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"monthly billable-item quota exhausted; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"503":{"description":"keyword search is unavailable: this SQLite build has no FTS5 support","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[]}]}},"/v1/items/{item_id}/related":{"get":{"summary":"Get Related Items","description":"Related coverage for one published item, ranked, with a reason for each.","operationId":"get_related_items_v1_items__item_id__related_get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Defaults to the item's own locale","title":"Locale"},"description":"Defaults to the item's own locale"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Defaults to 10, capped at 50","title":"Limit"},"description":"Defaults to 10, capped at 50"},{"name":"include","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`provenance` to carry each item's figures","title":"Include"},"description":"`provenance` to carry each item's figures"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"monthly billable-item quota exhausted; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[]}]}},"/v1/stats":{"get":{"tags":["ops"],"summary":"Get Stats","description":"Corpus totals for the operator page. Every count is a SQL aggregate over stored rows.\n\n``items.total`` counts ``items`` rows (a withheld item can exist in both tables — the\npipeline writes withheld items to ``withheld`` only, but ``upsert_item`` also accepts a\nwithheld payload). ``withheld.total`` is the audit table, which is the definitive count of\nquarantined stories. ``published_last_24h`` and oldest/newest are over visible\n(``compliance_status = 'clean'``) rows only, because withheld stories were never\ndelivered. ``sources.last_item_published_at`` is attribution by stored source name; a\nper-source *fetch* success is not persisted by the pipeline, so it is not reported here.","operationId":"get_stats_v1_stats_get","responses":{"200":{"description":"Successful Response","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{}}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"monthly billable-item quota exhausted; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}}},"security":[{"clientKey":[]}]}},"/v1/runs":{"get":{"tags":["ops"],"summary":"List Runs","description":"Recent run rows, newest first, without the full pipeline-detail blob.\n\n``duration_seconds`` is computed from ``started_at`` / ``finished_at`` and is null while a\nrun is still ``running`` (or when the stored timestamps cannot be parsed). The scheduler\ncounters (``sources_ok`` / ``sources_failed`` / ``errors``) come from the detail blob and\nare null for a run that has none — an orphaned row aborted by the sweep, or a manual run\nclosed because it lost the lock race. ``detail_available`` says plainly which case it is.","operationId":"list_runs_v1_runs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"how many recent runs to return (1-200)","default":20,"title":"Limit"},"description":"how many recent runs to return (1-200)"},{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"the operation is not available in the row's current state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"the operator surface is disabled: NEWS_ADMIN_TOKEN is not configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"operatorToken":[]}]}},"/v1/sources/health":{"get":{"tags":["ops"],"summary":"Sources Health","description":"Per-source health from the run log's named fetch errors plus stored item attribution.\n\nSuccesses are not persisted per source, so ``last_run_reported`` distinguishes \"this run\nnamed a fetch error for the source\" from \"it did not\". The latter is not a success claim:\na source that delivered zero documents or was skipped by robots.txt also counts as\n``sources_ok``. ``consecutive_failures`` is a lower bound for the same reason — it walks\nback through runs that did not name the source and stops at the first unusable run.","operationId":"sources_health_v1_sources_health_get","parameters":[{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"the operation is not available in the row's current state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"the operator surface is disabled: NEWS_ADMIN_TOKEN is not configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"operatorToken":[]}]}},"/fxs/v4/culture/all":{"get":{"tags":["fxstreet-compat"],"summary":"Culture All","description":"The cultures we serve, in FXStreet's ``[{\"Name\": \"en-US\"}, ...]`` shape.","operationId":"culture_all_fxs_v4_culture_all_get","responses":{"200":{"description":"Successful Response","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"monthly billable-item quota exhausted; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}}},"security":[{"clientKey":[]}]}},"/fxs/v4/{culture}/tag":{"get":{"tags":["fxstreet-compat"],"summary":"Tag List","description":"Our taxonomy as FXStreet tags: ``{\"Tags\": [{\"Id\", \"Name\"}]}``.","operationId":"tag_list_fxs_v4__culture__tag_get","parameters":[{"name":"culture","in":"path","required":true,"schema":{"type":"string","title":"Culture"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"monthly billable-item quota exhausted; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[]}]}},"/fxs/v4/{culture}/tag/filter/{tag_ids}":{"get":{"tags":["fxstreet-compat"],"summary":"Tag Filter","description":"The requested tags that exist here. Unknown ids are dropped, like the post filter.","operationId":"tag_filter_fxs_v4__culture__tag_filter__tag_ids__get","parameters":[{"name":"culture","in":"path","required":true,"schema":{"type":"string","title":"Culture"}},{"name":"tag_ids","in":"path","required":true,"schema":{"type":"string","title":"Tag Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"monthly billable-item quota exhausted; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[]}]}},"/fxs/v4/{culture}/post/{rest}":{"get":{"tags":["fxstreet-compat"],"summary":"Post Route","operationId":"post_route_fxs_v4__culture__post__rest__get","parameters":[{"name":"culture","in":"path","required":true,"schema":{"type":"string","title":"Culture"}},{"name":"rest","in":"path","required":true,"schema":{"type":"string","title":"Rest"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page"}},{"name":"take","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Take"}},{"name":"bodyType","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bodytype"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Until"}},{"name":"casing","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Casing"}},{"name":"ids","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ids"}},{"name":"include","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Include"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"monthly billable-item quota exhausted; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[]}]}},"/v1/site/markets":{"get":{"tags":["site-markets"],"summary":"Markets","description":"The quote strip: every instrument a licensed source answered for, under one ETag-less\npublic cache. Never raises: an outage is an empty list with ``status: unavailable``.","operationId":"markets_v1_site_markets_get","responses":{"200":{"description":"Successful Response","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteMarkets"}}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"per-IP rate limit for the public mirror exceeded; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"keyword search is unavailable: this SQLite build has no FTS5 support","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/site/markets/{symbol}/history":{"get":{"tags":["site-markets"],"summary":"Markets History","description":"Daily observations for a chart. 404 for an unknown instrument, 400 for an unknown\nrange; an empty series is a 200, because \"the provider is down\" is not a client error.","operationId":"markets_history_v1_site_markets__symbol__history_get","parameters":[{"name":"symbol","in":"path","required":true,"schema":{"type":"string","title":"Symbol"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","description":"1D, 1W, 1M or 1Y","default":"1M","title":"Range"},"description":"1D, 1W, 1M or 1Y"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"per-IP rate limit for the public mirror exceeded; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"keyword search is unavailable: this SQLite build has no FTS5 support","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/site/storyline/{item_id}":{"get":{"tags":["site"],"summary":"Get Storyline","description":"The dated storyline behind one published story, newest first, or ``404 storyline_none``.","operationId":"get_storyline_v1_site_storyline__item_id__get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Defaults to the item's own locale","title":"Locale"},"description":"Defaults to the item's own locale"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteStoryline"}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Cache-Control":{"schema":{"type":"string","enum":["public, no-cache"]}},"ETag":{"description":"Content validator for this report's exact Timeline.","schema":{"type":"string"}},"Vary":{"description":"Accept-Encoding and Origin when applicable.","schema":{"type":"string"}}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"per-IP rate limit for the public mirror exceeded; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Timeline grouping is temporarily unavailable. The report remains readable.","headers":{"Cache-Control":{"schema":{"type":"string","enum":["no-store"]}},"Retry-After":{"description":"Seconds to wait before retrying this Timeline.","schema":{"type":"string"},"example":"5"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Cache-Control":{"schema":{"type":"string","enum":["public, no-cache"]}},"ETag":{"description":"Content validator for this report's exact Timeline.","schema":{"type":"string"}},"Vary":{"description":"Accept-Encoding and Origin when applicable.","schema":{"type":"string"}}}},"404":{"description":"The report is unavailable, or it has no qualifying Timeline.","headers":{"Cache-Control":{"schema":{"type":"string","enum":["no-store"]}}},"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SiteStorylineMissingItem"},{"$ref":"#/components/schemas/SiteStorylineNone"}],"title":"Response 404 Get Storyline V1 Site Storyline  Item Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/site/topics":{"get":{"tags":["site"],"summary":"List Topics","description":"The topic directory: every hub, its fixed description, its count in the scan.\n\n``window`` filters the counts the same way the hub page's own filter does, so the\ndirectory and the page it links to can never disagree about how busy a subject is.","operationId":"list_topics_v1_site_topics_get","parameters":[{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Counts for one locale; omit for all","title":"Locale"},"description":"Counts for one locale; omit for all"},{"name":"window","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"all | 30d | 7d | 24h","title":"Window"},"description":"all | 30d | 7d | 24h"},{"name":"view","in":"query","required":false,"schema":{"anyOf":[{"const":"leads","type":"string"},{"type":"null"}],"description":"Latest public report for each followable topic in one edition","title":"View"},"description":"Latest public report for each followable topic in one edition"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"per-IP rate limit for the public mirror exceeded; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"keyword search is unavailable: this SQLite build has no FTS5 support","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/site/topics/{slug}":{"get":{"tags":["site"],"summary":"Get Topic","description":"One subject page: the fixed intro, the stories, why each is here, and the filters.\n\nThe filters are answered HERE, in one body, so the page can be linked, shared and\nreloaded in the state the reader left it in — ``#/topic/fed?window=7d&category=macro``\nis a URL, not a client-side guess. ``counts`` reports the size of every filter\ncombination before the page is truncated, so a chip is a fact and not decoration.\n``pagination`` reports the page, page size, page count and both neighbours, so a\nreader (or a client) can walk the whole archive instead of the first page of it.","operationId":"get_topic_v1_site_topics__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One locale; omit for every locale","title":"Locale"},"description":"One locale; omit for every locale"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Defaults to 24, capped at 60","title":"Limit"},"description":"Defaults to 24, capped at 60"},{"name":"window","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"all | 30d | 7d | 24h","title":"Window"},"description":"all | 30d | 7d | 24h"},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Keep only stories from this beat","title":"Category"},"description":"Keep only stories from this beat"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"newest (default) | oldest","title":"Sort"},"description":"newest (default) | oldest"},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"1-based archive page; page 1 is page 1","title":"Page"},"description":"1-based archive page; page 1 is page 1"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["pagination"],"properties":{"pagination":{"additionalProperties":true,"properties":{"page":{"title":"Page","type":"integer"},"page_size":{"title":"Page Size","type":"integer"},"pages":{"title":"Pages","type":"integer"},"total":{"title":"Total","type":"integer"},"returned":{"title":"Returned","type":"integer"},"has_prev":{"title":"Has Prev","type":"boolean"},"has_next":{"title":"Has Next","type":"boolean"},"prev_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prev Page"},"next_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Page"},"out_of_range":{"title":"Out Of Range","type":"boolean"}},"required":["page","page_size","pages","total","returned","has_prev","has_next","prev_page","next_page","out_of_range"],"type":"object"}}}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"per-IP rate limit for the public mirror exceeded; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"keyword search is unavailable: this SQLite build has no FTS5 support","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/stream/{locale}":{"get":{"summary":"Stream","description":"``text/event-stream`` of item events for one locale. Bearer auth required.","operationId":"stream_v1_stream__locale__get","parameters":[{"name":"locale","in":"path","required":true,"schema":{"type":"string","title":"Locale"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"instrument","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Instrument"}},{"name":"last_event_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Event Id"}}],"responses":{"200":{"description":"An SSE stream: `text/event-stream`, one frame per event.","content":{"text/event-stream":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"clientKey":[]}]}},"/v1/account/otp":{"post":{"tags":["account"],"summary":"Request Code","description":"Issue and mail a sign-in code — with an answer that never depends on the account existing.\n\nThe three observable channels an enumeration probe could use are all closed:\n\n* **status and body**: one ``202 {\"status\":\"sent\"}`` for a known address, an unknown one and\n  an address whose send failed;\n* **work done**: an unknown address still pays the same three rate-limit windows and the same\n  lookup, and it answers through the same code path;\n* **latency class**: the response is produced **without waiting for SMTP** — the message is\n  rendered and handed to the send hook, never awaited. A synchronous send would make the\n  observed latency a clean existence oracle: a network round trip for a real customer against\n  microseconds for everyone else (measured on the mutant: 166.8 ms against ~2 ms).\n\nRate limits apply **before** the lookup and are keyed on the address and the client, so a\nrefused request (429) reveals nothing about the address either — an address that does not\nexist spends the same window as one that does.","operationId":"request_code_v1_account_otp_post","parameters":[{"name":"X-Requested-With","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Requested-With"}},{"name":"Accept-Language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/account/session":{"post":{"tags":["account"],"summary":"Open Session","description":"Exchange an address and its one-time code for a cookie session.","operationId":"open_session_v1_account_session_post","parameters":[{"name":"X-Requested-With","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Requested-With"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["account"],"summary":"Close Session","description":"Revoke the session server-side and clear the cookie.\n\nRevocation is the authority: the cookie is cleared as a convenience, but a replayed cookie\nvalue is refused because ``accounts.resolve_session`` reads ``revoked_at`` from the row.","operationId":"close_session_v1_account_session_delete","parameters":[{"name":"X-Requested-With","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Requested-With"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/account":{"get":{"tags":["account"],"summary":"Read Account","operationId":"read_account_v1_account_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"consoleSession":[]}]}},"/v1/account/news-bot":{"get":{"tags":["account"],"summary":"Read News Bot","description":"The account's brief, the topics it may choose from, and what the last refresh gave.\n\nReading is free and unthrottled: it is one row. The expensive half (``refresh``) is the\nthrottled route.","operationId":"read_news_bot_v1_account_news_bot_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"consoleSession":[]}]},"put":{"tags":["account"],"summary":"Write News Bot","description":"Create or replace the brief. ``prompt`` is required, ``topics`` optional.\n\nThe optional ``coverage`` boolean lets the scheduler use this brief to select an extra\npublic story. Omitting it preserves the account’s existing choice.\n\nThe same write opts the account into the emailed daily digest when ``deliver_at`` is\npresent (a minute of the UTC day, or ``null`` to turn it off); ``deliver_locale`` picks\nthe edition language. Keeping it on this route means one call cannot save a brief whose\nschedule was forgotten, and vice versa.","operationId":"write_news_bot_v1_account_news_bot_put","parameters":[{"name":"X-Requested-With","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Requested-With"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"consoleSession":[]}]},"delete":{"tags":["account"],"summary":"Delete News Bot","operationId":"delete_news_bot_v1_account_news_bot_delete","parameters":[{"name":"X-Requested-With","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Requested-With"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"consoleSession":[]}]}},"/v1/account/news-bot/refresh":{"post":{"tags":["account"],"summary":"Refresh News Bot","description":"Rank the corpus against the stored brief, under both refresh limits.\n\nReads the current feed, selected desks, and matching indexed archive stories.\nFresh coverage, when enabled and requested, is considered by the scheduler.","operationId":"refresh_news_bot_v1_account_news_bot_refresh_post","parameters":[{"name":"X-Requested-With","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Requested-With"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"consoleSession":[]}]}},"/v1/account/usage":{"get":{"tags":["account"],"summary":"Read Usage","operationId":"read_usage_v1_account_usage_get","parameters":[{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Month"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"consoleSession":[]}]}},"/v1/account/usage/statement":{"get":{"tags":["account"],"summary":"Read Statement","description":"The customer's monthly statement: billable lines, traffic and a reproducible digest.\n\nCookie-session authenticated and parameterless apart from ``month``, so it reads exactly\none customer's rows -- the same isolation argument as ``GET /v1/account/usage``, applied\nto the narrower statement (see ``app.statements`` for the query-by-customer-key-ids\ndetail). This route never calls ``_meter``: reading a bill is not billable, and the\ncustomer who needs it most is the one who has spent their quota.\n\nA month with no activity is a ``200`` with zero lines and a real digest, not a ``404``:\n\"you owe nothing this month\" is an answer an accounts-payable clerk files, and a 404\nwould be indistinguishable from a typo.","operationId":"read_statement_v1_account_usage_statement_get","parameters":[{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Month"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"consoleSession":[]}]}},"/v1/account/usage/statement.csv":{"get":{"tags":["account"],"summary":"Download Statement","description":"The same document as CSV -- the file an accounts-payable clerk actually keeps.\n\nA separate PATH rather than ``?format=csv`` on purpose: a content-negotiated arm would put\na second success content type on an operation whose JSON sibling the contract suite\nasserts is ``application/json``, and every documented route in this repo is driven by its\npath. Two paths, one builder (``statements.build``), so the file and the JSON can never\ndisagree about a number -- and the CSV's ``digest``-derived name matches the JSON's\n``statement_id``.","operationId":"download_statement_v1_account_usage_statement_csv_get","parameters":[{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Month"}}],"responses":{"200":{"description":"the statement as RFC-4180 CSV; see docs/ACCOUNT_API.md §3a","content":{"text/csv":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"consoleSession":[]}]}},"/v1/admin/accounts":{"post":{"tags":["account"],"summary":"Create Account","description":"Provision ``{\"email\",\"customer\"}``. Idempotent: a second call re-points the address.\n\nThe gate is ``keys_admin.admin_actor`` — the **same** dependency ``/v1/admin/keys`` uses,\nimported rather than copied, so provisioning can never drift from the key surface: 503 when\n``NEWS_ADMIN_TOKEN`` is unset, 401 when it is wrong, and the returned actor is the operator\nidentity recorded in the log line (never the token — that module refuses an actor header\nthat repeats it).\n\nThe body is read through :func:`_body` rather than declared as a ``dict`` parameter, for the\nsame two reasons every other route in this module does it: a FastAPI ``dict`` parameter is\nonly accepted from a request that declares itself ``application/json`` (measured: a client\nposting valid JSON with no content type got ``422 dict_type`` and the body was never\nvalidated by this module), and the explicit read lets the 4 KiB cap and the \"must be an\nobject\" refusal live in one place with the rest. The contract is about the JSON document,\nnot about a header the caller must remember to add.","operationId":"create_account_v1_admin_accounts_post","parameters":[{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"X-Admin-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Actor"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"operatorToken":[]}]},"get":{"tags":["account"],"summary":"List Accounts","description":"Every provisioned address, for the operator who has to answer \"who can sign in?\".","operationId":"list_accounts_v1_admin_accounts_get","parameters":[{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"X-Admin-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Actor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"operatorToken":[]}]}},"/v1/site/status":{"get":{"tags":["site"],"summary":"Site Status","description":"The measured snapshot as JSON. Public, keyless, conditional, 30 s of freshness.\n\nNo credential is involved, so the cache key carries ``Accept-Encoding`` rather than\n``Authorization`` and the body is hashed into a strong validator: a client polling it\nevery minute gets a 304 whenever nothing moved.","operationId":"site_status_v1_site_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/admin/keys":{"get":{"tags":["keys"],"summary":"List Keys","description":"Every key, identified by id and a digest prefix. Never the key, never the digest.","operationId":"list_keys_v1_admin_keys_get","parameters":[{"name":"customer","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"exact customer name","title":"Customer"},"description":"exact customer name"},{"name":"include_revoked","in":"query","required":false,"schema":{"type":"boolean","description":"include keys that are revoked","default":false,"title":"Include Revoked"},"description":"include keys that are revoked"},{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"YYYY-MM; defaults to the current UTC month","title":"Month"},"description":"YYYY-MM; defaults to the current UTC month"},{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"X-Admin-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Actor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"the operation is not available in the row's current state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"the operator surface is disabled: NEWS_ADMIN_TOKEN is not configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"operatorToken":[]}]},"post":{"tags":["keys"],"summary":"Create Key","description":"Issue a key. The plaintext appears here and nowhere else, ever.","operationId":"create_key_v1_admin_keys_post","parameters":[{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"X-Admin-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Actor"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"the operation is not available in the row's current state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"the operator surface is disabled: NEWS_ADMIN_TOKEN is not configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"operatorToken":[]}]}},"/v1/admin/keys/audit":{"get":{"tags":["keys"],"summary":"List Audit","description":"The credential audit trail, newest first. Read-only; reads are not themselves audited.","operationId":"list_audit_v1_admin_keys_audit_get","parameters":[{"name":"key_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"only rows for this key id","title":"Key Id"},"description":"only rows for this key id"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"X-Admin-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Actor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"the operation is not available in the row's current state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"the operator surface is disabled: NEWS_ADMIN_TOKEN is not configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"operatorToken":[]}]}},"/v1/admin/keys/{key_id}/revoke":{"post":{"tags":["keys"],"summary":"Revoke Key","description":"Revoke one key. Idempotent: the second call is a 200, not an error.","operationId":"revoke_key_v1_admin_keys__key_id__revoke_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"X-Admin-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"X-Admin-Actor","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Actor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"a query parameter failed validation; detail names the one field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"invalid or missing bearer token, or invalid admin token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"the operation is not available in the row's current state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"the operator surface is disabled: NEWS_ADMIN_TOKEN is not configured","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"operatorToken":[]}]}},"/v1/site/feed/{locale}":{"get":{"tags":["site"],"summary":"Feed","description":"The current edition for one locale — the public site's first paint.\n\nThe renderer's category chips send ``?category=X`` here exactly as they do to the paid\nroute. Without the parameter the query string was silently ignored and every chip\nrendered the same unfiltered snapshot: the public site is the product's front door, so a\nchip that does nothing is a broken page, not a cosmetic difference.\n\n``?limit=`` is declared here for the same reason: FastAPI drops a query parameter the\nhandler does not name, so ``limit=2`` used to return the default page of 50 and\n``limit=abc`` used to return a 200. It is validated by ``routes_api._limit`` — the exact\nfunction ``/v1/site/items`` and the paid routes use — so the default (50), the range\n(1..200) and the ``400`` body are one contract, not three.\n\n**No ``cursor`` here, deliberately.** ``store.latest_snapshot`` is a snapshot API (the\nnewest page bounded by a stable ``generated_at``), not a keyset paginator: it takes no\ncursor and returns a ``next_cursor`` that cannot be honoured without changing the\nenvelope or the ordering of the first paint. ``/v1/site/items`` is the paging surface\n(``store.list_items`` supports ``cursor``) and is what the docs point at. A second,\nweaker cursor on this route could duplicate or skip items between pages, which is worse\nthan no cursor at all.","operationId":"feed_v1_site_feed__locale__get","parameters":[{"name":"locale","in":"path","required":true,"schema":{"type":"string","title":"Locale"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One of the categories in /v1/meta; filters before the page is taken","title":"Category"},"description":"One of the categories in /v1/meta; filters before the page is taken"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Page size, 1..200 (default 50). Outside the range or non-integer is 400, never a silently different page","title":"Limit"},"description":"Page size, 1..200 (default 50). Outside the range or non-integer is 400, never a silently different page"},{"name":"include","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`provenance` to carry each item's per-figure record; omitted leaves the bytes unchanged","title":"Include"},"description":"`provenance` to carry each item's per-figure record; omitted leaves the bytes unchanged"},{"name":"view","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`card` strips the article-only fields (body, claims, assets.body_images, assets.title_image_prompt) that a list of cards never renders. Measured 2026-11-20: /v1/site/feed/en falls from 279606 to 105303 bytes (gzip 76785 -> 28365). Omitted/full leaves the documented item shape unchanged.","title":"View"},"description":"`card` strips the article-only fields (body, claims, assets.body_images, assets.title_image_prompt) that a list of cards never renders. Measured 2026-11-20: /v1/site/feed/en falls from 279606 to 105303 bytes (gzip 76785 -> 28365). Omitted/full leaves the documented item shape unchanged."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteFeed"}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"per-IP rate limit for the public mirror exceeded; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"keyword search is unavailable: this SQLite build has no FTS5 support","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/site/items":{"get":{"tags":["site"],"summary":"List Items","description":"Same page contract as the paid ``/v1/items``; the client uses it as the feed fallback.","operationId":"list_items_v1_site_items_get","parameters":[{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Until"}},{"name":"min_importance","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Importance"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"include","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Include"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteItemsPage"}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"per-IP rate limit for the public mirror exceeded; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"keyword search is unavailable: this SQLite build has no FTS5 support","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/site/items/{item_id}":{"get":{"tags":["site"],"summary":"Get Item","description":"One published item. A withheld id answers ``404``, exactly as the paid route does.\n\nA duplicate the migration retired answers ``410`` with the survivor named, on the same\npolicy as the paid route (``routes_api.retired_response``): one implementation, so the\npublic mirror and the paid API cannot disagree about what a retired id means.","operationId":"get_item_v1_site_items__item_id__get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteItemDetail"}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Link":{"description":"Alternate public HTML story, relative to this News origin.","schema":{"type":"string"}}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"per-IP rate limit for the public mirror exceeded; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"keyword search is unavailable: this SQLite build has no FTS5 support","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"the item was retired as a duplicate of another item; detail names the survivor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Link":{"description":"Alternate public HTML story, relative to this News origin.","schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/site/items/{item_id}/related":{"get":{"tags":["site"],"summary":"Get Related","description":"Related coverage, built by the paid router and re-stamped for the public cache.","operationId":"get_related_v1_site_items__item_id__related_get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Limit"}},{"name":"include","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Include"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"per-IP rate limit for the public mirror exceeded; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"keyword search is unavailable: this SQLite build has no FTS5 support","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/site/search":{"get":{"tags":["site"],"summary":"Search","description":"Keyword search over the same clean, published items the paid route searches.","operationId":"search_v1_site_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Until"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"include","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Include"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"per-IP rate limit for the public mirror exceeded; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"keyword search is unavailable: this SQLite build has no FTS5 support","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/site/digest/{locale}":{"get":{"tags":["site"],"summary":"Latest edition of the day's stories","operationId":"latest_digest_v1_site_digest__locale__get","parameters":[{"name":"locale","in":"path","required":true,"schema":{"type":"string","title":"Locale"}},{"name":"include","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"lead_image adds the first story's public image and credit","title":"Include"},"description":"lead_image adds the first story's public image and credit"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"per-IP rate limit for the public mirror exceeded; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"keyword search is unavailable: this SQLite build has no FTS5 support","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/site/digest/{locale}/{day}":{"get":{"tags":["site"],"summary":"One edition by UTC date","operationId":"digest_for_day_v1_site_digest__locale___day__get","parameters":[{"name":"locale","in":"path","required":true,"schema":{"type":"string","title":"Locale"}},{"name":"day","in":"path","required":true,"schema":{"type":"string","title":"Day"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"per-IP rate limit for the public mirror exceeded; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"keyword search is unavailable: this SQLite build has no FTS5 support","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/site/meta":{"get":{"tags":["site"],"summary":"Meta","description":"The public contract description: schema, locales, categories, limits.","operationId":"meta_v1_site_meta_get","responses":{"200":{"description":"Successful Response","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteMeta"}}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"per-IP rate limit for the public mirror exceeded; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"keyword search is unavailable: this SQLite build has no FTS5 support","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}}}}},"/v1/site/images/{key}":{"get":{"tags":["site"],"summary":"Get Image","description":"A generated title image, public. Bytes never change under one key: cache forever.\n\n``?w=640|1280`` serves the resized WebP variant produced when the picture was stored;\nany other value (or a variant that is not on disk) serves the original. Parsed leniently\nso a malformed width is a fallback, never a 422.\n\nThe route hands the request through to ``_image_response`` so a revalidating client\ngets its ``304`` on the same ETag a ``GET`` publishes.","operationId":"get_image_v1_site_images__key__get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"w","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"W"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}},"headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"400":{"description":"a query parameter failed validation; detail names the one field","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"per-IP rate limit for the public mirror exceeded; see Retry-After","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"},"Retry-After":{"description":"Seconds to wait before retrying (RFC 9110 §10.2.3 delay-seconds, always at least 1): until the window resets for a per-key refusal, until the next UTC month for a quota refusal (docs/API.md §4.2). Takes precedence over RateLimit's `t` when both are present. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"keyword search is unavailable: this SQLite build has no FTS5 support","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"head":{"tags":["site"],"summary":"Head Image","description":"``HEAD`` on the public mirror: the GET's headers, no body, same ETag for a 304.","operationId":"head_image_v1_site_images__key__head","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"w","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"W"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"304":{"description":"the representation is unchanged; no body is sent","headers":{"RateLimit-Policy":{"description":"The request quota policy for this key, as an RFC 8941 Structured Field List: a policy name, `q` = quota in requests, `w` = fixed window in seconds. Stable between responses (it describes the policy, not the count), so it is safe to cache. Absent when the per-key limiter is disabled or the caller has no customer identity. See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";q=60;w=60"},"RateLimit":{"description":"The quota available to this key right now, as an RFC 8941 Structured Field List: `r` = quota remaining AFTER counting this request, `t` = seconds within which no more than `r` may be spent. `r=0` means the next request in this window is refused. The per-key REQUEST budget, never the monthly item quota (`GET /v1/usage` publishes that). See docs/API.md §4.4.","schema":{"type":"string"},"example":"\"perkey\";r=42;t=17"},"X-RateLimit-Limit":{"description":"Requests allowed per key per window. Legacy spelling of RateLimit-Policy's `q`; both are emitted from one verdict. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Remaining":{"description":"Requests still allowed in the current window, after counting this one; `0` means the next request is refused. Legacy spelling of RateLimit's `r`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"42"},"X-RateLimit-Window":{"description":"Length of the fixed rate-limit window, in seconds (always 60 on this build). Legacy spelling of RateLimit-Policy's `w`. See docs/API.md §4.4.","schema":{"type":"string"},"example":"60"},"X-RateLimit-Reset":{"description":"When the current window ends and the count returns to zero, as an RFC 3339 UTC instant. Omitted when the limiter has no reset instant to report. See docs/API.md §4.4.","schema":{"type":"string"},"example":"2026-11-05T12:01:00.000000Z"}}},"404":{"description":"the item, image, run or key does not exist or is not publishable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ErrorEnvelope":{"properties":{"detail":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/QuotaDetail"}],"title":"Detail"}},"additionalProperties":true,"type":"object","required":["detail"],"title":"ErrorEnvelope","description":"Every documented error is ``{\"detail\": <sentence or 429 object>}`` (docs/API.md §8).\n\nDeclared as a pydantic model rather than a hand-written schema dict so FastAPI publishes\nONE ``components.schemas.ErrorEnvelope`` and every error arm is a ``$ref`` to it: an SDK\ngenerator then emits one error type instead of forty identical inline copies.\n\n``extra=\"allow\"`` because the platform adds keys a client must ignore, not fail on; this\nmodel describes the declaration only -- it never validates a served body (FastAPI applies\n``responses[][\"model\"]`` to the document, not to the serializer)."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"QuotaDetail":{"properties":{"error":{"type":"string","title":"Error"},"detail":{"type":"string","title":"Detail","default":""},"quota":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quota"},"used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Used"},"resets_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resets At"}},"additionalProperties":true,"type":"object","required":["error"],"title":"QuotaDetail","description":"The ``429`` body (docs/API.md §4.2): an object, never a sentence."},"SiteAssets":{"properties":{"title_image_prompt":{"type":"string","title":"Title Image Prompt"},"title_image_url":{"type":"string","title":"Title Image Url"},"title_image_srcset":{"type":"string","title":"Title Image Srcset"},"title_image_ai_generated":{"type":"boolean","title":"Title Image Ai Generated"},"title_image_alt":{"type":"string","title":"Title Image Alt"},"title_image_aspect":{"type":"string","title":"Title Image Aspect"},"title_image_credit":{"type":"string","title":"Title Image Credit"},"title_image_licence":{"type":"string","title":"Title Image Licence"},"title_image_placeholder":{"type":"string","title":"Title Image Placeholder"},"body_images":{"items":{"$ref":"#/components/schemas/SiteBodyImage"},"type":"array","title":"Body Images"},"review":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Review"},"format":{"type":"string","title":"Format"}},"additionalProperties":false,"type":"object","required":["title_image_prompt"],"title":"SiteAssets","description":"The ``assets`` block. Images live HERE, never at the item's top level.\n\nRequired: only ``title_image_prompt``. Every other member is conditional on what the\nimage seam actually served (``images.attach_title_image_urls``):\n``title_image_url`` / ``srcset`` / ``ai_generated`` / ``alt`` / ``aspect`` / ``credit``\n/ ``licence`` only when a picture is servable; ``body_images`` only when at least one\nin-story figure is; ``review``/``format`` only on a review story."},"SiteBodyImage":{"properties":{"url":{"type":"string","title":"Url"},"alt":{"type":"string","title":"Alt"},"caption":{"type":"string","title":"Caption"},"after_paragraph":{"type":"integer","title":"After Paragraph"},"aspect":{"type":"string","title":"Aspect"},"ai_generated":{"type":"boolean","title":"Ai Generated"},"credit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credit"},"licence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Licence"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"}},"additionalProperties":false,"type":"object","required":["url","alt","caption","after_paragraph","aspect","ai_generated","credit","licence"],"title":"SiteBodyImage","description":"One in-story figure (``images._entry_for``). Present only when its bytes are served."},"SiteClaim":{"properties":{"text":{"type":"string","title":"Text"},"source_span":{"type":"string","title":"Source Span"},"confidence":{"type":"number","title":"Confidence"},"paragraph_evidence_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paragraph Evidence Sha256"}},"additionalProperties":false,"type":"object","required":["text","source_span","confidence"],"title":"SiteClaim","description":"One grounded claim: the sentence, the source text it is drawn from, the confidence."},"SiteCompliance":{"properties":{"status":{"type":"string","title":"Status"},"risk_score":{"type":"number","title":"Risk Score"},"reason_codes":{"items":{"type":"string"},"type":"array","title":"Reason Codes"},"policy_version":{"type":"string","title":"Policy Version"}},"additionalProperties":false,"type":"object","required":["status","risk_score","reason_codes","policy_version"],"title":"SiteCompliance","description":"The published compliance record. A ``withheld`` row is never served, so ``status``\nis always ``\"clean\"`` on a readable payload; the vocabulary is left open by design and\nonly the four members are typed here."},"SiteCorrection":{"properties":{"earlier_text":{"type":"string","title":"Earlier Text"},"corrected_text":{"type":"string","title":"Corrected Text"},"corrected_at":{"type":"string","title":"Corrected At"}},"additionalProperties":false,"type":"object","required":["earlier_text","corrected_text","corrected_at"],"title":"SiteCorrection","description":"A confirmed newsroom notice for this exact edition."},"SiteEntities":{"properties":{"instruments":{"items":{"type":"string"},"type":"array","title":"Instruments"},"countries":{"items":{"type":"string"},"type":"array","title":"Countries"},"organizations":{"items":{"type":"string"},"type":"array","title":"Organizations"}},"additionalProperties":false,"type":"object","required":["instruments","countries","organizations"],"title":"SiteEntities","description":"All three lists are always present and may be empty (measured: 31/50 ``instruments``)."},"SiteFeed":{"properties":{"locale":{"type":"string","title":"Locale"},"generated_at":{"type":"string","title":"Generated At"},"disclaimer":{"type":"string","title":"Disclaimer"},"items":{"items":{"$ref":"#/components/schemas/SiteItem"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["locale","generated_at","disclaimer","items"],"title":"SiteFeed","description":"``/v1/site/feed/{locale}``: the current edition for one locale."},"SiteItem":{"properties":{"id":{"type":"string","title":"Id"},"schema_version":{"type":"integer","title":"Schema Version"},"locale":{"type":"string","title":"Locale"},"author":{"type":"string","title":"Author"},"ai_generated":{"type":"boolean","title":"Ai Generated"},"ai_label":{"type":"string","title":"Ai Label"},"title":{"type":"string","title":"Title"},"summary":{"type":"string","title":"Summary"},"body":{"type":"string","title":"Body"},"bullets":{"items":{"type":"string"},"type":"array","title":"Bullets"},"category":{"type":"string","title":"Category"},"importance":{"type":"number","title":"Importance"},"published_at":{"type":"string","title":"Published At"},"updated_at":{"type":"string","title":"Updated At"},"source":{"$ref":"#/components/schemas/SiteSource"},"claims":{"items":{"$ref":"#/components/schemas/SiteClaim"},"type":"array","title":"Claims"},"entities":{"$ref":"#/components/schemas/SiteEntities"},"market_data":{"anyOf":[{"$ref":"#/components/schemas/SiteMarketData"},{"type":"null"}]},"compliance":{"$ref":"#/components/schemas/SiteCompliance"},"assets":{"$ref":"#/components/schemas/SiteAssets"},"market_data_age":{"$ref":"#/components/schemas/SiteMarketDataAge"},"translations":{"additionalProperties":{"type":"string"},"type":"object","title":"Translations"},"provenance":{"$ref":"#/components/schemas/SiteProvenance"}},"additionalProperties":false,"type":"object","required":["id","schema_version","locale","author","ai_generated","ai_label","title","summary","body","bullets","category","importance","published_at","updated_at","source","claims","entities","market_data","compliance","assets","translations"],"title":"SiteItem","description":"One served story, exactly as ``/v1/site/feed/{locale}`` and ``/v1/site/items`` send it.\n\nNOT the same object as ``/v1/site/items/{item_id}``: the detail route adds\n``disclaimer``, and carries ``provenance`` unconditionally (see\n:class:`SiteItemDetail`).\n\n``provenance`` is OPTIONAL here because the list surfaces serve it only on\n``?include=provenance`` (off by default: it doubles the bytes, measured on an 80-item\npage). Measured on the live mirror 2026-11-16: a plain ``/v1/site/items`` page carries no\n``provenance`` key and an ``?include=provenance`` page carries it on every item, so the\nkey's PRESENCE is the caller's own request reflected back. A model that required it would\nreject the default page; one that omitted it would reject the opt-in page.\n\n``translations`` is read-time (``store.attach_translations``): the item's own locale\nalways maps to its own id, other locales only when a clean twin exists (measured live:\nevery English item carries ``en`` alone, a translated pair carries both)."},"SiteItemDetail":{"properties":{"id":{"type":"string","title":"Id"},"schema_version":{"type":"integer","title":"Schema Version"},"locale":{"type":"string","title":"Locale"},"author":{"type":"string","title":"Author"},"ai_generated":{"type":"boolean","title":"Ai Generated"},"ai_label":{"type":"string","title":"Ai Label"},"title":{"type":"string","title":"Title"},"summary":{"type":"string","title":"Summary"},"body":{"type":"string","title":"Body"},"bullets":{"items":{"type":"string"},"type":"array","title":"Bullets"},"category":{"type":"string","title":"Category"},"importance":{"type":"number","title":"Importance"},"published_at":{"type":"string","title":"Published At"},"updated_at":{"type":"string","title":"Updated At"},"source":{"$ref":"#/components/schemas/SiteSource"},"claims":{"items":{"$ref":"#/components/schemas/SiteClaim"},"type":"array","title":"Claims"},"entities":{"$ref":"#/components/schemas/SiteEntities"},"market_data":{"anyOf":[{"$ref":"#/components/schemas/SiteMarketData"},{"type":"null"}]},"compliance":{"$ref":"#/components/schemas/SiteCompliance"},"assets":{"$ref":"#/components/schemas/SiteAssets"},"market_data_age":{"$ref":"#/components/schemas/SiteMarketDataAge"},"translations":{"additionalProperties":{"type":"string"},"type":"object","title":"Translations"},"provenance":{"$ref":"#/components/schemas/SiteProvenance"},"disclaimer":{"type":"string","title":"Disclaimer"},"corrections":{"items":{"$ref":"#/components/schemas/SiteCorrection"},"type":"array","title":"Corrections"},"storyline_url":{"type":"string","title":"Storyline Url"}},"additionalProperties":false,"type":"object","required":["id","schema_version","locale","author","ai_generated","ai_label","title","summary","body","bullets","category","importance","published_at","updated_at","source","claims","entities","market_data","compliance","assets","translations","provenance","disclaimer"],"title":"SiteItemDetail","description":"``/v1/site/items/{item_id}``: the list item plus the single-read members."},"SiteItemsPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SiteItem"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"count":{"type":"integer","title":"Count"},"disclaimers":{"additionalProperties":{"type":"string"},"type":"object","title":"Disclaimers"},"disclaimer":{"type":"string","title":"Disclaimer"}},"additionalProperties":false,"type":"object","required":["items","next_cursor","count","disclaimers"],"title":"SiteItemsPage","description":"``/v1/site/items``: one keyset page.\n\n``next_cursor`` is ``null`` on the last page. ``disclaimers`` is the per-locale map for\nevery locale the page can speak for; ``disclaimer`` (singular) is ADDED only when the\ncaller filtered to one ``?locale=``."},"SiteMarketData":{"properties":{"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Symbol"},"price":{"type":"number","title":"Price"},"change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Change Pct"},"as_of":{"type":"string","title":"As Of"}},"additionalProperties":false,"type":"object","required":["symbol","price","change_pct","as_of"],"title":"SiteMarketData","description":"The quote attached to a story. ``null`` on an item with none (measured 42/50).\n\nThe object is also served on an item with NO quote, as a documented SENTINEL: ``symbol``\nis ``null`` and ``price`` is ``0.0`` (docs/API.md §11, and the frozen contract asserts it:\n\"market_data.symbol must be a string or null\"). That sentinel is why ``symbol`` is\nnullable -- a model requiring a string rejected every such item the moment it was driven\nthrough the app, which is exactly the drift this declaration exists to prevent."},"SiteMarketDataAge":{"properties":{"as_of":{"type":"string","title":"As Of"},"age_days":{"type":"integer","title":"Age Days"},"stale":{"type":"boolean","title":"Stale"}},"additionalProperties":false,"type":"object","required":["as_of","age_days","stale"],"title":"SiteMarketDataAge","description":"``market_data_age``: read-time, and ABSENT unless the item carries a usable quote.\n\n``store.attach_market_data_age`` states the presence rule (a null ``symbol`` is the\ndocumented no-quote sentinel and gets no age, because an age on nothing is a claim\nabout nothing), which is why the item model declares this ``NotRequired``."},"SiteMarketRow":{"properties":{"slug":{"type":"string","title":"Slug"},"symbol":{"type":"string","title":"Symbol"},"kind":{"type":"string","title":"Kind"},"price":{"type":"number","title":"Price"},"change":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Change"},"change_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Change Pct"},"as_of":{"type":"string","title":"As Of"},"cadence":{"type":"string","title":"Cadence"},"period":{"type":"string","title":"Period"},"change_basis":{"type":"string","title":"Change Basis"},"change_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change From"},"session":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"},"delayed":{"type":"boolean","title":"Delayed"},"stale":{"type":"boolean","title":"Stale"},"age_days":{"type":"integer","title":"Age Days"},"decimals":{"type":"integer","title":"Decimals"},"unit":{"type":"string","title":"Unit"},"spark":{"items":{"type":"number"},"type":"array","title":"Spark"},"source":{"type":"string","title":"Source"},"source_url":{"type":"string","title":"Source Url"},"licence":{"type":"string","title":"Licence"},"note":{"type":"string","title":"Note"},"note_zh":{"type":"string","title":"Note Zh"}},"additionalProperties":false,"type":"object","required":["slug","symbol","kind","price","change","change_pct","as_of","cadence","period","change_basis","change_from","session","delayed","stale","age_days","decimals","unit","spark","source","source_url","licence","note","note_zh"],"title":"SiteMarketRow","description":"One quote-strip row (``site_markets._item_payload``).\n\nA row exists only when its provider answered AND the value is inside the envelope the\nlabel can carry, so a missing instrument is an outage or a withhold, never a zero."},"SiteMarketSource":{"properties":{"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"},"licence":{"type":"string","title":"Licence"}},"additionalProperties":false,"type":"object","required":["name","url","licence"],"title":"SiteMarketSource"},"SiteMarkets":{"properties":{"status":{"type":"string","title":"Status"},"as_of":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"As Of"},"delayed":{"type":"boolean","title":"Delayed"},"items":{"items":{"$ref":"#/components/schemas/SiteMarketRow"},"type":"array","title":"Items"},"sources":{"items":{"$ref":"#/components/schemas/SiteMarketSource"},"type":"array","title":"Sources"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"additionalProperties":false,"type":"object","required":["status","as_of","delayed","items","sources","detail"],"title":"SiteMarkets","description":"``/v1/site/markets``: the strip. Fail-soft: an outage is an empty list, never a 5xx."},"SiteMeta":{"properties":{"schema_version":{"type":"integer","title":"Schema Version"},"api_version":{"type":"string","title":"Api Version"},"locales":{"items":{"type":"string"},"type":"array","title":"Locales"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"policy_version":{"type":"string","title":"Policy Version"},"default_locale":{"type":"string","title":"Default Locale"},"limits":{"$ref":"#/components/schemas/SiteMetaLimits"}},"additionalProperties":false,"type":"object","required":["schema_version","api_version","locales","categories","policy_version","default_locale","limits"],"title":"SiteMeta","description":"``/v1/site/meta``: the public contract description."},"SiteMetaLimits":{"properties":{"max_page_size":{"type":"integer","title":"Max Page Size"}},"additionalProperties":false,"type":"object","required":["max_page_size"],"title":"SiteMetaLimits"},"SiteProvenance":{"properties":{"version":{"type":"integer","title":"Version"},"source":{"additionalProperties":{"type":"string"},"type":"object","title":"Source"},"figures":{"items":{"$ref":"#/components/schemas/SiteProvenanceFigure"},"type":"array","title":"Figures"},"coverage":{"$ref":"#/components/schemas/SiteProvenanceCoverage"},"paragraph_claims":{"items":{"$ref":"#/components/schemas/SiteProvenanceParagraphClaim"},"type":"array","title":"Paragraph Claims"}},"additionalProperties":false,"type":"object","required":["version","source","figures","coverage"],"title":"SiteProvenance","description":"Figure verification and current paragraph links for a single-item read."},"SiteProvenanceCoverage":{"properties":{"figures":{"type":"integer","title":"Figures"},"verified":{"type":"integer","title":"Verified"},"derived":{"type":"integer","title":"Derived"},"unverified":{"type":"integer","title":"Unverified"}},"additionalProperties":false,"type":"object","required":["figures","verified","derived","unverified"],"title":"SiteProvenanceCoverage"},"SiteProvenanceFigure":{"properties":{"field":{"type":"string","title":"Field"},"offset":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offset"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"},"status":{"type":"string","title":"Status"},"span":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Span"},"claim":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Claim"},"inputs":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Inputs"},"rule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule"}},"additionalProperties":false,"type":"object","required":["field","offset","text","token","status","span","claim","inputs","rule"],"title":"SiteProvenanceFigure","description":"One figure on an item with its verification status (``app/provenance.py``)."},"SiteProvenanceParagraphClaim":{"properties":{"paragraph":{"type":"integer","title":"Paragraph"},"claim":{"type":"integer","title":"Claim"},"share_id":{"type":"string","title":"Share Id"}},"additionalProperties":false,"type":"object","required":["paragraph","claim"],"title":"SiteProvenanceParagraphClaim","description":"Zero-based indexes into the final report's paragraphs and its claims."},"SiteSource":{"properties":{"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"},"canonical_url":{"type":"string","title":"Canonical Url"},"retrieved_at":{"type":"string","title":"Retrieved At"}},"additionalProperties":false,"type":"object","required":["name","url","canonical_url","retrieved_at"],"title":"SiteSource","description":"``source``: where the story came from (``Item.to_api()``, 4 keys, always present)."},"SiteStoryline":{"properties":{"item_id":{"type":"string","title":"Item Id"},"locale":{"type":"string","title":"Locale"},"window_days":{"type":"integer","title":"Window Days"},"subject":{"type":"string","title":"Subject"},"subject_kind":{"type":"string","enum":["entity","phrase","cjk"],"title":"Subject Kind"},"kind":{"type":"string","enum":["arc","today"],"title":"Kind"},"event":{"type":"string","title":"Event"},"count":{"type":"integer","title":"Count"},"items":{"items":{"$ref":"#/components/schemas/SiteStorylineEntry"},"type":"array","title":"Items"},"disclaimer":{"type":"string","title":"Disclaimer"}},"additionalProperties":false,"type":"object","required":["item_id","locale","window_days","subject","subject_kind","kind","event","count","items","disclaimer"],"title":"SiteStoryline","description":"Dated coverage for one exact anchor and edition, newest first."},"SiteStorylineEntry":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"published_at":{"type":"string","title":"Published At"},"summary":{"type":"string","title":"Summary"},"locale":{"type":"string","title":"Locale"},"category":{"type":"string","title":"Category"},"source_name":{"type":"string","title":"Source Name"},"ai_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Label"},"image":{"$ref":"#/components/schemas/SiteStorylineImage"},"share_url":{"type":"string","title":"Share Url"}},"additionalProperties":false,"type":"object","required":["id","title","published_at","summary","locale","category","source_name","ai_label","image"],"title":"SiteStorylineEntry"},"SiteStorylineImage":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"aspect":{"type":"string","title":"Aspect"},"ai_generated":{"type":"boolean","title":"Ai Generated"}},"additionalProperties":false,"type":"object","required":["url","aspect","ai_generated"],"title":"SiteStorylineImage"},"SiteStorylineMissingItem":{"properties":{"detail":{"type":"string","const":"item not found","title":"Detail"}},"additionalProperties":false,"type":"object","required":["detail"],"title":"SiteStorylineMissingItem"},"SiteStorylineNone":{"properties":{"error":{"type":"string","const":"storyline_none","title":"Error"},"detail":{"type":"string","title":"Detail"},"minimum_items":{"type":"integer","title":"Minimum Items"},"window_days":{"type":"integer","title":"Window Days"}},"additionalProperties":false,"type":"object","required":["error","detail","minimum_items","window_days"],"title":"SiteStorylineNone"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"clientKey":{"type":"http","scheme":"bearer","bearerFormat":"API key","description":"Client API key (or an OAuth2 access token issued by the token endpoint) sent as `Authorization: Bearer <token>`. Required on every metered data route; a missing or invalid token answers 401 with `WWW-Authenticate: Bearer`. See docs/API.md section 3."},"operatorToken":{"type":"apiKey","in":"header","name":"X-Admin-Token","description":"Operator token from `NEWS_ADMIN_TOKEN`, sent in the `X-Admin-Token` header. Gates the run, health, key-admin and webhook-admin surfaces; an unset `NEWS_ADMIN_TOKEN` answers 503, never open. See docs/API.md section 2."},"consoleSession":{"type":"apiKey","in":"cookie","name":"cbn_session","description":"Customer console session cookie, set by signing in to `/v1/account/session` with the one-time code mailed to the account address. Required on the `/v1/account` reads; the cookie is HttpOnly, Secure and SameSite=Lax. See docs/ACCOUNT_API.md."}}}}