Docs / List Runs
List Runs
Recent pipeline runs (operator).
GET/v1/runs
- Auth
- X-Admin-Token
- Cache-Control
no-store- Source of truth
clients/openapi.jsonanddocs/API.md§12
Recent run rows, newest first, without the full pipeline-detail blob.
| Parameter | Default | Bounds |
|---|---|---|
limit | 20 | 1..200 |
duration_secondsis computed fromstarted_at/finished_at;nullwhile a run isrunningor when the timestamps cannot be parsed.sources_ok/sources_failed/errorscome from the stored detail blob and arenullwhen it has none (an orphaned row, a run closed because it lost the lock race).detail_availablesays plainly which case it is — do not readnullas zero.statusisrunning | ok | error | partial.no-store. Admin token only: a client bearer is refused (see §3.5).
Description: docs/API.md §12
Parameters
| Name | In | Required | Type | Example | Notes |
|---|---|---|---|---|---|
limit | query | no | integer | 2 | how many recent runs to return (1-200) |
X-Admin-Token | header | no | string | Operator token (NEWS_ADMIN_TOKEN). A client bearer is refused here. |
Example request
curl -sS \
'https://vg.tempproject.online/v1/runs?limit=2' \
-H "X-Admin-Token: $NEWS_ADMIN_TOKEN"import json
import os
import urllib.request
URL = "https://vg.tempproject.online/v1/runs?limit=2"
def call() -> dict:
req = urllib.request.Request(URL, headers={
"X-Admin-Token": os.environ["NEWS_ADMIN_TOKEN"],
})
with urllib.request.urlopen(req, timeout=15) as res:
print(res.status, res.headers.get("ETag"))
return json.loads(res.read().decode("utf-8"))
if __name__ == "__main__":
body = call()
print(json.dumps(body, indent=2, ensure_ascii=False)[:2000])const res = await fetch(
"https://vg.tempproject.online/v1/runs?limit=2",
{
method: "GET",
headers: {
"x-admin-token": process.env.NEWS_ADMIN_TOKEN!,
},
},
);
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(res.headers.get("etag"), await res.json());The requests are generated from the path template and the parameters in clients/openapi.json, so a new parameter appears here without an edit to this site.
Example response
{
"limit": 3,
"count": 3,
"runs": [
{
"run_id": "c0ffee00d15a4c1e8b2a3f4d5e6f7a8b",
"kind": "manual",
"status": "running",
"started_at": "2026-11-04T20:55:00.000000Z",
"finished_at": null,
"duration_seconds": null,
"items_seen": 0,
"items_published": 0,
"items_withheld": 0,
"error": null,
"sources_ok": null,
"sources_failed": null,
"errors": null,
"detail_available": false
},
{
"run_id": "b3cd20b4cce24570858a3c5fd83a6a71",
"kind": "scheduled",
"status": "ok",
"started_at": "2026-11-04T20:20:00.000000Z",
"finished_at": "2026-11-04T21:26:57.317108Z",
"duration_seconds": 4017.317,
"items_seen": 511,
"items_published": 16,
"items_withheld": 1,
"error": null,
"sources_ok": 26,
"sources_failed": 2,
"errors": 2,
"detail_available": true
}
]
}Response example in docs/API.md §12 (GET /v1/runs)
Failures
This operation can answer 200, 400, 401, 404, 409, 422, 503. The full envelope for each status, with its body, is on Errors.