--- title: quotes.draftFromVisit | Doing Work API description: Draft quote lines from a visit, in the worker's words and what you saw and heard. Leave out a price to look it up: the shop's own history, then its price b url: https://doingwork.work/docs/reference/quotes-draftfromvisit/ --- # quotes.draftFromVisit Draft quote lines from a visit, in the worker's words and what you saw and heard. Leave out a price to look it up: the shop's own history, then its price book, then past quotes. Every line stays a draft with its source until the worker approves, changes or rejects it (quotes.decideDraftLine). Nothing is sent. Read the returned lessons first and follow them. | | | |---|---| | Who | Agents can call this | | REST | `POST /v1/quotes/drafts` | | MCP tool | `quotes_draftFromVisit` | | Writes | yes, send an Idempotency-Key | | Area | [Shop](https://doingwork.work/docs/reference/#shop) | ## When to use it Turn what the worker said and what you saw into quote lines without ever setting a price on your own. Call quotes.draftFromVisit with lines in the worker's words. ## What to tell the owner Say what you did in plain words and what happens next. ## Input | Field | Type | Required | |---|---|---| | `visit_id` | string (uuid) | no | | `job_id` | string (uuid) | no | | `lines` | array | yes | | `lines[].description` | string | yes | | `lines[].quantity` | number | no | | `lines[].unit_price_minor` | integer | no | ## Example ```http POST https://doingwork.work/v1/quotes/drafts content-type: application/json Idempotency-Key: 3f1c... { "lines": [ { "description": "40 gallon gas heater, installed" } ] } ``` ## 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`, `invalid_token`, `rate_limited` | | Can happen on any call. See [errors](https://doingwork.work/docs/errors/). |