GET /v1/realtime streams the workspace’s events as server-sent events, each with its id, so a client that reconnects with Last-Event-ID misses nothing. A browser uses a short-lived realtime token instead of a key.
widar events tail --types marking.failed,install.not_reportingPOST/v1/realtime/tokens
A short-lived token that opens the realtime channel for the channels named, so a page or a script listens without holding a secret key.
- Who may
- Owner, Admin and Developer
- CLI
widar realtime token [--channels <channel,...>]- MCP tool
create_realtime_token- Returns
- The token, shown once, with when it expires; it carries the key’s workspace, mode and scopes.
Parameters
channelsThe channels. At most 20 items.
curl -X POST https://api.widar.com/v1/realtime/tokens \
-H "Authorization: Bearer $WIDAR_API_KEY"POST /v1/realtime/tokens
GET/v1/realtime
The workspace’s events as they happen, one server-sent event each, resumed after a drop with the last event id so none is missed.
- Who may
- Owner, Admin, Compliance, Developer and Viewer
- CLI
widar events tail [--channels <channel,...>] [--types <event,...>] [--last-event-id <evt_id>]- MCP tool
read_live_events- Returns
- The events after last_event_id, oldest first, each in the webhook envelope; the stream itself keeps sending as they happen.
Parameters
channelsThe channels. At most 20 items.
typesThe types. At most 50 items.
last_event_idThe last event’s id.
curl -X GET https://api.widar.com/v1/realtime \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/realtime