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.
version1, 2, 3 and on. Every mark record carries the version that made it.
statedraft,published(in force) orsuperseded.per_typePer content type:
watermark,credentialandtimestamp, each on or off.assertionsWhat the credential says: AI-generated, the system’s name and version, the time, a unique id.
classifierWhether Classify is on, and per output class
markorleave_unmarked. See Classify.signing_modecloud,remote_signerorcustomer_key. See Sign.recoveryKeep each manifest so a stripped credential can be shown again. On by default.
on_failurefail_closed, the default, holds back an output that cannot be marked;fail_openserves it unmarked and counts it.unsupported_formatrefuse, orpass_unmarkedfor a format that cannot carry a credential.text_recordsKeep a record per text output, its hash and length only. Off by default.
change_summaryWhat changed from the version before, in plain words.
{
"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
}GET/v1/systems/{system_id}/policies
Every version of a system’s policy, newest first: the one in force, a draft if there is one, and those it replaced.
- Who may
- Owner, Admin, Compliance, Developer and Viewer
- CLI
widar policies list <system_id>- MCP tool
list_policy_versions- Returns
- The versions, newest first, each with its state (draft, in force, superseded), who made it, when, and what changed.
Parameters
system_idRequiredThe system. In the path.
curl -X GET https://api.widar.com/v1/systems/sys_4kT9qWm2RbXe/policies \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/systems/{system_id}/policies
{
"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
}POST/v1/systems/{system_id}/policies
A draft of a system’s next policy version, copied from the version in force or from an earlier one.
- Who may
- Owner, Admin, Compliance and Developer
- CLI
widar policies create <system_id> [--from-version <version>]- MCP tool
create_policy_draft- Returns
- The draft, numbered as the next version.
Parameters
system_idRequiredThe system. In the path.
from_versionthe version to copy; the one in force when left out At least 1.
curl -X POST https://api.widar.com/v1/systems/sys_4kT9qWm2RbXe/policies \
-H "Authorization: Bearer $WIDAR_API_KEY"POST /v1/systems/{system_id}/policies
{
"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
}POST/v1/policies/{policy_id}/publish
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.
- Who may
- Owner, Admin, Compliance and Developer
- CLI
widar policies publish <policy_id> [--change-summary <text>]- MCP tool
publish_policy_version- Returns
- The version now in force.
Parameters
policy_idRequiredThe draft. In the path.
change_summaryThe change summary. At most 400 characters.
curl -X POST https://api.widar.com/v1/policies/pol_3Ny9cWk2PdLe/publish \
-H "Authorization: Bearer $WIDAR_API_KEY"POST /v1/policies/{policy_id}/publish
GET/v1/systems/{system_id}/policies/compare
What changed between two versions of a system’s policy, setting by setting.
- Who may
- Owner, Admin, Compliance, Developer and Viewer
- CLI
widar policies compare <system_id> --from <version> --to <version>- MCP tool
compare_policy_versions- Returns
- Each setting that differs, with its value in each version.
Parameters
system_idRequiredThe system. In the path.
fromRequiredThe older version. At least 1.
toRequiredThe newer version. At least 1.
curl -X GET "https://api.widar.com/v1/systems/sys_4kT9qWm2RbXe/policies/compare?from=2&to=3" \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/systems/{system_id}/policies/compare
PATCH/v1/policies/{policy_id}
Change the settings of a policy draft. Published versions never change.
- 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- Returns
- The draft, changed.
Parameters
policy_idRequiredThe policy’s id. In the path.
per_typeper content type: watermark, credential, timestamp on or off
assertionsThe assertions.
classifierThe classifier.
signing_modeThe signing mode. One of
cloud,remote_signer,customer_key.recoveryThe recovery.
on_failureThe on failure. One of
fail_closed,fail_open.unsupported_formatThe unsupported format. One of
refuse,pass_unmarked.text_recordsThe text records.
change_summaryThe change summary. At most 400 characters.
curl -X PATCH https://api.widar.com/v1/policies/pol_7Kq2Xw9 \
-H "Authorization: Bearer $WIDAR_API_KEY"PATCH /v1/policies/{policy_id}
DELETE/v1/policies/{policy_id}
Delete a draft that was never published. The version in force is unchanged.
- Who may
- Owner, Admin, Compliance and Developer
- CLI
widar policies discard <policy_id>- MCP tool
discard_policy_draft- Returns
- The draft, deleted.
Parameters
policy_idRequiredThe policy’s id. In the path.
curl -X DELETE https://api.widar.com/v1/policies/pol_7Kq2Xw9 \
-H "Authorization: Bearer $WIDAR_API_KEY"DELETE /v1/policies/{policy_id}