Hanzo AI
OpenapiGit

List runs

Returns this org's runs, newest first.

GET /v1/git/runs

Addresshttps://api.hanzo.ai/v1/git/runs
MethodGET
Operationget_git_runs
AuthAuthorization: Bearer $HANZO_API_KEY

Returns this org's runs, newest first.

Request

2 fields.

FieldInTypeRequiredDescription
repoquerystringRepo restricts the listing to one repository.
limitqueryintegerLimit caps the answer; 0 means the default of 50, and 200 is the ceiling.

Response

StatusBodyMeaning
200git.workflowRunsok
defaultproblem-detailsrefused

200 body — 12 fields.

FieldInTypeAlwaysDescription
databodygit.workflowRun[]Data is the runs in scope, newest first.
data[].actorbodystringActor is who caused it.
data[].commitbodystringCommit is the commit being run, in full.
data[].createdAtbodyinteger (int64)CreatedAt is when the run was opened, in unix seconds.
data[].eventbodystringEvent is what caused the run, e.g.
data[].idbodystringID addresses this run.
data[].numberbodyinteger (int64)Number is the run's position in its repository, counting from 1 — the handle a person uses ("#4").
data[].refbodystringRef is the full ref, e.g.
data[].repobodystringRepo is the repository the run is for.
data[].statusbodystringStatus is waiting, running, success, failure, cancelled or skipped.
data[].updatedAtbodyinteger (int64)UpdatedAt is when its status last changed, in unix seconds.
data[].workflowbodystringWorkflow is the path of the document being run, e.g.

Failure carries the platform error shape — see Errors.

Examples

hanzo git runs list

Git API · All Hanzo APIs · Interactive reference

How is this guide?

On this page