Cabinhub News API v1.0.0

Docs / Open Session

Open Session

Open Session

POST/v1/account/session
Auth
X-Requested-With: cabinhub-console (no session)
Cache-Control
no-store
Source of truth
clients/openapi.json and docs/API.md §12

Description: docs/API.md §12

Parameters

NameInRequiredTypeExampleNotes
X-Requested-Withheadernostring

Example request

curl
Shell
curl -sS -X POST \
  'https://vg.tempproject.online/v1/account/session' \
  -H "X-Requested-With: cabinhub-console" \
  -H "Content-Type: application/json" \
  -d '{"email": "desk@vg-broker.example", "code": "123456"}'
Python, standard library only
Python
import json
import os
import urllib.request

URL = "https://vg.tempproject.online/v1/account/session"


def call() -> dict:
    req = urllib.request.Request(URL, method="POST", headers={
        "X-Requested-With": "cabinhub-console",
        "Content-Type": "application/json",
    }, data=json.dumps({"email": "desk@vg-broker.example", "code": "123456"}).encode("utf-8"))
    with urllib.request.urlopen(req, timeout=15) as res:
        print(res.status, res.headers.get("Location"))
        text = res.read().decode("utf-8")
        return json.loads(text) if text else {}


if __name__ == "__main__":
    print(call())
TypeScript, Node 18+, no dependencies
TypeScript
const res = await fetch(
  "https://vg.tempproject.online/v1/account/session",
  {
    method: "POST",
    headers: {
      "x-requested-with": "cabinhub-console",
      "content-type": "application/json",
    },
    body: JSON.stringify({"email": "desk@vg-broker.example", "code": "123456"}),
  },
);
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",
  "expires_at": "2026-11-12T09:12:44.123456Z"
}

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

Failures

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