# SpendTheBits Protocol Watch

> SpendTheBits Protocol Watch is a paid API for AI agents from x402.spendthebits.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-01).

Returns recent security/status notices for a curated set of DeFi/Web3 protocols (Firelight, FAssets, Morpho, Tether, Flare) over a configurable look-back window.

## Facts

- Endpoint: GET https://x402.spendthebits.com/@superappstb/protocol-watch/?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/spendthebits-protocol-watch-bfd26999
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Sm3QS1o0f4T5-OFdBfZ7_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability spendthebits-protocol-watch-bfd26999
```

Example prompt: Check Protocol Watch for any critical or warning-level notices about Morpho from the last 7 days and summarize what's going on.

## When to prefer this

Use this endpoint when an agent needs machine-readable, curated security and status notices for a specific set of DeFi protocols (Firelight, FAssets, Morpho, Tether, Flare) with severity classification. Prefer it over generic news APIs or on-chain data feeds when you need pre-vetted incident notices with severity tagging and a configurable time window, and can handle x402 micropayment ($0.01 USDC) authentication automatically.

## Known failure modes

- Payment not sent or invalid — HTTP 402 returned requiring $0.01 USDC via x402 before content is served
- Invalid 'days' parameter (outside 1–90 range) — may return an error or fall back to default 30
- Unsupported protocol enum value — rejected by schema validation
- No notices found for the specified protocol/window — returns count:0 and empty notices array
- Endpoint temporarily unavailable — standard HTTP 5xx

## How this service works

Turn your SpendTheBits @handle into an x402-payable endpoint. AI agents pay you in USDC over HTTP 402 — machine-to-machine, no invoices, no custody.

## Output

A JSON object containing: the product name ('protocol-watch'), the list of watched protocols, the query window in days, the total notice count, and an array of notices each with id, protocol, severity (info/warn/critical), title, body text, kind (e.g. onchain), source URL, detected_at timestamp, and a 'live' boolean indicating whether the notice is currently shown to SpendTheBits users.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "days": {
       "type": "string",
       "maxLength": 2,
       "description": "How far back to look, 1 to 90 days (default 30)"
      },
      "protocol": {
       "enum": [
        "firelight",
        "fassets",
        "morpho",
        "tether",
        "flare"
       ],
       "type": "string",
       "description": "One protocol; omit for all five"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "product",
      "window_days",
      "watched",
      "count",
      "notices"
     ],
     "properties": {
      "docs": {
       "type": "string"
      },
      "as_of": {
       "type": "string"
      },
      "count": {
       "type": "integer"
      },
      "notices": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "protocol",
         "severity",
         "title"
        ],
        "properties": {
         "id": {
          "type": "string"
         },
         "body": {
          "type": "string"
         },
         "kind": {
          "type": "string"
         },
         "live": {
          "type": "boolean",
          "description": "true while the notice is shown to STB users"
         },
         "title": {
          "type": "string"
         },
         "protocol": {
          "type": "string"
         },
         "severity": {
          "enum": [
           "info",
           "warn",
           "critical"
          ],
          "type": "string"
         },
         "source_url": {
          "type": [
           "string",
           "null"
          ]
         },
         "detected_at": {
          "type": "string"
         }
        }
       }
      },
      "product": {
       "type": "string",
       "const": "protocol-watch"
      },
      "watched": {
   
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "notices": [
   {
    "id": "…",
    "body": "Worked example. Live notices are in the paid response.",
    "kind": "onchain",
    "live": false,
    "title": "Withdrawal period changed",
    "protocol": "firelight",
    "severity": "warn",
    "source_url": null,
    "detected_at": "2026-09-23T00:00:00+00:00"
   }
  ],
  "product": "protocol-watch",
  "watched": [
   "firelight",
   "fassets",
   "morpho",
   "tether",
   "flare"
  ],
  "protocol": null,
  "window_days": 30
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/spendthebits-protocol-watch-bfd26999/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.spendthebits.com](https://www.zero.xyz/host/x402.spendthebits.com/llms.txt)
