Docs / Get Run
Get Run
One run with a redacted stats projection.
GET/v1/runs/{run_id}
- Auth
- client bearer + quota
- Cache-Control
no-store- Source of truth
clients/openapi.jsonanddocs/API.md§12
The run counters plus a safe stats projection, so the run_id from 202 Accepted is actionable without exposing operator internals.
- This route is client-authenticated, so the raw run
erroranddetailblob are never returned.runs.erroris written asf"{type(exc).__name__}: {exc}"and can carry the provider base URL, a model id or an upstream status (qkfk HTTP 402); the detail blob can carry the same plus the owning pid and lock state. Those are operator material. statsis a whitelist projection of the storeddetail: the counters shown above pluserror_detailsreduced tostage,sourceandurl(the per-errorerrortext is dropped). It isnullwhen the run has no stored detail.errorisnull, or the fixed string"run failed; details withheld"when the run recorded a failure.detail_redactedistruewhen a stored detail existed and the projection above replaced it.finishedistrueunlessstatusisrunning.404 run not foundfor an unknown id.no-store. Not metered.
Description: docs/API.md §12
Parameters
| Name | In | Required | Type | Example | Notes |
|---|---|---|---|---|---|
run_id | path | yes | string | b3cd20b4cce24570858a3c5fd83a6a71 | The run_id returned by POST /v1/refresh. |
Example request
curl -sS \
'https://vg.tempproject.online/v1/runs/b3cd20b4cce24570858a3c5fd83a6a71' \
-H "Authorization: Bearer $NEWS_KEY"import json
import os
import urllib.request
URL = "https://vg.tempproject.online/v1/runs/b3cd20b4cce24570858a3c5fd83a6a71"
KEY = os.environ["NEWS_KEY"]
def call() -> dict:
req = urllib.request.Request(URL, headers={
"Authorization": f"Bearer {KEY}",
})
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/b3cd20b4cce24570858a3c5fd83a6a71",
{
method: "GET",
headers: {
authorization: `Bearer ${process.env.NEWS_KEY}`,
},
},
);
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
{
"run_id": "b3cd20b4cce24570858a3c5fd83a6a71",
"kind": "scheduled",
"status": "ok",
"started_at": "2026-11-04T20:20:00.000000Z",
"finished_at": "2026-11-04T21:26:57.317108Z",
"finished": true,
"items_seen": 511,
"items_published": 16,
"items_withheld": 1,
"error": null,
"stats": {
"fetched": 511, "deduped": 70, "extracted": 16, "translated": 8,
"published": 16, "withheld": 1, "errors": 2, "duration_s": 474.851,
"model_flags": 0, "sources_ok": 26, "sources_failed": 2, "abstained": 30,
"dry_run": false,
"error_details": [
{"stage": "fetch", "source": "Reserve Bank of Australia — Media Releases",
"url": "https://www.rba.gov.au/rss/rss-cb-media-releases.xml"}
],
"skipped_by_cap": 411, "skipped_by_budget": 0, "deferred": 411, "budget_exhausted": false
},
"detail_redacted": true
}Response example in docs/API.md §12 (GET /v1/runs/{run_id})
Failures
This operation can answer 200, 304, 400, 401, 404, 422, 429. The full envelope for each status, with its body, is on Errors.