{"openapi": "3.1.0", "info": {"title": "FuelRouter — Upstream Pool Failover Router API", "version": "1.0.0", "summary": "Zero-secret multi-upstream failover router with 3-state circuit breakers, free-tier quota rotation, anti-fake-200 gate, and 7d-30d cross-tenant archive cache.", "contact": {"name": "FastMesh Operations", "email": "ops@fastmesh.dev", "url": "https://fuelrouter.fastmesh.dev"}}, "servers": [{"url": "https://fuelrouter.fastmesh.dev", "description": "Production HTTPS Gateway"}], "x-fuelrouter-invariants": {"pools": ["ai_chat_json", "b2b_domain_dns_enrichment", "clean_scrape_extract", "embeddings_rerank", "web_search"], "zero_secret_mode": true, "zero_charge_on_exhaustion": true, "no_captcha_bypass": true, "no_payment_autofill": true, "ssrf_guard_enabled": true, "cache_ttl_range_days": "7d-30d"}, "paths": {"/health": {"get": {"operationId": "getHealth", "summary": "Service liveness, pool inventory, and security invariant status", "responses": {"200": {"description": "Healthy JSON response"}}}}, "/openapi.json": {"get": {"operationId": "getOpenApi", "summary": "OpenAPI 3.1.0 specification", "responses": {"200": {"description": "OpenAPI JSON"}}}}, "/v1/router/pools": {"get": {"operationId": "listRouterPools", "summary": "Inspect redacted pool health, circuit states, and sliding-window quotas", "parameters": [{"name": "pool_id", "in": "query", "required": false, "schema": {"type": "string"}}], "responses": {"200": {"description": "Redacted pool snapshot"}}}}, "/v1/router/quote": {"post": {"operationId": "quoteRouterDispatch", "summary": "Dry-run candidate ranking, cache availability, and cost estimate ($0)", "responses": {"200": {"description": "Quote response"}}}}, "/v1/router/dispatch": {"post": {"operationId": "dispatchRouterRequest", "summary": "Dispatch request with failover, anti-fake-200 gate, cache, and $0 exhaustion guarantee", "responses": {"200": {"description": "Verified response"}, "402": {"description": "Hard budget cap exceeded ($0 billed)"}, "403": {"description": "Security redline blocked ($0 billed)"}, "422": {"description": "Invalid payload ($0 billed)"}, "503": {"description": "All upstreams exhausted ($0 billed)"}}}}, "/v1/router/circuit/reset": {"post": {"operationId": "resetRouterCircuit", "summary": "Reset 3-state circuit breaker(s) to CLOSED", "responses": {"200": {"description": "Reset confirmation"}}}}, "/v1/router/metrics": {"get": {"operationId": "getRouterMetrics", "summary": "Persistent SQLite WAL routing, failover, and archive cache metrics", "responses": {"200": {"description": "Metrics snapshot"}}}}, "/webhooks/creem": {"post": {"operationId": "postCreemWebhook", "summary": "Creem HMAC-SHA256 verified webhook endpoint", "responses": {"200": {"description": "Verified redacted receipt"}, "401": {"description": "Invalid or missing signature"}}}}, "/mcp": {"post": {"operationId": "postMcpJsonRpc", "summary": "JSON-RPC 2.0 MCP endpoint (initialize, tools/list, tools/call)", "responses": {"200": {"description": "JSON-RPC 2.0 response"}}}}}}