Cabinhub News API v1.0.0

Docs / One edition by UTC date as a branded HTML email

One edition by UTC date as a branded HTML email

One edition by UTC date as a branded HTML email

GET/v1/digest/{locale}/email/{day}
Auth
client bearer + quota
Cache-Control
no-store
Source of truth
clients/openapi.json and docs/API.md §12

One UTC day's edition as the same branded HTML email. 404 when that day is empty.

Use get_digest_email(locale, day=None) in Python or getDigestEmail(locale, day?) in TypeScript. Both return the rendered HTML as a string. Omit the date for the latest edition. Fetching this preview uses the client's item quota and sends no email.

Account News brief SDK

OperationPythonTypeScript
Read the saved brief and delivery stateget_news_bot()getNewsBot()
Save brief and optional schedulesave_news_bot(prompt, ...)saveNewsBot({prompt, ...})
Refresh its matched storiesrefresh_news_bot(locale)refreshNewsBot(locale)
Remove the signed-in account’s briefdelete_news_bot()deleteNewsBot()

These methods use the account session cookie. A session 401 requires a fresh sign-in. Omit deliver_at to preserve the schedule and paused state, including when changing the delivery edition. Send null to turn daily email off, or send a UTC minute from 0 to 1439 to schedule or resume it. An invalid schedule leaves the saved brief and coverage consent intact.

Description: docs/API.md §12

Parameters

NameInRequiredTypeExampleNotes
localepathyesstringenA well-formed locale tag. Read the supported set from GET /v1/meta → locales.
daypathyesstring2026-11-03UTC date, YYYY-MM-DD.

Example request

curl
Shell
curl -sS \
  'https://vg.tempproject.online/v1/digest/en/email/2026-11-03' \
  -H "Authorization: Bearer $NEWS_KEY"
Python, standard library only
Python
import json
import os
import urllib.request

URL = "https://vg.tempproject.online/v1/digest/en/email/2026-11-03"
KEY = os.environ["NEWS_KEY"]


def call() -> dict:
    req = urllib.request.Request(URL, headers={
        "Authorization": f"Bearer {KEY}",
    })
    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/digest/en/email/2026-11-03",
  {
    method: "GET",
    headers: {
      authorization: `Bearer ${process.env.NEWS_KEY}`,
    },
  },
);
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, 401, 422, 429. The full envelope for each status, with its body, is on Errors.