Hanzo AI
OpenapiCi

List runs

Lists recent builds: the repo, the branch, the commit and how each run ended, newest first.

GET /v1/ci/runs

Addresshttps://api.hanzo.ai/v1/ci/runs
MethodGET
Operationget_ci_runs
AuthAuthorization: Bearer $HANZO_API_KEY

Lists recent builds: the repo, the branch, the commit and how each run ended, newest first. A run names a repo, a branch and an actor, so the list is never wider than the caller — a SuperAdmin sees the fleet, an org member sees only its own org.

Request

GET /v1/ci/runs takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200ci.Executionsok
defaultproblem-detailsrefused

200 body — 21 fields.

FieldInTypeAlwaysDescription
fetchedAtbodystring (date-time)
orgsbodystring[]
reposbodyinteger (int64)
runsbodyci.Execution[]
runs[].actorbodystring
runs[].branchbodystring
runs[].conclusionbodystring
runs[].endedAtbodystring (date-time)
runs[].eventbodystring
runs[].idbodyinteger (int64)
runs[].numberbodyinteger (int64)
runs[].orgbodystring
runs[].repobodystring
runs[].shabodystring
runs[].startedAtbodystring (date-time)
runs[].statusbodystringStatus and Conclusion are BOTH required to know how a run went, and reading only one is wrong in a way that looks fine.
runs[].titlebodystring
runs[].urlbodystring
runs[].workflowbodystring
sourceErrbodystring
stalebodyboolean

Failure carries the platform error shape — see Errors.

Examples

hanzo ci runs

Ci API · All Hanzo APIs · Interactive reference

How is this guide?

On this page