Cabinhub News API v1.0.0

Docs / Version

Version

Version

GET/v1/version
Auth
none
Cache-Control
public, max-age=30, stale-while-revalidate=150, stale-if-error=300
Validators
ETag
Source of truth
clients/openapi.json and docs/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.

Description: docs/API.md §12

Parameters

None. This route takes no path or query parameters.

Example request

curl
Shell
curl -sS \
  'https://vg.tempproject.online/v1/version'
Python, standard library only
Python
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])
TypeScript, Node 18+, no dependencies
TypeScript
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

Response body
JSON
{
  "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.