---
title: "Run a repair-or-replace analysis"
method: POST
path: "/calculator/run"
tags: ["Calculator"]
---

# Run a repair-or-replace analysis

`POST /calculator/run`

## Request

- Base URL: `https://okchvaccalculator.com/api/v1`
- URL: `https://okchvaccalculator.com/api/v1/calculator/run`
- Auth: none declared

Runs the decision engine and returns a recommendation. Estimates only. Final diagnosis, equipment recommendations, availability, and pricing require an on-site evaluation.

## Request body

- CalculatorInput
  - `systemType` string, required
  - `issueType` string, required
  - `safetyFlags` string[]
  - `isAfterHours` boolean
  - `systemAge` integer, nullable
  - `priorRepairs` string
  - `repairCostInput` number, nullable
  - `repairCostType` string, nullable
  - `replaceCostInput` number, nullable
  - `replaceCostType` string, nullable
  - `efficiency` string, nullable
  - `homeSize` number, nullable
  - `utilityBill` string, nullable

## Response `200`

Decision result with disclaimer and optional safety hard-stop

## Other responses

- `422`: Validation error
- `429`: Rate limited

---

[API](https://skmtc.dev/okchvaccalculator/apis/okc-hvac-calculator-api.md) · [All operations](https://skmtc.dev/okchvaccalculator/apis/okc-hvac-calculator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/okchvaccalculator/apis/okc-hvac-calculator-api/revisions/100188e7ab22?raw)
