Cabinhub News API v1.0.0

Docs / Download Statement

Download Statement

Download Statement

GET/v1/account/usage/statement.csv
Auth
cookie session
Cache-Control
no-store
Source of truth
clients/openapi.json and docs/API.md §12

The same document as CSV -- the file an accounts-payable clerk actually keeps.

A separate PATH rather than `?format=csv on purpose: a content-negotiated arm would put a second success content type on an operation whose JSON sibling the contract suite asserts is application/json, and every documented route in this repo is driven by its path. Two paths, one builder (statements.build), so the file and the JSON can never disagree about a number -- and the CSV's digest-derived name matches the JSON's statement_id`.

Description: clients/openapi.json

Parameters

NameInRequiredTypeExampleNotes
monthquerynostring2026-11YYYY-MM; defaults to the current UTC month.

Example request

curl
Shell
curl -sS \
  'https://vg.tempproject.online/v1/account/usage/statement.csv?month=2026-11' \
  -H "Cookie: cbn_session=$NEWS_SESSION"
Python, standard library only
Python
import json
import os
import urllib.request

URL = "https://vg.tempproject.online/v1/account/usage/statement.csv?month=2026-11"


def call() -> dict:
    req = urllib.request.Request(URL, headers={
        "Cookie": f"cbn_session={os.environ['NEWS_SESSION']}",
    })
    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/account/usage/statement.csv?month=2026-11",
  {
    method: "GET",
    headers: {
      cookie: `cbn_session=${process.env.NEWS_SESSION}`,
    },
  },
);
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
HTTP
cache-control: no-store
content-type: application/octet-stream

No JSON body on this route; the headers are the ones docs/API.md §2 documents for it

Failures

This operation can answer 200, 400, 401, 422. The full envelope for each status, with its body, is on Errors.