Admin Live Stream

Server-Sent Events stream of platform activity for the real-time admin dashboard. Pushes a JSON event every 2 seconds with a snapshot of: pending render jobs, done-this-hour count, listener subscriptions in last 5 min, sent rewards count, article-summary backlog, and the cost-guardrail headline number.

Cheap by design — each tick is a handful of COUNT() queries on indexed columns, ~5ms each. Browser clients hold an EventSource open; we close after 60s so a forgotten tab doesn't pin a Postgres connection forever (client auto-reconnects).

EventSource can't set custom headers, so the admin token is accepted from either the X-Storyflo-Email-Token header (canonical) or the ?token= query string (browser SSE clients).

get/v1/admin/live

Request

  • Base URL: https://api.storyflo.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.storyflo.com/v1/admin/live
  • Auth: none declared

Query parameters

tokenstring nullable

Headers

x-storyflo-email-tokenstring nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.