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.jsonanddocs/API.md§12
200and aSet-Cookie: cbn_session=...; HttpOnly; Secure; SameSite=Lax; Path=/v1/accountheader. The body names the account the cookie now addresses.- The body is
{"email": "<address>", "code": "<six digits>"}. 401 {"detail":"invalid_code"}for a wrong, expired or already-used code (one answer for three causes);429when the code has spent its five tries;400for the missing console header or a malformed address.
Description: docs/API.md §12
Parameters
| Name | In | Required | Type | Example | Notes |
|---|---|---|---|---|---|
X-Requested-With | header | no | string |
Example request
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"}'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())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
{
"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.