{
  "openapi": "3.1.0",
  "info": {
    "title": "Pitch Roast API",
    "version": "1.0.0",
    "description": "Paste your startup pitch. Five judges roast it, score it 1 to 10, and give one verdict and the one change that would most improve it.\n\nFree, no API key, CORS open. Fair use: about 120 requests per minute per IP. Also available as MCP tools at https://free-agent-tools.vercel.app/mcp"
  },
  "servers": [
    {
      "url": "https://pitch-roast.vercel.app"
    }
  ],
  "paths": {
    "/api/roast": {
      "get": {
        "operationId": "roastPitch",
        "summary": "Roast a startup pitch: five judges score it 1-10, one verdict, and the one change that would most improve it",
        "description": "Deterministic, transparent rubric (no AI model). Five fictional judges (Seed VC, Skeptical Customer, CTO, Your Competitor, Growth Lead) score the pitch 1-10 from signals such as a specific customer, a named pain, numbers and traction, a wedge, a distribution channel, an edge, a price, buzzword density, 'X for Y' comparisons, and unexplained blockchain. Returns each judge's roast line, the total out of 50, a verdict (FUND IT, SHARPEN IT, REWRITE IT, ROASTED, BURNT TO A CRISP), the one change worth the most points, the detected issues and strengths, and a shareable result URL with an OG image.\n\nExample: https://pitch-roast.vercel.app/api/roast?pitch=Uber%20for%20dog%20walkers%2C%20but%20on%20the%20blockchain.&stage=idea&category=marketplace",
        "parameters": [
          {
            "name": "pitch",
            "in": "query",
            "required": true,
            "description": "The pitch, one to five sentences (max 1000 characters). Alias: p.",
            "schema": {
              "type": "string",
              "description": "The pitch, one to five sentences (max 1000 characters). Alias: p."
            }
          },
          {
            "name": "stage",
            "in": "query",
            "required": false,
            "description": "Optional company stage. Later stages are judged harder on traction.",
            "schema": {
              "type": "string",
              "description": "Optional company stage. Later stages are judged harder on traction.",
              "enum": [
                "idea",
                "pre-seed",
                "seed",
                "series-a",
                "growth"
              ]
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Optional category. 'crypto' softens the blockchain penalty.",
            "schema": {
              "type": "string",
              "description": "Optional category. 'crypto' softens the blockchain penalty.",
              "enum": [
                "b2b-saas",
                "consumer",
                "marketplace",
                "devtools",
                "ai",
                "fintech",
                "health",
                "hardware",
                "climate",
                "crypto",
                "other"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Result as JSON. Always includes a `disclaimer` field.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid input. The body explains what to send and gives an example."
          },
          "429": {
            "description": "Too many requests from one IP. Retry after the Retry-After seconds."
          }
        }
      },
      "post": {
        "operationId": "roastPitchPost",
        "summary": "Roast a startup pitch: five judges score it 1-10, one verdict, and the one change that would most improve it (JSON body)",
        "description": "Deterministic, transparent rubric (no AI model). Five fictional judges (Seed VC, Skeptical Customer, CTO, Your Competitor, Growth Lead) score the pitch 1-10 from signals such as a specific customer, a named pain, numbers and traction, a wedge, a distribution channel, an edge, a price, buzzword density, 'X for Y' comparisons, and unexplained blockchain. Returns each judge's roast line, the total out of 50, a verdict (FUND IT, SHARPEN IT, REWRITE IT, ROASTED, BURNT TO A CRISP), the one change worth the most points, the detected issues and strengths, and a shareable result URL with an OG image.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "pitch"
                ],
                "properties": {
                  "pitch": {
                    "type": "string",
                    "description": "The pitch, one to five sentences (max 1000 characters). Alias: p."
                  },
                  "stage": {
                    "type": "string",
                    "description": "Optional company stage. Later stages are judged harder on traction.",
                    "enum": [
                      "idea",
                      "pre-seed",
                      "seed",
                      "series-a",
                      "growth"
                    ]
                  },
                  "category": {
                    "type": "string",
                    "description": "Optional category. 'crypto' softens the blockchain penalty.",
                    "enum": [
                      "b2b-saas",
                      "consumer",
                      "marketplace",
                      "devtools",
                      "ai",
                      "fintech",
                      "health",
                      "hardware",
                      "climate",
                      "crypto",
                      "other"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Result as JSON. Always includes a `disclaimer` field.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid input. The body explains what to send and gives an example."
          },
          "429": {
            "description": "Too many requests from one IP. Retry after the Retry-After seconds."
          }
        }
      }
    }
  }
}