# POST /calculators/:calculator_id/runs

**Resource:** [CALCULATORS](./calculators.md)  
**MCP tool:** `run_calculator`  
**Scopes:** `calculators:read`  
**Write operation:** yes

Run a calculator with the live version and save the run, usually onto an opportunity (opportunity_id, needs opportunities:write) where its Calculators card shows it; for a contact only (contact_id) it needs contacts:write, and on neither, calculators:write. The figures are always worked out here from the answers; send answers only. Refused when an answer is wrong or the calculator is set not to save runs from automations and the API.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `calculator_id` | path | string | yes | The calculator (list_calculators). |
| `answers` | body | object | yes | Answers by input key: { "price": 900000, "deposit": 180000, "state": "NSW" }. Every required input needs an answer or a starting value. |
| `opportunity_id` | body | string | no | Save the run onto this opportunity (its Calculators card shows it). |
| `contact_id` | body | string | no | The person it is for (default: the opportunity's contact). |
| `source` | body | string | no | team when a person on your team runs it from a screen, api otherwise (default). |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/calculators/:calculator_id/runs"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"answers":"...","opportunity_id":"...","contact_id":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`