# Watermark keys

> 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: Mark and sign. URL: https://widar.com/docs/watermark-keys

widar issues one watermark key per system and content type and keeps a copy. A key is never shown to anyone; rotating it retires the old one, whose marks are still read.

Updated December 3, 2026

- One active key per system and content type, issued when the system or the content type is added.
- The key itself never appears in an answer, a log or the console. Installs receive it wrapped for them and hold it in memory only.
- Rotating makes a new key active and retires the old one: never used to mark again, still read, so every mark made with it keeps checking. Installs pick up the new key within 15 minutes. `key.rotated` follows.
- A key reported compromised is retired at once, and findings it produces carry a warning with the date.
- A key your system already marks with under another scheme, such as vLLM's built-in watermark, can be [registered for detection or imported](https://widar.com/docs/detection/keys). widar reads with it and never marks with it.

**A watermark key**

```json
{
  "id": "wmk_5Dj8sLq1VnRt",
  "object": "watermark_key",
  "system_id": "sys_4kT9qWm2RbXe",
  "content_type": "image",
  "state": "active",
  "created_at": "2026-09-30T07:00:00Z",
  "rotated_at": "2026-09-30T07:00:00Z",
  "retired_at": null,
  "compromised": false
}
```

## List watermark keys

A system's watermark keys by content type, with their state and when each was created and rotated. Never the key itself.

`GET /v1/systems/{system_id}/watermark_keys`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar watermark-keys list <system_id>`. MCP tool: `list_watermark_keys`.

**Parameters**
- `system_id` (id (sys_), required): The system. In the path.

**Returns** list of watermark keys: The keys' ids, content types, states (active, retired) and dates; the keys themselves are never answered.

API:

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

CLI:

```bash
widar watermark-keys list sys_4kT9qWm2RbXe
```

MCP tool `list_watermark_keys`:

```json
{
  "name": "list_watermark_keys",
  "arguments": {
    "system_id": "sys_4kT9qWm2RbXe"
  }
}
```

Response, 200 OK:

```json
{
  "items": [
    {
      "id": "wmk_5Dj8sLq1VnRt",
      "object": "watermark_key",
      "system_id": "sys_4kT9qWm2RbXe",
      "content_type": "image",
      "state": "active",
      "created_at": "2026-09-30T07:00:00Z",
      "rotated_at": "2026-09-30T07:00:00Z",
      "retired_at": null,
      "compromised": false
    },
    {
      "id": "wmk_9Kp2fHz7XcWm",
      "object": "watermark_key",
      "system_id": "sys_4kT9qWm2RbXe",
      "content_type": "image",
      "state": "retired",
      "created_at": "2025-11-26T09:22:00Z",
      "rotated_at": null,
      "retired_at": "2026-09-30T07:00:00Z",
      "compromised": false
    }
  ],
  "next_cursor": null
}
```

## Rotate a watermark key

Replace a content type's active watermark key. The old key is retired: never used to mark again, and still read.

`POST /v1/watermark_keys/{watermark_key_id}/rotate`. Who may: Owner and Admin. CLI: `widar watermark-keys rotate <watermark_key_id>`. MCP tool: `rotate_watermark_key`.

**Parameters**
- `watermark_key_id` (id (wmk_), required): The active key to replace. In the path.

**Returns** watermark key rotation: The retired key and the new active one, by id; the key itself is never answered.

API:

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

CLI:

```bash
widar watermark-keys rotate wmk_5Dj8sLq1VnRt
```

MCP tool `rotate_watermark_key`:

```json
{
  "name": "rotate_watermark_key",
  "arguments": {
    "watermark_key_id": "wmk_5Dj8sLq1VnRt"
  }
}
```

Response, 201 Created:

```json
{
  "id": "wmk_5Dj8sLq1VnRt",
  "object": "watermark_key",
  "system_id": "sys_4kT9qWm2RbXe",
  "content_type": "image",
  "state": "active",
  "created_at": "2026-09-30T07:00:00Z",
  "rotated_at": "2026-09-30T07:00:00Z",
  "retired_at": null,
  "compromised": false
}
```
