# Register or import a key

> 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: Check and recover. URL: https://widar.com/docs/detection/keys

Bring the key your system already marks with. Register it for detection on every plan with shared detection, or import it on Enterprise to have content marked before you joined attributed to your system. Sent once, wrapped, never shown again.

Updated December 4, 2026

Register or import

|  | Register, for detection | Import, for attribution |
| --- | --- | --- |
| What it does | Your marks under the scheme are read on your verify page, by the API, and as a member on the public detector and the interoperable endpoint. | All of that, and content the key marked before you joined is attributed to your system. |
| Plan | Every plan, Free included | Enterprise |
| Route | `POST /v1/watermark_keys/register` | `POST /v1/watermark_keys/import` |
| Below the plan | Never refused for the plan | `402 plan_required`, naming Enterprise |

widar reads with a registered or imported key and never marks with it. A registered key can move to attribution later, on Enterprise, with no second proof.

## How it goes

1. **Start** it from the console, the API, the CLI, an SDK or the MCP server. The key is answered `awaiting_key`, with a one-time wrapping key that expires in 24 hours.
2. **Send the key once**, wrapped on your side: the console wraps it in your browser, the CLI and the SDKs on your machine. widar stores it as it stores its own keys and never answers it again.
3. **Review.** widar's staff check that the key is your company's: samples you mark with it, and your validated legal entity. The key is `in_review`, then `active` or `declined` with a reason, and `key.imported` or `key.import_declined` is sent.
4. **Active.** Your marks under the scheme are read from then on. Withdraw the key at any time to stop reading it and delete it.

**Register a key with the CLI**

```
$ widar watermark-keys register --system-id sys_5Vh8qTn2LcWr \
    --scheme vllm_watermark --key-file ./helsinki-watermark.key
Started wmk_1Bq5vYs9MtKe for Northwind Gateway (vLLM's built-in watermark, text).
Wrapped the key on this machine and sent it once.
State: in_review. widar's staff will ask for samples marked with the key.
```

> **Never paste a key into a chat or an MCP tool.** A tool's arguments pass through an AI client, so no MCP tool carries key material. The MCP server starts a registration and reports its state; an agent sends the key itself with the CLI, which reads it from a file and wraps it on the machine. No command takes a key as a flag.

## By API, CLI and MCP

### Register a key for detection

Starts registering the key a system already marks with under an external scheme, so widar reads those marks for you. On every plan that includes shared detection. Answers the key `awaiting_key` with a one-time wrapping key that expires in 24 hours.

API:

```bash
curl -X POST https://api.widar.com/v1/watermark_keys/register \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "system_id": "sys_4kT9qWm2RbXe",
    "scheme": "vllm_watermark",
    "content_type": "text"
  }'
```

CLI:

```bash
widar watermark-keys register \
  --system-id sys_4kT9qWm2RbXe \
  --scheme vllm_watermark \
  --content-type text
```

MCP tool `watermark_keys_register`:

```json
{
  "name": "watermark_keys_register",
  "arguments": {
    "system_id": "sys_4kT9qWm2RbXe",
    "scheme": "vllm_watermark",
    "content_type": "text"
  }
}
```

Every parameter and the full answer: [Register a key for detection](https://widar.com/docs/detection#register-a-key-for-detection).

### Import a key for attribution

What a registration does, and content the system marked with the key before you joined widar is attributed to the system. Enterprise and higher; below it, `402 plan_required`.

API:

```bash
curl -X POST https://api.widar.com/v1/watermark_keys/import \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "system_id": "sys_4kT9qWm2RbXe",
    "scheme": "trustmark",
    "content_type": "image",
    "attributes_from": "2025-03-01"
  }'
```

CLI:

```bash
widar watermark-keys import \
  --system-id sys_4kT9qWm2RbXe \
  --scheme trustmark \
  --content-type image \
  --attributes-from 2025-03-01
```

MCP tool `watermark_keys_import`:

```json
{
  "name": "watermark_keys_import",
  "arguments": {
    "system_id": "sys_4kT9qWm2RbXe",
    "scheme": "trustmark",
    "content_type": "image",
    "attributes_from": "2025-03-01"
  }
}
```

Every parameter and the full answer: [Import a key for attribution](https://widar.com/docs/detection#import-a-key-for-attribution).

### Move a registered key to attribution

Turns a key registered for detection into one imported for attribution, on Enterprise and higher, with no second proof of control.

API:

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

CLI:

```bash
widar watermark-keys attribute wmk_1Bq5vYs9MtKe
```

MCP tool `watermark_keys_attribute`:

```json
{
  "name": "watermark_keys_attribute",
  "arguments": {
    "watermark_key_id": "wmk_1Bq5vYs9MtKe"
  }
}
```

Every parameter and the full answer: [Move a registered key to attribution](https://widar.com/docs/detection#move-a-registered-key-to-attribution).

### Send the wrapped key

Sends the key once, wrapped on your side with the one-time wrapping key. The console wraps it in your browser; the CLI and the SDKs wrap it on your machine. No MCP tool carries key material, since a tool's arguments pass through an AI client: an agent sends it with the CLI.

API:

```bash
# Members only: a signed-in member makes this call, in the console or with the CLI signed in (widar auth login). An API key is refused with 403 key_scope_denied.
curl -X POST https://api.widar.com/v1/watermark_keys/wmk_1Bq5vYs9MtKe/material \
  -H "Content-Type: application/json" \
  -d '{
    "encrypted_key": "<encrypted_key>",
    "ciphertext": "<ciphertext>",
    "iv": "<iv>",
    "confirmation_code": "<confirmation_code>"
  }'
```

CLI:

```bash
widar watermark-keys send wmk_1Bq5vYs9MtKe \
  --confirmation-code <confirmation_code>
```

MCP tool `watermark_keys_send`:

```json
{
  "name": "watermark_keys_send",
  "arguments": {
    "watermark_key_id": "wmk_1Bq5vYs9MtKe",
    "encrypted_key": "<encrypted_key>",
    "ciphertext": "<ciphertext>",
    "iv": "<iv>",
    "confirmation_code": "<confirmation_code>"
  }
}
```

Every parameter and the full answer: [Send the key](https://widar.com/docs/detection#send-the-key).

### Read a key's review

A registered or imported key's state and its review: who at widar decided and when, and a reason if it was declined. Never the key.

API:

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

CLI:

```bash
widar watermark-keys get wmk_3Tr6pXz1HqLc
```

MCP tool `watermark_keys_get`:

```json
{
  "name": "watermark_keys_get",
  "arguments": {
    "watermark_key_id": "wmk_3Tr6pXz1HqLc"
  }
}
```

Every parameter and the full answer: [Read a registered or imported key](https://widar.com/docs/detection#read-a-registered-or-imported-key).

### Withdraw a key

Stops reading marks made with the key and deletes it. Verify pages, the public detector and the interoperable endpoint no longer find those marks.

API:

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

CLI:

```bash
widar watermark-keys withdraw wmk_1Bq5vYs9MtKe
```

MCP tool `watermark_keys_withdraw`:

```json
{
  "name": "watermark_keys_withdraw",
  "arguments": {
    "watermark_key_id": "wmk_1Bq5vYs9MtKe"
  }
}
```

Every parameter and the full answer: [Withdraw a key](https://widar.com/docs/detection#withdraw-a-key).

## Events and errors

Key events and errors

| Name | Means |
| --- | --- |
| `key.imported` | A registered or imported key is active. The payload carries its `use`. |
| `key.import_declined` | The review declined the key, with the reason. |
| `scheme_not_supported` | The scheme is not one widar reads. See [External schemes](https://widar.com/docs/detection/schemes). |
| `plan_required` | For an import, the plan is below Enterprise. |
