{"openapi": "3.1.0", "info": {"title": "Zero-Employee SaaS Factory", "version": "1.0.0", "description": "Zero-Employee SaaS Factory (zero-employee-saas-factory): 4-Stage Clean-Room Micro-SaaS Factory (Evolve -> Compile -> Rank 50-Page SEO/GEO -> Watch Pricing Diff). Enforces >=5.0x savings and >=75.0% gross margin with strictly $0 billed on rejected, invalid, SSRF-blocked, fake-200, or 0-change runs."}, "servers": [{"url": "https://factory.fastmesh.dev"}], "paths": {"/health": {"get": {"operationId": "health", "summary": "Service health, stage status, cache stats, and ledger stats", "responses": {"200": {"description": "Healthy service payload"}}}}, "/openapi.json": {"get": {"operationId": "openapi_spec", "summary": "OpenAPI 3.1.0 schema document", "responses": {"200": {"description": "OpenAPI JSON"}}}}, "/v1/factory/presets": {"get": {"operationId": "list_presets", "summary": "List verified incumbent SaaS unbundling presets loaded from intel matrix", "responses": {"200": {"description": "Catalog preset list"}}}}, "/v1/factory/unbundle": {"post": {"operationId": "factory_unbundle", "summary": "Stage 1 (Evolve): Parse SaaS pricing URL/HTML/spec and enforce >=5x savings & >=75% gross margin", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"url": {"type": "string"}, "incumbent_slug": {"type": "string"}, "competitor_spec": {"type": "object"}, "html_content": {"type": "string"}, "no_cache": {"type": "boolean"}}}}}}, "responses": {"200": {"description": "Verified unbundle blueprint"}, "422": {"description": "Refused by business gate, SSRF guard, fake-200 guard, or invalid input ($0 billed)"}}}}, "/v1/factory/compile-replacement": {"post": {"operationId": "factory_compile_replacement", "summary": "Stage 2 (Compile): Generate runnable standalone clean-room micro-SaaS project", "responses": {"200": {"description": "Compiled clean-room micro-SaaS bundle"}, "422": {"description": "Refused by business gate or invalid input ($0 billed)"}}}}, "/v1/factory/generate-seo-50": {"post": {"operationId": "factory_generate_seo_50", "summary": "Stage 3 (Rank): Compile 50 substantive English HTML+MD comparison pages with valid JSON-LD & 0 broken links", "responses": {"200": {"description": "Generated 50-page SEO/GEO pack with integrity report"}, "422": {"description": "Refused by business gate or invalid input ($0 billed)"}}}}, "/v1/factory/watch-snapshot": {"post": {"operationId": "factory_watch_snapshot", "summary": "Stage 4 (Watch): Persist pricing snapshot & detect structured changes ($0 on 0-change runs)", "responses": {"200": {"description": "Watch snapshot diff result ($0 when changed=false)"}, "422": {"description": "SSRF blocked, fake-200 rejected, or invalid snapshot ($0 billed)"}}}}, "/v1/factory/full-build": {"post": {"operationId": "factory_full_build", "summary": "Run complete 4-stage pipeline: Evolve -> Compile -> Rank (50 pages) -> Watch baseline", "responses": {"200": {"description": "Full 4-stage factory build output"}, "422": {"description": "Refused by business gate or validation ($0 billed)"}}}}, "/webhooks/creem": {"post": {"operationId": "creem_webhook", "summary": "HMAC-SHA256 verified idempotent Creem webhook settlement", "responses": {"200": {"description": "Event processed idempotently"}, "401": {"description": "Invalid creem-signature HMAC digest"}, "503": {"description": "Webhook secret not configured"}}}}, "/mcp": {"post": {"operationId": "mcp_jsonrpc", "summary": "JSON-RPC 2.0 MCP endpoint (initialize, tools/list, tools/call)", "responses": {"200": {"description": "JSON-RPC 2.0 response envelope"}}}}}, "x-creem-skus": [{"sku_id": "sku_f05_single_build_149", "creem_product_id": "PENDING_CREEM_PROD_F05_SINGLE_149", "name": "Single Micro-SaaS Build", "price_usd": 149.0, "price_cents": 14900, "credits": 1, "billing_type": "onetime", "description": "Full 4-stage clean-room micro-SaaS build, 50-page SEO/GEO pack, and competitor pricing watcher."}, {"sku_id": "sku_f05_founder_pack_399", "creem_product_id": "PENDING_CREEM_PROD_F05_FOUNDER_399", "name": "Founder 5-Build Pack", "price_usd": 399.0, "price_cents": 39900, "credits": 5, "billing_type": "onetime", "description": "Five full 4-stage clean-room micro-SaaS builds with 250 comparison pages and continuous price-change alerts."}, {"sku_id": "sku_f05_venture_unlimited_999", "creem_product_id": "PENDING_CREEM_PROD_F05_VENTURE_999", "name": "Venture Factory Unlimited", "price_usd": 999.0, "price_cents": 99900, "credits": 50, "billing_type": "onetime", "description": "High-volume portfolio license for clean-room micro-SaaS compilation, SEO/GEO publishing, and competitor monitoring."}]}