# Plugin 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/plugin-keys

A plugin key lets the installs of one system fetch its keys and report usage, and nothing else. Shown once; roll it to replace its secret, revoke it to stop its installs at their next start.

Updated December 3, 2026

- A text plugin starts with its system's plugin key, read from `WIDAR_PLUGIN_KEY`. A sidecar receives one when it enrols.
- It starts with `wd_plg_` and is shown once, when it is made or rolled. widar keeps only a hash.
- It is never an API key: it cannot read your workspace, mark through the cloud API or change anything.

**A plugin key**

```json
{
  "id": "key_5Lr8wNc2QxTj",
  "object": "plugin_key",
  "system_id": "sys_8Hn3vLp6YdQa",
  "name": "vLLM fleet ams1",
  "prefix": "wd_plg_",
  "last4": "C33f",
  "created_at": "2026-12-03T09:42:30Z",
  "created_by": "Lena Vos",
  "last_used_at": null,
  "revoked_at": null
}
```

## Create a plugin key

A restricted key for one system's installs. Its secret is shown once.

`POST /v1/plugin_keys`. Who may: Owner, Admin and Developer. CLI: `widar plugin-keys create --system-id <sys_...> --name <name>`. MCP tool: `create_plugin_key`.

**Parameters**
- `system_id` (id (sys_), required): The system its installs mark for.
- `name` (string, required): Where it runs, such as a fleet or a cluster. At most 80 characters.

**Returns** plugin key with its secret: The key, and its secret (wd_plg_) shown once.

API:

```bash
curl -X POST https://api.widar.com/v1/plugin_keys \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "system_id": "sys_8Hn3vLp6YdQa",
    "name": "vLLM fleet ams1"
  }'
```

CLI:

```bash
widar plugin-keys create \
  --system-id sys_8Hn3vLp6YdQa \
  --name 'vLLM fleet ams1'
```

MCP tool `create_plugin_key`:

```json
{
  "name": "create_plugin_key",
  "arguments": {
    "system_id": "sys_8Hn3vLp6YdQa",
    "name": "vLLM fleet ams1"
  }
}
```

Response, 201 Created:

```json
{
  "id": "key_5Lr8wNc2QxTj",
  "object": "plugin_key",
  "system_id": "sys_8Hn3vLp6YdQa",
  "name": "vLLM fleet ams1",
  "prefix": "wd_plg_",
  "last4": "C33f",
  "created_at": "2026-12-03T09:42:30Z",
  "created_by": "Lena Vos",
  "last_used_at": null,
  "revoked_at": null,
  "secret": "wd_plg_ptQE28XYkSjJEh2XRndeENGSTzrwJkOmfVjWC33f"
}
```

## List plugin keys

The restricted keys installs start with, for the workspace or one system, each shown by its start and last four characters.

`GET /v1/plugin_keys`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar plugin-keys list [--system-id <sys_...>]`. MCP tool: `list_plugin_keys`.

**Parameters**
- `system_id` (id (sys_)): Only this system's keys.

**Returns** list of plugin keys: The plugin keys, never their secrets: name, system, created by and when, last used, revoked.

API:

```bash
curl -X GET "https://api.widar.com/v1/plugin_keys?system_id=sys_8Hn3vLp6YdQa" \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar plugin-keys list --system-id sys_8Hn3vLp6YdQa
```

MCP tool `list_plugin_keys`:

```json
{
  "name": "list_plugin_keys",
  "arguments": {
    "system_id": "sys_8Hn3vLp6YdQa"
  }
}
```

## Roll a plugin key

Replace a plugin key's secret. Installs started with the old secret stop at their next start.

`POST /v1/plugin_keys/{plugin_key_id}/roll`. Who may: Owner, Admin and Developer. CLI: `widar plugin-keys roll <plugin_key_id>`. MCP tool: `roll_plugin_key`.

**Parameters**
- `plugin_key_id` (id (key_), required): The key. In the path.

**Returns** plugin key with its secret: The key with its new secret, shown once.

API:

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

CLI:

```bash
widar plugin-keys roll key_5Lr8wNc2QxTj
```

MCP tool `roll_plugin_key`:

```json
{
  "name": "roll_plugin_key",
  "arguments": {
    "plugin_key_id": "key_5Lr8wNc2QxTj"
  }
}
```

## Revoke a plugin key

Stop a plugin key at once. Installs using it can no longer fetch their marking settings, and the policy decides what happens to their outputs.

`POST /v1/plugin_keys/{plugin_key_id}/revoke`. Who may: Owner, Admin and Developer. CLI: `widar plugin-keys revoke <plugin_key_id>`. MCP tool: `revoke_plugin_key`.

**Parameters**
- `plugin_key_id` (id (key_), required): The key. In the path.

**Returns** plugin key: The key, revoked.

API:

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

CLI:

```bash
widar plugin-keys revoke key_5Lr8wNc2QxTj
```

MCP tool `revoke_plugin_key`:

```json
{
  "name": "revoke_plugin_key",
  "arguments": {
    "plugin_key_id": "key_5Lr8wNc2QxTj"
  }
}
```
