{
  "openapi": "3.1.0",
  "info": {
    "title": "Pitch Report by Agentropolis",
    "version": "0.1.0",
    "summary": "One research-style pitch report: a 0–100 recruiter score on 7 criteria with reasons and top fixes, plus a rewritten 45–60s script, a 15s cut, 3 alternate hooks and recommended next steps. Packages the existing $1 score and $7 rewrite as a single $5 deliverable.",
    "contact": {
      "name": "Agentropolis",
      "url": "https://agentropolis.io"
    },
    "x-guidance": "POST {\"pitchText\":\"...\",\"targetRole\":\"optional\",\"resumeText\":\"optional\"}; pay the x402 402; read executiveSummary, score, rewrite, recommendations and nextSteps. Score-only is POST /api/score ($1). Rewrite-only is POST /api/rewrite ($7)."
  },
  "servers": [
    {
      "url": "https://seenly-pitch-kit.vercel.app"
    }
  ],
  "paths": {
    "/api/report": {
      "post": {
        "operationId": "generatePitchReport",
        "summary": "Score and rewrite a pitch as one report",
        "tags": [
          "Careers"
        ],
        "description": "$5.00 USDC per call on Base mainnet. Cards coming soon. Invalid input → 4xx before payment. Settles only on success. 10 req/min per client.",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "5.00"
          },
          "protocols": [
            {
              "x402": {}
            }
          ],
          "rails": [
            {
              "protocol": "x402",
              "version": 2,
              "scheme": "exact",
              "network": "eip155:8453",
              "networkName": "Base mainnet",
              "asset": "USDC",
              "assetAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
              "amount": "5000000",
              "priceUsd": "5.00",
              "payTo": "0xeE6239F3E17bEBe5e89F21F29D74D68CAa0d78CE",
              "facilitator": "Coinbase CDP (gas sponsored; payer needs no ETH)",
              "header": "PAYMENT-SIGNATURE"
            }
          ]
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Request"
              },
              "example": {
                "pitchText": "Hi, I'm Maya. I'm a registered nurse with seven years in critical care. As charge nurse in a medical ICU I lead a team of nine each shift, and I designed a bedside handoff checklist that cut medication handoff errors by 38 percent. I've also precepted fourteen new graduates. I'm looking for an ICU charge nurse role where safety culture matters. Let's talk.",
                "targetRole": "ICU Charge Nurse"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Pitch report",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "400": {
            "description": "invalid_request (not charged)"
          },
          "402": {
            "description": "Payment required (x402 v2 PAYMENT-REQUIRED header)"
          },
          "413": {
            "description": "too long (not charged)"
          },
          "422": {
            "description": "too short (not charged)"
          },
          "429": {
            "description": "rate_limited"
          },
          "502": {
            "description": "generation_failed (not charged)"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Request": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "pitchText"
        ],
        "properties": {
          "pitchText": {
            "type": "string",
            "minLength": 150,
            "maxLength": 4000,
            "description": "The spoken video-pitch / elevator-pitch script to score and rewrite (caller's own text)."
          },
          "resumeText": {
            "type": "string",
            "maxLength": 6000,
            "description": "Optional resume text used only to fact-check the rewrite."
          },
          "targetRole": {
            "type": "string",
            "maxLength": 120,
            "description": "Optional role the pitch targets."
          },
          "tone": {
            "type": "string",
            "description": "Optional rewrite tone (default confident)."
          },
          "goal": {
            "type": "string",
            "maxLength": 300,
            "description": "Optional rewrite goal."
          }
        }
      },
      "Result": {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "const": "pitch_report"
          },
          "title": {
            "type": "string"
          },
          "executiveSummary": {
            "type": "string"
          },
          "score": {
            "type": "object",
            "properties": {
              "overall": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100
              },
              "grade": {
                "type": "string",
                "enum": [
                  "A",
                  "B",
                  "C",
                  "D",
                  "F"
                ]
              },
              "dimensions": {
                "type": "object"
              },
              "topFixes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "betterOpeningLine": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              }
            },
            "required": [
              "overall",
              "grade",
              "topFixes"
            ]
          },
          "rewrite": {
            "type": "object",
            "properties": {
              "rewrittenScript": {
                "type": "object"
              },
              "shortScript": {
                "type": "object"
              },
              "alternateHooks": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "minItems": 3,
                "maxItems": 3
              },
              "changes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "notes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "rewrittenScript",
              "shortScript",
              "alternateHooks"
            ]
          },
          "recommendations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "nextSteps": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "pricing": {
            "type": "object"
          }
        },
        "required": [
          "object",
          "executiveSummary",
          "score",
          "rewrite",
          "recommendations"
        ]
      }
    }
  }
}