{
  "openapi": "3.1.0",
  "info": {
    "title": "Pitch-Anything API (ANY-B10)",
    "version": "1.0.0",
    "summary": "Verifiable Proof Teardown Microsite & Zero-Spam B2B Pitch Compiler",
    "description": "100% read-only public HTTPS GET + public DoH DNS JSON prospect diagnostics across 5 dimensions (email_deliverability, seo_geo_ai_readiness, pricing_conversion_friction, web_api_robustness, pain_thread_evidence), compiled into a zero-external-CDN standalone HTML Proof Teardown Microsite, 3 zero-spam English pitch drafts, and canonical SHA-256 verification fingerprint (`proof_sha256`). Strictly $0 billed (billed_micros=0, chargeable=false) on unreachable domains, NXDOMAIN, SSRF blocks, fake-200 shells, or zero verifiable evidence. Zero spam sending; zero prospect data resale.",
    "contact": {
      "name": "pitch-anything",
      "email": "ops@pitch.fastmesh.dev",
      "url": "https://pitch.fastmesh.dev"
    }
  },
  "servers": [
    {
      "url": "https://pitch.fastmesh.dev",
      "description": "Production HTTPS Gateway"
    },
    {
      "url": "http://127.0.0.1:8930",
      "description": "Local Upstream Instance"
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "operationId": "getHealth",
        "summary": "Service liveness, ArchiveCache stats, and Creem ledger telemetry",
        "responses": {
          "200": {
            "description": "Service is healthy"
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "operationId": "getOpenApiSpec",
        "summary": "Return this OpenAPI 3.1.0 JSON schema",
        "responses": {
          "200": {
            "description": "OpenAPI specification JSON"
          }
        }
      }
    },
    "/v1/diagnose": {
      "post": {
        "operationId": "diagnoseProspect",
        "summary": "5-dimension read-only public prospect diagnosis ($0.20 verified; $0 on failure)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "target_domain"
                ],
                "properties": {
                  "target_domain": {
                    "type": "string",
                    "example": "https://example.com"
                  },
                  "pain_post_url": {
                    "type": "string"
                  },
                  "pain_post_text": {
                    "type": "string"
                  },
                  "seller_offer": {
                    "type": "string"
                  },
                  "tenant_id": {
                    "type": "string",
                    "default": "public"
                  },
                  "bypass_cache": {
                    "type": "boolean",
                    "default": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Diagnosis envelope (billed_micros=0 if unreachable/fake-200/zero-evidence)"
          },
          "422": {
            "description": "SSRF blocked or invalid input (billed_micros=0, chargeable=false)"
          }
        }
      }
    },
    "/v1/compile-pitch": {
      "post": {
        "operationId": "compileProofPitch",
        "summary": "Compile standalone 1-page HTML Proof Teardown Microsite + 3 zero-spam pitch drafts ($1.00 verified; $0 on failure)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "target_domain"
                ],
                "properties": {
                  "target_domain": {
                    "type": "string",
                    "example": "https://fastapi.tiangolo.com"
                  },
                  "seller_offer": {
                    "type": "string"
                  },
                  "seller_name": {
                    "type": "string"
                  },
                  "cta_url": {
                    "type": "string",
                    "example": "https://pitch.fastmesh.dev/#pricing"
                  },
                  "cta_label": {
                    "type": "string"
                  },
                  "pain_post_url": {
                    "type": "string"
                  },
                  "pain_post_text": {
                    "type": "string"
                  },
                  "tenant_id": {
                    "type": "string",
                    "default": "public"
                  },
                  "bypass_cache": {
                    "type": "boolean",
                    "default": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Compiled microsite HTML/Markdown/JSON + 3 pitch drafts + proof_sha256"
          },
          "422": {
            "description": "SSRF blocked or invalid input (billed_micros=0, chargeable=false)"
          }
        }
      }
    },
    "/v1/batch-pitch": {
      "post": {
        "operationId": "batchCompileProofPitches",
        "summary": "Batch multi-prospect diagnosis & proof-teardown pipeline with per-row $0 failure shield",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "targets"
                ],
                "properties": {
                  "targets": {
                    "type": "array",
                    "items": {
                      "type": [
                        "string",
                        "object"
                      ]
                    }
                  },
                  "seller_offer": {
                    "type": "string"
                  },
                  "seller_name": {
                    "type": "string"
                  },
                  "cta_url": {
                    "type": "string"
                  },
                  "compile_microsites": {
                    "type": "boolean",
                    "default": true
                  },
                  "tenant_id": {
                    "type": "string",
                    "default": "public"
                  },
                  "bypass_cache": {
                    "type": "boolean",
                    "default": false
                  },
                  "include_csv": {
                    "type": "boolean",
                    "default": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ordered batch rows with per-row $0 protection and CSV summary"
          },
          "422": {
            "description": "Invalid targets list (billed_micros=0)"
          }
        }
      }
    },
    "/webhooks/creem": {
      "post": {
        "operationId": "creemWebhook",
        "summary": "HMAC-SHA256 verified idempotent Creem.io prepaid credit fulfillment webhook",
        "responses": {
          "200": {
            "description": "Webhook processed or idempotently replayed"
          },
          "401": {
            "description": "Invalid creem-signature header"
          },
          "503": {
            "description": "CREEM_WEBHOOK_SECRET not configured"
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "operationId": "mcpJsonRpc",
        "summary": "Native MCP JSON-RPC 2.0 endpoint (flat tools + tools_search / tools_inspect / tools_execute / tools_poll_receipt)",
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response envelope"
          }
        }
      }
    }
  }
}