Hanzo
OpenapiAgents

Returns the readable build of one product: the agent session that produced it,…

Returns the readable build of one product: the agent session that produced it, turn by turn — the prompts, the reasoning, the commits each turn produced —…

GET /v1/agents/builds/{org}/{project}

Addresshttps://api.hanzo.ai/v1/agents/builds/{org}/{project}
MethodGET
Operationget_agents_builds_by_org_by_project
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the readable build of one product: the agent session that produced it, turn by turn — the prompts, the reasoning, the commits each turn produced — plus the exact git log that re-derives every commit binding from git itself, so nothing here has to be taken on trust.

PUBLIC, no tenancy: it answers only for a session its author explicitly published, which is what makes it safe to be anonymous. An unpublished session is invisible here no matter who asks; its owner reads it through the org-scoped /v1/agents/sessions routes, which need a validated principal.

Request

2 fields.

FieldInTypeRequiredDescription
orgpathstringyesOrg is the org that published the build, from the path.
projectpathstringyesProject is the product's slug, from the path.

Response

StatusBodyMeaning
200buildViewok

200 body — 19 fields.

FieldInTypeAlwaysDescription
agentbodystringAgent is the label the surface that did the work calls itself by.
endedAtbodystringEndedAt is when it finished, same format.
modelbodystringModel is the model that did the work, taken from the FIRST turn whose body names one — a transcript states it, this route does not resolve it.
orgbodystringOrg is the org that published this build, echoed from the URL.
projectbodystringProject is the product's slug, the other half of that address.
repobodystringRepo is the repository the work was done in, as the session reported it.
sessionbodystringSession is the id of the agent session this story IS — the same value a produced commit carries in its Hanzo-Session: trailer, which is what ties the…
startedAtbodystringStartedAt is when the session opened, RFC 3339 in UTC.
statusbodystringStatus is the session's own: running, paused, done or error.
titlebodystringTitle is the human line the session was opened or renamed with.
turnsbodybuildTurn[]Turns is the whole transcript, oldest first, capped at 1000: a published build is a story to read down, not an archive to page.
turns[].actorbodystringActor is who took the turn.
turns[].atbodystringAt is when the turn was recorded, RFC 3339 in UTC to the second.
turns[].bodybodystringBody is the readable text of the turn, taken from the stored event's text.
turns[].commitbodystringCommit is the full sha this turn produced, empty when the turn changed nothing.
turns[].kindbodystringKind is what the turn was, from the log's closed six: message, tool-call, spawn, log, status, control.
turns[].subjectbodystringSubject is that commit's subject line, from the same transcript, so a reader sees what the commit says without fetching the repository.
turns[].turnbodyintegerSeq is this turn's POSITION in the session's log — monotonic from 1, per session — and it is what a commit's Hanzo-Turn: trailer names.
verifybodystringVerify is the exact command that re-derives every commit binding below straight from git, so nothing here has to be taken on trust.

Failure carries the platform error shape — see Errors.

Examples

hanzo agents builds org get <org> <project>

Agents API · All Hanzo APIs · Interactive reference

How is this guide?

On this page