Hanzo
OpenapiAgents

Completes a claimed run: it delivers the terminal result to the run's durable…

Completes a claimed run: it delivers the terminal result to the run's durable owner, which is what lets that workflow finish.

POST /v1/agents/targets/{id}/runs/{runId}/report

Addresshttps://api.hanzo.ai/v1/agents/targets/{id}/runs/{runId}/report
MethodPOST
Operationpost_agents_targets_by_id_runs_by_runid_report
AuthAuthorization: Bearer $HANZO_API_KEY

Completes a claimed run: it delivers the terminal result to the run's durable owner, which is what lets that workflow finish. Scoped to (org, target, run) and claim-key authenticated, so a machine can only ever report a run it legitimately holds. Idempotent — a report for an unknown or already-finished run answers delivered:false rather than failing, because the session's terminal state was already set by the machine's own stream.

Request

10 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesID is the machine reporting, from the path.
runIdpathstringyesRunID is the routed run being completed, from the path.
branchbodystringBranch, CommitSha and Diffstat describe what the run produced; Error is the failure when OK is false.
changedbodybooleanChanged says whether the run produced any commit.
commitShabodystringCommitSha is the tip the run pushed, clamped to 128 characters.
diffstatbodystringDiffstat is the run's own summary of what it changed, as text, clamped to 64 KiB.
errorbodystringError is why the run failed, clamped to 64 KiB.
idbodystringID is the machine reporting, from the path.
okbodybooleanOK is whether the run succeeded; Changed whether it produced any commit.
runIdbodystringRunID is the routed run being completed, from the path.

Response

StatusBodyMeaning
200reportOutok

200 body — 1 field.

FieldInTypeAlwaysDescription
deliveredbodybooleanDelivered is true when a waiting durable owner received this result.

Failure carries the platform error shape — see Errors.

Examples

hanzo agents targets runs report <id> <runId>

Agents API · All Hanzo APIs · Interactive reference

How is this guide?

On this page