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.

WhoAgents can call this
RESTGET /v1/corrections
MCP toolcorrections_recent
Writesno
AreaShop

When to use it

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.

What to tell the owner

Tell them what you found in plain words. Don't read back raw fields.

Input

FieldTypeRequired
shop_idstring (uuid)yes
kindstring (one of recap, quote_line, quote, task, reply, other)no
limitintegerno

Example

GET https://doingwork.work/v1/corrections?shop_id=00000000-0000-4000-8000-000000000000

Output

FieldTypeAlways there
dataarrayyes
data[].correction_idstring (uuid)yes
data[].kindstringyes
data[].actionstringyes
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_atstring (date-time)yes
lessonsarrayyes
{
  "data": [
    {
      "correction_id": "00000000-0000-4000-8000-000000000000",
      "kind": "...",
      "action": "...",
      "subject_id": "00000000-0000-4000-8000-000000000000",
      "before": "...",
      "after": "...",
      "reason": "...",
      "created_at": "..."
    }
  ],
  "lessons": [
    "..."
  ]
}

Errors

CodeStatusWhat to do
invalid_input, invalid_token, rate_limitedCan happen on any call. See errors.