Cabinhub News API v1.0.0

Docs / Read Account

Read Account

Read Account

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

The signed-in customer's own account: the address the session was opened with, the customer name, and one row per key with its plan, quota and lifecycle. The key and its digest are not in the query that builds this list (accounts.customer_keys), so no response on this surface can carry credential material.

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/account' \
  -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"


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",
  {
    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
JSON
{
  "customer": "vg",
  "email": "desk@vg-broker.example",
  "keys": [
    {
      "id": 42,
      "prefix": "9f2c1a7b04de6c58",
      "plan": "starter",
      "monthly_quota": 45000,
      "created_at": "2026-11-04T09:12:44Z",
      "expires_at": null,
      "revoked_at": null
    }
  ]
}

Response example in docs/API.md §12 (GET /v1/account)

Failures

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