Docs / Read Account
Read Account
Read Account
GET/v1/account
- Auth
- cookie session
- Cache-Control
no-store- Source of truth
clients/openapi.jsonanddocs/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.
401 {"detail":"not_signed_in"}when there is nocbn_sessioncookie, or the session has expired or was revoked. The row is read on every call, so a replayed cookie value is refused after sign-out even though the browser still holds it.prefixis the 16-hex slice of the key digest, the same non-reversible handle/v1/admin/keysexposes; it is not the key.expires_atandrevoked_atarenullfor a live, non-expiring key.- The cookie is the only input: no header, query string or body can name an account, so a caller cannot address another customer by guessing an id.
Description: docs/API.md §12
Parameters
None. This route takes no path or query parameters.
Example request
curl -sS \
'https://vg.tempproject.online/v1/account' \
-H "Cookie: cbn_session=$NEWS_SESSION"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])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
{
"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.