# GET /opportunities/:opportunity_id/job-costing

**Resource:** [JOB_COSTING](./job-costing.md)  
**MCP tool:** `get_job_costing`  
**Scopes:** `job-costing:read`  
**Write operation:** no

Job costing for one opportunity (a customer job): what was quoted against what it is costing. quoted: contract value (the quote lines), variations (extra work added after the job was won), estimated cost (the supplier cost lines on each product) and estimated margin. actual: labour hours and labour cost (time logged on the job times each person's cost per hour; people with no cost rate are listed in people_without_a_cost_rate), materials cost (purchase orders bought for the job), total cost and margin (labour cost, total cost and margin are pay information: null without the job costing write permission, hours and materials cost stay). billing: invoiced and paid so far, how much of the contract has been claimed (claimed_percent, left_to_claim), and retention held, released and outstanding. lines: each quote line with its value, estimated cost, whether it is a variation, and how far it has been claimed. Free read.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `opportunity_id` | path | string | yes | UUID of the opportunity (the job), from list_opportunities. |

## Request example

```bash
curl   "https://api.trustpager.com/functions/v1/api/v1/opportunities/:opportunity_id/job-costing"   -H "Authorization: Bearer YOUR_API_KEY"
```

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