# Policies

> 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/policies

A system's policy says what is marked and how: per content type the watermark, the credential and the timestamp, what the credential says, the classifier, signing, recovery and failure. Versioned.

Updated December 3, 2026

You draft the next version, compare it with the one in force, and publish it. Every output marked from then on points to the new version; publishing an older version again makes it the next one. A draft changes nothing.

- `version` (integer): 1, 2, 3 and on. Every mark record carries the version that made it.
- `state` (enum): `draft`, `published` (in force) or `superseded`.
- `per_type` (object): Per content type: `watermark`, `credential` and `timestamp`, each on or off.
- `assertions` (object): What the credential says: AI-generated, the system's name and version, the time, a unique id.
- `classifier` (object): Whether Classify is on, and per output class `mark` or `leave_unmarked`. See [Classify](https://widar.com/docs/classify).
- `signing_mode` (enum): `cloud`, `remote_signer` or `customer_key`. See [Sign](https://widar.com/docs/sign).
- `recovery` (boolean): Keep each manifest so a stripped credential can be shown again. On by default.
- `on_failure` (enum): `fail_closed`, the default, holds back an output that cannot be marked; `fail_open` serves it unmarked and counts it.
- `unsupported_format` (enum): `refuse`, or `pass_unmarked` for a format that cannot carry a credential.
- `text_records` (boolean): Keep a record per text output, its hash and length only. Off by default.
- `change_summary` (string): What changed from the version before, in plain words.

**A policy**

```json
{
  "id": "pol_6Bv1xQr8TzHc",
  "object": "policy",
  "system_id": "sys_4kT9qWm2RbXe",
  "version": 3,
  "state": "published",
  "created_at": "2026-11-18T14:02:00Z",
  "created_by": "Amira Haddad",
  "published_at": "2026-11-19T08:04:00Z",
  "published_by": "Sanne Bakker",
  "change_summary": "Visible label on images served in the EU; animated GIFs are refused rather than passed unmarked.",
  "per_type": {
    "image": {
      "watermark": true,
      "credential": true,
      "timestamp": true
    }
  },
  "assertions": {
    "ai_generated": true,
    "system_name": true,
    "system_version": true,
    "created_time": true,
    "unique_id": true
  },
  "classifier": {
    "on": true,
    "source_code": "leave_unmarked",
    "machine_only": "leave_unmarked",
    "prose": "mark",
    "media": "mark",
    "unclear": "mark"
  },
  "signing_mode": "cloud",
  "recovery": true,
  "on_failure": "fail_closed",
  "unsupported_format": "refuse",
  "text_records": false
}
```

## List policy versions

Every version of a system's policy, newest first: the one in force, a draft if there is one, and those it replaced.

`GET /v1/systems/{system_id}/policies`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar policies list <system_id>`. MCP tool: `list_policy_versions`.

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

**Returns** list of policies: The versions, newest first, each with its state (draft, in force, superseded), who made it, when, and what changed.

API:

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

CLI:

```bash
widar policies list sys_4kT9qWm2RbXe
```

MCP tool `list_policy_versions`:

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

Response, 200 OK:

```json
{
  "items": [
    {
      "id": "pol_6Bv1xQr8TzHc",
      "object": "policy",
      "system_id": "sys_4kT9qWm2RbXe",
      "version": 3,
      "state": "published",
      "created_at": "2026-11-18T14:02:00Z",
      "created_by": "Amira Haddad",
      "published_at": "2026-11-19T08:04:00Z",
      "published_by": "Sanne Bakker",
      "change_summary": "Visible label on images served in the EU; animated GIFs are refused rather than passed unmarked.",
      "per_type": {
        "image": {
          "watermark": true,
          "credential": true,
          "timestamp": true
        }
      },
      "assertions": {
        "ai_generated": true,
        "system_name": true,
        "system_version": true,
        "created_time": true,
        "unique_id": true
      },
      "classifier": {
        "on": true,
        "source_code": "leave_unmarked",
        "machine_only": "leave_unmarked",
        "prose": "mark",
        "media": "mark",
        "unclear": "mark"
      },
      "signing_mode": "cloud",
      "recovery": true,
      "on_failure": "fail_closed",
      "unsupported_format": "refuse",
      "text_records": false
    }
  ],
  "next_cursor": null
}
```

## Start a policy draft

A draft of a system's next policy version, copied from the version in force or from an earlier one.

`POST /v1/systems/{system_id}/policies`. Who may: Owner, Admin, Compliance and Developer. CLI: `widar policies create <system_id> [--from-version <version>]`. MCP tool: `create_policy_draft`.

**Parameters**
- `system_id` (id (sys_), required): The system. In the path.
- `from_version` (integer): the version to copy; the one in force when left out At least 1.

**Returns** policy: The draft, numbered as the next version.

API:

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

CLI:

```bash
widar policies create sys_4kT9qWm2RbXe
```

MCP tool `create_policy_draft`:

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

Response, 201 Created:

```json
{
  "id": "pol_3Ny9cWk2PdLe",
  "object": "policy",
  "system_id": "sys_4kT9qWm2RbXe",
  "version": 4,
  "state": "draft",
  "created_at": "2026-11-18T14:02:00Z",
  "created_by": "Amira Haddad",
  "published_at": "2026-11-19T08:04:00Z",
  "published_by": "Sanne Bakker",
  "change_summary": "Visible label on images served in the EU; animated GIFs are refused rather than passed unmarked.",
  "per_type": {
    "image": {
      "watermark": true,
      "credential": true,
      "timestamp": true
    }
  },
  "assertions": {
    "ai_generated": true,
    "system_name": true,
    "system_version": true,
    "created_time": true,
    "unique_id": true
  },
  "classifier": {
    "on": true,
    "source_code": "leave_unmarked",
    "machine_only": "leave_unmarked",
    "prose": "mark",
    "media": "mark",
    "unclear": "mark"
  },
  "signing_mode": "cloud",
  "recovery": true,
  "on_failure": "fail_closed",
  "unsupported_format": "refuse",
  "text_records": false
}
```

## Publish a policy version

Put a draft in force as the system's next version, or publish an earlier version again as the next. Mark records made from then on point to it.

`POST /v1/policies/{policy_id}/publish`. Who may: Owner, Admin, Compliance and Developer. CLI: `widar policies publish <policy_id> [--change-summary <text>]`. MCP tool: `publish_policy_version`.

**Parameters**
- `policy_id` (id (pol_), required): The draft. In the path.
- `change_summary` (string): The change summary. At most 400 characters.

**Returns** policy: The version now in force.

API:

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

CLI:

```bash
widar policies publish pol_3Ny9cWk2PdLe
```

MCP tool `publish_policy_version`:

```json
{
  "name": "publish_policy_version",
  "arguments": {
    "policy_id": "pol_3Ny9cWk2PdLe"
  }
}
```

## Compare two policy versions

What changed between two versions of a system's policy, setting by setting.

`GET /v1/systems/{system_id}/policies/compare`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar policies compare <system_id> --from <version> --to <version>`. MCP tool: `compare_policy_versions`.

**Parameters**
- `system_id` (id (sys_), required): The system. In the path.
- `from` (integer, required): The older version. At least 1.
- `to` (integer, required): The newer version. At least 1.

**Returns** policy comparison: Each setting that differs, with its value in each version.

API:

```bash
curl -X GET "https://api.widar.com/v1/systems/sys_4kT9qWm2RbXe/policies/compare?from=2&to=3" \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar policies compare sys_4kT9qWm2RbXe --from 2 --to 3
```

MCP tool `compare_policy_versions`:

```json
{
  "name": "compare_policy_versions",
  "arguments": {
    "system_id": "sys_4kT9qWm2RbXe",
    "from": 2,
    "to": 3
  }
}
```

## Edit a policy draft

Change the settings of a policy draft. Published versions never change.

`PATCH /v1/policies/{policy_id}`. Who may: Owner, Admin, Compliance and Developer. CLI: `widar policies update <policy_id> [--per-type <json>] [--assertions <json>] [--classifier <json>] [--signing-mode <cloud|remote_signer|customer_key>] [--recovery <true|false>] [--on-failure <fail_closed|fail_open>] [--unsupported-format <refuse|pass_unmarked>] [--text-records <true|false>] [--change-summary <text>]`. MCP tool: `update_policy_draft`.

**Parameters**
- `policy_id` (id (pol_), required): The policy's id. In the path.
- `per_type` (record): per content type: watermark, credential, timestamp on or off
- `assertions` (object): The assertions.
- `classifier` (object): The classifier.
- `signing_mode` (enum): The signing mode. One of `cloud`, `remote_signer`, `customer_key`.
- `recovery` (boolean): The recovery.
- `on_failure` (enum): The on failure. One of `fail_closed`, `fail_open`.
- `unsupported_format` (enum): The unsupported format. One of `refuse`, `pass_unmarked`.
- `text_records` (boolean): The text records.
- `change_summary` (string): The change summary. At most 400 characters.

**Returns** policy: The draft, changed.

API:

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

CLI:

```bash
widar policies update pol_7Kq2Xw9
```

MCP tool `update_policy_draft`:

```json
{
  "name": "update_policy_draft",
  "arguments": {
    "policy_id": "pol_7Kq2Xw9"
  }
}
```

## Discard a policy draft

Delete a draft that was never published. The version in force is unchanged.

`DELETE /v1/policies/{policy_id}`. Who may: Owner, Admin, Compliance and Developer. CLI: `widar policies discard <policy_id>`. MCP tool: `discard_policy_draft`.

**Parameters**
- `policy_id` (id (pol_), required): The policy's id. In the path.

**Returns** deleted policy: The draft, deleted.

API:

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

CLI:

```bash
widar policies discard pol_7Kq2Xw9
```

MCP tool `discard_policy_draft`:

```json
{
  "name": "discard_policy_draft",
  "arguments": {
    "policy_id": "pol_7Kq2Xw9"
  }
}
```
