Skip to content

A repository's GitHub Actions workflows, read from .g1t/workflows (GitHub's format, so a repository moves by renaming .github to .g1t) on its default branch: the events that start each, whether it is on, any problem with its file, notes on anything that runs differently on g1t, its manual-run inputs, and its last run.

GET/repos/{owner}/{name}/actions/workflows

state is active or disabled. dispatch holds the workflow_dispatch inputs, or is null when the workflow cannot be run by hand. See GitHub Actions.

Name Type Required Description
owner string Yes The workspace that owns the repository.
name string Yes The repository’s name.
curl https://api.g1t.sh/repos/flagon-io/hello/actions/workflows \
-H "Authorization: Bearer $G1T_TOKEN"

A successful request answers 200 with:

[
{
"id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
"path": ".g1t/workflows/ci.yml",
"name": "CI",
"events": [
"push",
"pull_request",
"workflow_dispatch"
],
"state": "active",
"error": null,
"notes": [
{
"severity": "unsupported",
"job": "test",
"message": "`services` containers (such as a database) are not started on g1t yet."
}
],
"dispatch": {
"debug": {
"description": "Verbose logs",
"type": "boolean",
"default": false
}
},
"last_run": {
"id": "run_01kpx7b3c6d9e2f5g8h1j4k7mr",
"workflow_id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9np",
"path": ".g1t/workflows/ci.yml",
"name": "CI",
"title": "Greeting should name the caller",
"number": 12,
"attempt": 1,
"event": "push",
"ref": "refs/heads/main",
"sha": "9f2c4e1a7b3d5f60812a4c6e8b0d2f4a6c8e0b13",
"pull": null,
"status": "completed",
"conclusion": "success",
"error": null,
"actor": "syntaqx",
"created_at": "2026-10-04T15:42:07.318Z",
"started_at": "2026-10-04T15:42:09.020Z",
"finished_at": "2026-10-04T15:44:31.877Z"
}
},
{
"id": "wfl_01kpw2c5d8e1f4g7h0j3k6m9nq",
"path": ".g1t/workflows/nightly.yml",
"name": "Nightly",
"events": [
"schedule"
],
"state": "disabled",
"error": null,
"notes": [],
"dispatch": null,
"last_run": null
}
]

A failed request answers with one of these statuses and a body like {"error": {"code": "not_found", "message": "Repository not found."}}. See errors.

Status Code When
401 unauthenticated A token is required, or the one sent is not valid.
403 forbidden The token is valid but not allowed to do this, such as a member-only change or an agent token outside its repository.
404 not_found It does not exist, or you cannot see it.
422 invalid The input is not valid. message says which field and why.