Work item

Report on a work item

Updated Dec 2, 2026

POST/work-items/{number}/activities

A report from whoever works on the work item. Each type needs its own fields:

typeNeedsWhenThen
progressrun_id, textthe run is the active onekeeps the run alive
questionrun_id, textas aboveneeds_decision until a person answers
spec_ready, plan_readyrun_id, and markdown or document_idas above, at that stagethe document is linked; the next stage is ready if the goal lies further, else a person reviews
pr_openedrun_id, urlas above, at stage buildin_review
pr_mergedurlin_reviewcompleted
pr_closedurlin_reviewneeds_decision
failedrun_id, textthe run is the active oneneeds_decision
releasedrun_idas aboveready again
notetextalwaysnothing 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

AuthorizationstringHeaderrequired
Bearer <token>

Authorization: Bearer YOUR_API_KEY. /v2 accepts no other method.

Parameters

Path

numberintegerrequired

Request body required

application/json
typeenum<string>required
Allowed values"progress""question""spec_ready""plan_ready""pr_opened""pr_merged""pr_closed""failed""released""note"
run_idinteger

The run_id the claim returned.

textstring

Markdown.

maxLength: 10000
markdownstring

The 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_idinteger

An existing document of this workspace, instead of markdown.

urlstring

The pull request.

maxLength: 2048
repositorystring
Example: "acme/app"
maxLength: 255
pr_numberinteger
branchstring
maxLength: 255
agentstring

Your own name, shown with the entry.

maxLength: 64

Responses

OK

statusstring
dataobject