Docs / Version
Version
Version
- Auth
- none
- Cache-Control
public, max-age=30, stale-while-revalidate=150, stale-if-error=300- Validators
ETag- Source of truth
clients/openapi.jsonanddocs/API.md§12
Which contract this host serves, and which release is serving it. Keyless and cached for 30 seconds: a client whose key is wrong, expired or not yet issued can still read it, which is the whole point — the client that needs to know "is this my bug or your deploy" is exactly the one whose credential just stopped working. See docs/VERSIONING.md.
apiis the servedMAJOR.MINOR.PATCH; a breaking change bumps it and serves the old prefix beside the new one (never in place of it).spec_revisionis a digest of the contract, not of the build: two hosts agree on it exactly when their paths, operations, parameters, request bodies and schemas agree. A deploy that only changes code does not move it; a route added, renamed or re-described does.spec_digest_scopesays what is inside it in words.buildis{"sha", "built_at"}for the release that is serving, written by the deploy at release creation (BUILD_INFO, beside the release'sbackend/).built_atis the UTC instant the release was staged, second precision. The whole object isnullwhen the deployment recorded nothing — never a placeholder — andbuilt_atisnullon a release that recorded only its commit. Never branch on it: it is a support and monitoring aid, not a contract feature.deprecationslists every route under a removal notice as{"path", "method", "since", "removal", "note"}; empty today. A client can fail its own build when a route it calls appears here instead of discovering it from a404later.- No key, no metering,
public, max-age=30with anETag. The body carries no filesystem path, hostname or key — that is a test (backend/tests/test_version_view.py), not a policy.
Description: docs/API.md §12
Parameters
None. This route takes no path or query parameters.
Example request
curl -sS \
'https://vg.tempproject.online/v1/version'import json
import os
import urllib.request
URL = "https://vg.tempproject.online/v1/version"
def call() -> dict:
req = urllib.request.Request(URL, headers={})
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/version",
{
method: "GET",
headers: {},
},
);
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
{
"api": "1.0.0",
"spec_revision": "sha256:af32b08752a0927e1c2b5e3d59b347b4",
"spec_digest_scope": "openapi paths, operations, parameters, request bodies and schemas; info.version only",
"build": {"sha": "23c9bd3a1f4d0c62e5b7a9d1c3e5f70819b2d4c6", "built_at": "2026-11-12T09:41:07Z"},
"deprecations": [],
"deprecation_policy": "each entry names a route under notice with its since/removal dates; see the published versioning policy"
}Response example in docs/API.md §12 (GET /v1/version)
Failures
This operation can answer 200, 304. The full envelope for each status, with its body, is on Errors.