{"openapi":"3.1.0","info":{"title":"x402 API Profitability Analyzer","description":"Monte Carlo simulation + Bazaar benchmark for API revenue forecasting","version":"2.0.0"},"paths":{"/analyze":{"post":{"summary":"Analyze","operationId":"analyze_analyze_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyzeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyzeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/project":{"post":{"summary":"Project Endpoint","operationId":"project_endpoint_project_post","parameters":[{"name":"months","in":"query","required":false,"schema":{"type":"integer","default":12,"title":"Months"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyzeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Project Endpoint Project Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/benchmark":{"get":{"summary":"Benchmark","operationId":"benchmark_benchmark_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Benchmark Benchmark Get"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AnalyzeRequest":{"properties":{"agents":{"type":"integer","title":"Agents"},"calls_per_day":{"type":"number","title":"Calls Per Day"},"price":{"type":"number","title":"Price"},"retention":{"type":"number","title":"Retention"},"fixed_cost":{"type":"number","title":"Fixed Cost"},"variable_rate":{"type":"number","title":"Variable Rate"}},"type":"object","required":["agents","calls_per_day","price","retention","fixed_cost","variable_rate"],"title":"AnalyzeRequest"},"AnalyzeResponse":{"properties":{"monthly_revenue":{"type":"number","title":"Monthly Revenue"},"monthly_profit":{"type":"number","title":"Monthly Profit"},"breakeven_calls":{"type":"number","title":"Breakeven Calls"},"montecarlo":{"type":"object","title":"Montecarlo"},"risk_score":{"type":"number","title":"Risk Score"},"market_context":{"type":"object","title":"Market Context"}},"type":"object","required":["monthly_revenue","monthly_profit","breakeven_calls","montecarlo","risk_score","market_context"],"title":"AnalyzeResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}