{"openapi": "3.1.0", "info": {"title": "Zero-Token-Trend-Predator-Reflex API", "version": "1.0.0", "summary": "Deterministic 0-token public opportunity radar, SHA-256 Proof Card compiler, and bounded Gen-2 dry-run validator.", "description": "Pure Python 3 standard library + SQLite WAL service. Enforces llm_tokens_used=0, zero automated outbound spam (human review queue only), silent CAPTCHA skip, and strict $0 billing on zero new signals, fake-200 pages, or HTTP 422 rejections.", "contact": {"name": "FastMesh Ops", "email": "ops@fastmesh.dev", "url": "https://reflex.fastmesh.dev"}}, "servers": [{"url": "https://reflex.fastmesh.dev", "description": "Production HTTPS gateway"}, {"url": "http://127.0.0.1:9056", "description": "Local loopback server"}], "paths": {"/health": {"get": {"operationId": "getHealth", "summary": "Service liveness, 0-token invariant, SQLite WAL status, and feed telemetry", "responses": {"200": {"description": "Healthy service status"}}}}, "/openapi.json": {"get": {"operationId": "getOpenApi", "summary": "Machine-readable OpenAPI 3.1.0 specification", "responses": {"200": {"description": "OpenAPI schema"}}}}, "/v1/reflex/signals": {"get": {"operationId": "listReflexSignals", "summary": "List deterministically scored 0-token signals with category, score, and dedup filtering", "parameters": [{"name": "category", "in": "query", "schema": {"type": "string"}}, {"name": "min_score", "in": "query", "schema": {"type": "number"}}, {"name": "deduped", "in": "query", "schema": {"type": "boolean"}}, {"name": "spawn_eligible", "in": "query", "schema": {"type": "boolean"}}, {"name": "limit", "in": "query", "schema": {"type": "integer", "default": 50}}, {"name": "offset", "in": "query", "schema": {"type": "integer", "default": 0}}], "responses": {"200": {"description": "Scored signals list"}}}}, "/v1/reflex/scan": {"post": {"operationId": "runReflexScan", "summary": "Trigger 0-token scan across verified public feeds or score pasted public URLs / raw signal items ($0 on zero new signals or fake-200)", "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"url": {"type": "string"}, "urls": {"type": "array", "items": {"type": "string"}}, "payload": {"type": "object"}, "raw_text": {"type": "string"}, "items": {"type": "array", "items": {"type": "object"}}, "categories": {"type": "array", "items": {"type": "string"}}, "mode": {"type": "string", "enum": ["scan", "score_signal"]}, "min_score": {"type": "number"}, "limit": {"type": "integer"}, "dry_run": {"type": "boolean"}, "force": {"type": "boolean"}, "compile_cards": {"type": "boolean"}}}}}}, "responses": {"200": {"description": "Deterministic scan or signal score result"}, "422": {"description": "Invalid input ($0 billed)"}}}}, "/v1/reflex/review-queue": {"get": {"operationId": "listReviewQueue", "summary": "List compiled human-review Proof Cards in review_queue/ with SHA-256 hashes", "parameters": [{"name": "limit", "in": "query", "schema": {"type": "integer", "default": 50}}, {"name": "min_score", "in": "query", "schema": {"type": "number"}}, {"name": "category", "in": "query", "schema": {"type": "string"}}], "responses": {"200": {"description": "Pending human review Proof Cards"}}}}, "/v1/reflex/card/{slug}": {"get": {"operationId": "getProofCard", "summary": "Retrieve a Proof Card bundle in HTML, Markdown, or JSON format", "parameters": [{"name": "slug", "in": "path", "required": true, "schema": {"type": "string"}}, {"name": "format", "in": "query", "schema": {"type": "string", "enum": ["json", "html", "md"]}}], "responses": {"200": {"description": "Proof Card content"}, "404": {"description": "Card not found ($0 billed)"}}}}, "/v1/reflex/emit-dryrun": {"post": {"operationId": "emitDryRun", "summary": "Validate and preview bounded Gen-2 inbox target JSON without writing to real inbox_targets/", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object"}}}}, "responses": {"200": {"description": "Valid Gen-2 dry-run preview"}, "422": {"description": "Red-line policy or schema violation ($0 billed)"}}}}, "/webhooks/creem": {"post": {"operationId": "creemWebhook", "summary": "HMAC-SHA256 verified idempotent Creem payment webhook ingress", "responses": {"200": {"description": "Verified and idempotently recorded"}, "401": {"description": "Missing or invalid creem-signature"}}}}, "/mcp": {"post": {"operationId": "mcpJsonRpc", "summary": "JSON-RPC 2.0 MCP endpoint supporting initialize, tools/list, and tools/call", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object"}}}}, "responses": {"200": {"description": "JSON-RPC 2.0 response"}}}}}}
