Report on a work item
Updated Dec 2, 2026
POST
/work-items/{number}/activitiesA report from whoever works on the work item. Each type needs its own fields:
type | Needs | When | Then |
|---|---|---|---|
progress | run_id, text | the run is the active one | keeps the run alive |
question | run_id, text | as above | needs_decision until a person answers |
spec_ready, plan_ready | run_id, and markdown or document_id | as above, at that stage | the document is linked; the next stage is ready if the goal lies further, else a person reviews |
pr_opened | run_id, url | as above, at stage build | in_review |
pr_merged | url | in_review | completed |
pr_closed | url | in_review | needs_decision |
failed | run_id, text | the run is the active one | needs_decision |
released | run_id | as above | ready again |
note | text | always | nothing changes |
A report repeated after a timeout (the same type, run and content as the last one) answers with the first entry and changes nothing, so retrying is safe. progress is always recorded.
Authorization
AuthorizationstringHeaderrequiredBearer <token>Authorization: Bearer YOUR_API_KEY. /v2 accepts no other method.
Parameters
Path
numberintegerrequiredRequest body required
application/jsontypeenum<string>requiredAllowed values
"progress""question""spec_ready""plan_ready""pr_opened""pr_merged""pr_closed""failed""released""note"run_idintegerThe run_id the claim returned.
textstringMarkdown.
maxLength: 10000markdownstringThe spec or plan, up to 2MB. A later delivery of the same stage saves a new version of the same document. Not with document_id.
document_idintegerAn existing document of this workspace, instead of markdown.
urlstringThe pull request.
maxLength: 2048repositorystringExample: "acme/app"
maxLength: 255pr_numberintegerbranchstringmaxLength: 255agentstringYour own name, shown with the entry.
maxLength: 64Responses
OK
statusstringdataobject