corrections.recent
The shop's recent corrections to drafts you made, newest first: what was changed or rejected and why. Read these before you draft a quote, a recap or a reply for this shop, and follow them. A field worker sees the full rows of their own; recap and quote drafts already carry the whole shop's lessons, with no names.
| |
|---|
| Who | Agents can call this |
| REST | GET /v1/corrections |
| MCP tool | corrections_recent |
| Writes | no |
| Area | 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
Tell them what you found in plain words. Don't read back raw fields.
| Field | Type | Required |
|---|
shop_id | string (uuid) | yes |
kind | string (one of recap, quote_line, quote, task, reply, other) | no |
limit | integer | no |
Example
GET https://doingwork.work/v1/corrections?shop_id=00000000-0000-4000-8000-000000000000
Output
| Field | Type | Always there |
|---|
data | array | yes |
data[].correction_id | string (uuid) | yes |
data[].kind | string | yes |
data[].action | string | yes |
data[].subject_id | ['string', 'null', ' ', '(', 'u', 'u', 'i', 'd', ')'] | yes |
data[].before | ['object', 'string', 'null'] | yes |
data[].after | ['object', 'string', 'null'] | yes |
data[].reason | ['string', 'null'] | yes |
data[].created_at | string (date-time) | yes |
lessons | array | yes |
{
"data": [
{
"correction_id": "00000000-0000-4000-8000-000000000000",
"kind": "...",
"action": "...",
"subject_id": "00000000-0000-4000-8000-000000000000",
"before": "...",
"after": "...",
"reason": "...",
"created_at": "..."
}
],
"lessons": [
"..."
]
}
Errors
| Code | Status | What to do |
|---|
invalid_input, invalid_token, rate_limited | | Can happen on any call. See errors. |