Skip to content

A workspace's self-hosted runners, or a repository's: its own and the workspace's that its runner group lets it use.

GET/workspaces/{workspace}/actions/runners

Each has its labels (always self-hosted, its OS and its architecture), status (online, busy or offline), the work it is doing, its version and when it was last seen. A workspace’s are seen by its owners; a repository’s need the Admin role on it.

Name Type Required Description
workspace string Yes Instead of repo: the workspace, for the runners its repositories share.
curl https://api.g1t.sh/workspaces/flagon-io/actions/runners \
-H "Authorization: Bearer $G1T_TOKEN"

A successful request answers 200 with:

[
{
"id": "rnr_01kq2m8v4c7f0h3k6n9q2t5w8z",
"name": "build-01",
"workspace": "flagon-io",
"repo": null,
"group": "Default",
"labels": [
"self-hosted",
"linux",
"x64",
"gpu"
],
"os": "linux",
"arch": "x64",
"version": "0.2.0",
"ephemeral": false,
"status": "busy",
"work": {
"kind": "workflow",
"id": "job_01kq2m9b1d4g7j0m3p6s9v2y5b",
"name": "test (linux, 24)",
"repo": "flagon-io/hello",
"run_id": "run_01kq2m9a8c1f4h7k0n3q6t9w2z",
"started_at": "2026-10-06T14:02:11.000Z"
},
"last_seen_at": "2026-10-06T14:05:40.512Z",
"created_at": "2026-10-02T09:30:00.000Z",
"created_by": null
},
{
"id": "rnr_01kq2m8v4c7f0h3k6n9q2t5w9a",
"name": "mac-mini",
"workspace": "flagon-io",
"repo": null,
"group": "Default",
"labels": [
"self-hosted",
"macos",
"arm64"
],
"os": "macos",
"arch": "arm64",
"version": "0.2.0",
"ephemeral": false,
"status": "online",
"work": null,
"last_seen_at": "2026-10-06T14:05:40.512Z",
"created_at": "2026-10-02T09:30:00.000Z",
"created_by": 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.