# Realtime

> widar marks AI output for the EU AI Act and California's AI Transparency Act: an invisible watermark and a signed C2PA credential on text, images, audio and video, in one API, by Bynn Intelligence.

Documentation index: https://widar.com/llms.txt

The examples in these docs use invented companies, such as Lumen Labs B.V., and invented values: none is a real check, mark, signature or certificate.

Section: API reference. URL: https://widar.com/docs/realtime

The same events as webhooks, as a server-sent event stream, for an open console, a dashboard or `widar events tail`. Resumes from the last event after a dropped connection.

Updated December 3, 2026

`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.

**Follow events**

CLI:

```bash
widar events tail --types marking.failed,install.not_reporting
```

curl:

```bash
curl -N https://api.widar.com/v1/realtime \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Accept: text/event-stream"
```

## Mint a realtime token

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.

`POST /v1/realtime/tokens`. Who may: Owner, Admin and Developer. CLI: `widar realtime token [--channels <channel,...>]`. MCP tool: `create_realtime_token`.

**Parameters**
- `channels` (array of string, default ["workspace"]): The channels. At most 20 items.

**Returns** realtime token: The token, shown once, with when it expires; it carries the key's workspace, mode and scopes.

API:

```bash
curl -X POST https://api.widar.com/v1/realtime/tokens \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar realtime token
```

MCP tool `create_realtime_token`:

```json
{
  "name": "create_realtime_token",
  "arguments": {}
}
```

## Follow the live events

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.

`GET /v1/realtime`. 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`.

**Parameters**
- `channels` (array of string, default ["workspace"]): The channels. At most 20 items.
- `types` (array of string): The types. At most 50 items.
- `last_event_id` (id (evt_)): The last event's id.

**Returns** page of events: The events after last_event_id, oldest first, each in the webhook envelope; the stream itself keeps sending as they happen.

API:

```bash
curl -X GET https://api.widar.com/v1/realtime \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar events tail
```

MCP tool `read_live_events`:

```json
{
  "name": "read_live_events",
  "arguments": {}
}
```
