{"openapi": "3.1.0", "info": {"title": "Watch-Anything Semantic Change Monitoring API & MCP Server", "version": "1.0.0", "description": "Developer & AI-Agent polymorphic change monitoring across 6 target types (pricing_page, changelog_rss, github_release, dns_tls, sec_json_api, jobs_product). Features anti-fake-200 Cloudflare circuit breaker ($0 billed & baseline preserved), cross-tenant shared fetch deduplication, 0-100 urgency scoring, and HMAC-SHA256 webhooks.", "contact": {"email": "watch@fastmesh.dev", "url": "https://watch.fastmesh.dev"}}, "servers": [{"url": "https://watch.fastmesh.dev", "description": "Production HTTPS Gateway"}, {"url": "http://127.0.0.1:8928", "description": "Local Engine"}], "paths": {"/health": {"get": {"operationId": "getHealth", "summary": "Service health, target types, shared fetch pool & archive cache telemetry", "responses": {"200": {"description": "Healthy"}}}}, "/openapi.json": {"get": {"operationId": "getOpenApiSpec", "summary": "OpenAPI 3.1.0 JSON schema", "responses": {"200": {"description": "OpenAPI document"}}}}, "/v1/diff/compare": {"post": {"operationId": "watchCompare", "summary": "Stateless Try-Now denoised diff & urgency evaluation (baseline vs current or live URL probe)", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object"}}}}, "responses": {"200": {"description": "Structured semantic diff report with sha256_proof and optional webhook preview"}, "422": {"description": "Invalid input or SSRF-blocked URL (charged_micros=0)"}}}}, "/v1/watches": {"post": {"operationId": "registerWatch", "summary": "Register a persistent watch target with optional HMAC-SHA256 webhook", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object"}}}}, "responses": {"201": {"description": "Watch created"}, "422": {"description": "Invalid input or SSRF-blocked URL"}}}, "get": {"operationId": "listWatches", "summary": "List active watches (webhook secrets redacted)", "parameters": [{"name": "tenant_id", "in": "query", "required": false, "schema": {"type": "string"}}, {"name": "active", "in": "query", "required": false, "schema": {"type": "boolean"}}], "responses": {"200": {"description": "Watch list"}}}}, "/v1/watches/{watch_id}": {"get": {"operationId": "getWatch", "summary": "Get details for one registered watch", "parameters": [{"name": "watch_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Watch record"}, "404": {"description": "Not found"}}}, "delete": {"operationId": "deleteWatch", "summary": "Deactivate a registered watch", "parameters": [{"name": "watch_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Watch deactivated"}, "404": {"description": "Not found"}}}}, "/v1/watches/{watch_id}/check": {"post": {"operationId": "checkWatch", "summary": "Execute a cross-tenant deduplicated check with anti-fake-200 protection & HMAC webhook dispatch", "parameters": [{"name": "watch_id", "in": "path", "required": true, "schema": {"type": "string"}}], "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object"}}}}, "responses": {"200": {"description": "Check event & webhook delivery status"}, "404": {"description": "Not found"}}}}, "/v1/events": {"get": {"operationId": "listEvents", "summary": "Query recorded change & suppression events", "parameters": [{"name": "watch_id", "in": "query", "required": false, "schema": {"type": "string"}}, {"name": "tenant_id", "in": "query", "required": false, "schema": {"type": "string"}}, {"name": "severity", "in": "query", "required": false, "schema": {"type": "string"}}, {"name": "limit", "in": "query", "required": false, "schema": {"type": "integer"}}], "responses": {"200": {"description": "Event list"}}}}, "/v1/dead-letters": {"get": {"operationId": "listDeadLetters", "summary": "Inspect permanent webhook delivery failures stored in dead-letter queue", "parameters": [{"name": "watch_id", "in": "query", "required": false, "schema": {"type": "string"}}, {"name": "limit", "in": "query", "required": false, "schema": {"type": "integer"}}], "responses": {"200": {"description": "Dead-letter entries"}}}}, "/v1/wallet/{tenant_id}": {"get": {"operationId": "getTenantWallet", "summary": "Check tenant never-expiring prepaid credit balance in micros", "parameters": [{"name": "tenant_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Wallet balance"}}}}, "/webhooks/creem": {"post": {"operationId": "handleCreemWebhook", "summary": "Creem HMAC-SHA256 webhook receiver with idempotent tenant credit settlement", "responses": {"200": {"description": "Processed"}, "401": {"description": "Invalid creem-signature"}}}}, "/mcp": {"post": {"operationId": "handleMcpJsonRpc", "summary": "Native JSON-RPC 2.0 MCP server (initialize, tools/list, tools/call)", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object"}}}}, "responses": {"200": {"description": "JSON-RPC 2.0 response"}}}}}}