# The badge

> 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: Comply and prove. URL: https://widar.com/docs/badge

A live badge for your site that says your AI content is watermarked and signed with widar and that your company is validated. Served by widar as a script, an iframe or an SVG, and off by itself when your plan lapses.

Updated December 3, 2026

Wording

| Value | The badge says | Beside it |
| --- | --- | --- |
| `watermarked_and_signed` | AI content watermarked and signed with widar | validated |
| `documents_signed` | Documents signed with widar, for a company that only signs its documents | validated |

The wording comes from that set only; free text is refused. A click opens your member page or your trust page.

## Embed it

Paste one of the three into any page on your validated domains. widar serves each embed itself, so the badge always shows its live state; a copied image would not.

**Three ways to embed**

Script:

```
<script src="https://widar.com/badge/bdg_9Qm4tWc2RnZa.js" async></script>
```

iframe:

```
<iframe src="https://widar.com/badge/bdg_9Qm4tWc2RnZa" title="widar badge"
  width="220" height="56" loading="lazy" style="border:0"></iframe>
```

SVG:

```
<a href="https://widar.com/trust/lumen-labs">
  <img src="https://widar.com/badge/bdg_9Qm4tWc2RnZa.svg" width="220" height="56"
    alt="AI content watermarked and signed with widar, validated">
</a>
```

## When it shows

- Only while your plan is active and your legal entity and domain are validated. widar serves every embed and caches it for at most 5 minutes, so the state stays live.
- Off, the script and the iframe show nothing and the SVG is an empty image. `badge.switched_off` is sent, with the reason. It comes back on by itself.
- The script and the iframe load only on the hosts you allow: your validated domains.
- No viewer data is sent to widar beyond the request itself.

**A badge's live state, no key**

curl:

```bash
curl https://api.widar.com/v1/public/badges/bdg_9Qm4tWc2RnZa
```

Answer:

```json
{
  "object": "badge_status",
  "id": "bdg_9Qm4tWc2RnZa",
  "live": true,
  "wording": "AI content watermarked and signed with widar",
  "validated": true,
  "target_url": "https://widar.com/trust/lumen-labs",
  "checked_at": "2026-12-03T09:39:00Z"
}
```

## Read your badge

The workspace's badge for its own site: whether it reads live and why, its wording from the fixed set, its style, where a click opens, the sites it shows on, its embed addresses and its views per day.

`GET /v1/badge`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar badge get`. MCP tool: `badge_get`.

**Parameters**

**Returns** badge: The badge, its live state and its embeds.

API:

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

CLI:

```bash
widar badge get
```

MCP tool `badge_get`:

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

Response, 200 OK:

```json
{
  "id": "bdg_9Qm4tWc2RnZa",
  "object": "badge",
  "on": true,
  "live": true,
  "wording": "watermarked_and_signed",
  "style": "light",
  "target": "trust_page",
  "target_url": "https://widar.com/trust/lumen-labs",
  "allowed_origins": [
    "lumenlabs.example",
    "image.lumenlabs.example"
  ],
  "checked_at": "2026-12-03T09:39:00Z",
  "switched_off_reason": null,
  "embeds": {
    "script": "https://widar.com/badge/bdg_9Qm4tWc2RnZa.js",
    "iframe": "https://widar.com/badge/bdg_9Qm4tWc2RnZa",
    "svg": "https://widar.com/badge/bdg_9Qm4tWc2RnZa.svg"
  }
}
```

## Change your badge

Turn the badge on or off, pick its wording and style from the fixed set, choose whether a click opens the member page or the trust page, and set the validated domains it shows on. There is no free text, so it states facts only.

`PATCH /v1/badge`. Who may: Owner, Admin and Compliance. CLI: `widar badge update [--on <true|false>] [--wording <watermarked_and_signed|documents_signed>] [--style <light|dark|outline>] [--target <member_page|trust_page>] [--domains <domain,...>]`. MCP tool: `badge_update`.

**Parameters**
- `on` (boolean): The badge on or off. On shows it only while it is live.
- `wording` (enum): `watermarked_and_signed`: "AI content watermarked and signed with widar". `documents_signed`: "Documents signed with widar". Both carry "validated".
- `style` (enum): `light` or `dark`. One of `light`, `dark`, `outline`.
- `target` (enum): Where a click goes: `member_page` or `trust_page`, which must be live.
- `domains` (array of string): The validated domains the script and the iframe render on. At most 20 items.

**Returns** badge: The badge, changed.

API:

```bash
curl -X PATCH https://api.widar.com/v1/badge \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "on": true,
    "wording": "watermarked_and_signed",
    "target": "trust_page"
  }'
```

CLI:

```bash
widar badge update \
  --on \
  --wording watermarked_and_signed \
  --target trust_page
```

MCP tool `badge_update`:

```json
{
  "name": "badge_update",
  "arguments": {
    "on": true,
    "wording": "watermarked_and_signed",
    "target": "trust_page"
  }
}
```

## Read a badge's live state

Whether a badge reads live now, with its wording and the page it opens. No key: the badge's script, iframe and SVG read it. Off, it answers no wording and an embed shows nothing.

`GET /v1/public/badges/{badge_id}`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar badge status <badge_id>`. MCP tool: `badge_status`.

**Parameters**
- `badge_id` (id (bdg_), required): The badge. In the path.

**Returns** badge status: Live or not, its two lines, validated, the page it opens and when it was checked.

API:

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

CLI:

```bash
widar badge status bdg_9Qm4tWc2RnZa
```

MCP tool `badge_status`:

```json
{
  "name": "badge_status",
  "arguments": {
    "badge_id": "bdg_9Qm4tWc2RnZa"
  }
}
```

Response, 200 OK:

```json
{
  "object": "badge_status",
  "id": "bdg_9Qm4tWc2RnZa",
  "live": true,
  "wording": "AI content watermarked and signed with widar",
  "validated": true,
  "target_url": "https://widar.com/trust/lumen-labs",
  "checked_at": "2026-12-03T09:39:00Z"
}
```

## Events

Badge events

| Event | When |
| --- | --- |
| `badge.switched_off` | The badge stopped showing: the plan lapsed, or a validation expired. The payload says which. |
