quotes.create
Create a quote from lines the worker wrote. Lines are never filled in by AI. Optional: good, better, best options and optional lines the customer picks when signing.
| Who | Agents can call this |
| REST | POST /v1/quotes |
| MCP tool | quotes_create |
| Writes | yes, send an Idempotency-Key |
| Area | Quotes (unlimited) |
When to use it
The worker has told you the lines and prices. Write exactly what they said. Never invent or fill in a price.
What to tell the owner
I wrote up the quote with your lines and prices. Check it before I send it.
Input
| Field | Type | Required |
|---|---|---|
job_id | string | yes |
lines | array | yes |
lines[].description | string | yes |
lines[].quantity | number | yes |
lines[].unit_price_minor | integer | yes |
lines[].option_key | string | no |
lines[].optional | boolean | no |
lines[].kind | string (one of item, fee, discount) | no |
lines[].taxable | boolean | no |
options | array | no |
options[].key | string | yes |
options[].label | string | yes |
tax_rate_id | ['string', 'null', ' ', '(', 'u', 'u', 'i', 'd', ')'] | no |
Example
POST https://doingwork.work/v1/quotes
content-type: application/json
Idempotency-Key: 3f1c...
{
"job_id": "00000000-0000-4000-8000-000000000000",
"lines": [
{
"description": "40 gallon gas heater, installed",
"quantity": "...",
"unit_price_minor": 50000
}
]
}Output
JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are {code, message, status}.
Errors
| Code | Status | What to do |
|---|---|---|
invalid_input | 400 | A field is missing, the wrong type, or unknown. The message names the field. Fix the input; don't retry as is. |
not_found | 404 | No such record, or this worker can't see it. |
invalid_input, invalid_token, rate_limited | Can happen on any call. See errors. |