# Settings

> 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: API reference. URL: https://widar.com/docs/settings

Every workspace setting, read and changed the same way by the console, the API, the CLI and the MCP server: general, security, notifications, data, marking, classifier, certificates, verify pages and disclosure.

Updated December 3, 2026

Each settings area is `GET` and `PATCH /v1/settings/<area>`, `widar settings <area> get|set` and the MCP tools `get_<area>_settings` and `update_<area>_settings`. Every change is in the activity log with who, when, before and after, never a secret.

## Read the marking defaults

The policy a new system starts from: per content type watermark, credential and timestamp, the credential's assertions, text records and what happens to an output that cannot be marked.

`GET /v1/settings/marking`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar settings marking get`. MCP tool: `get_marking_settings`.

**Parameters**

**Returns** marking settings: The default policy of a new system.

API:

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

CLI:

```bash
widar settings marking get
```

MCP tool `get_marking_settings`:

```json
{
  "name": "get_marking_settings",
  "arguments": {}
}
```

## Change the marking defaults

Change the policy new systems start from. Systems already made keep their own policy.

`PATCH /v1/settings/marking`. Who may: Owner, Admin and Compliance. CLI: `widar settings marking set [--content-type <text|image|audio|video> [--watermark <true|false>] [--credential <true|false>] [--timestamp <true|false>]] [--assertions <ai_generated,system_name,...>] [--text-records <true|false>] [--on-failure <fail_closed|fail_open>]`. MCP tool: `update_marking_settings`.

**Parameters**
- `content_type` (enum): The content type. One of `text`, `image`, `audio`, `video`.
- `watermark` (boolean): The watermark.
- `credential` (boolean): The credential.
- `timestamp` (boolean): The timestamp.
- `assertions` (array of enum): The assertions. One of `ai_generated`, `system_name`, `system_version`, `created_time`, `unique_id`.
- `text_records` (boolean): Keep a record per text output, its hash and length only.
- `on_failure` (enum): `fail_closed` or `fail_open`.

**Returns** marking settings: The marking defaults, changed.

API:

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

CLI:

```bash
widar settings marking set
```

MCP tool `update_marking_settings`:

```json
{
  "name": "update_marking_settings",
  "arguments": {}
}
```

## Read the classifier defaults

Whether a new system starts with the classifier on, what each output class gets, and whether skipped outputs are recorded.

`GET /v1/settings/classify`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar settings classify get`. MCP tool: `get_classify_settings`.

**Parameters**

**Returns** classify settings: The classifier's defaults, and what it left unmarked in the last 7 days.

API:

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

CLI:

```bash
widar settings classify get
```

MCP tool `get_classify_settings`:

```json
{
  "name": "get_classify_settings",
  "arguments": {}
}
```

## Change the classifier defaults

Change what new systems start with: the classifier on or off, what one output class gets, and whether skipped outputs are recorded.

`PATCH /v1/settings/classify`. Who may: Owner, Admin and Compliance. CLI: `widar settings classify set [--default-on <true|false>] [--output-class <source_code|machine_only|prose|media|unclear> --rule <mark|leave_unmarked>] [--record-skipped <true|false>]`. MCP tool: `update_classify_settings`.

**Parameters**
- `default_on` (boolean): Classify on for new systems.
- `output_class` (enum): The output class. One of `source_code`, `machine_only`, `prose`, `media`, `unclear`.
- `rule` (enum): The rule. One of `mark`, `leave_unmarked`.
- `record_skipped` (boolean): Keep a record, with the class and the reason, for each output left unmarked. Never its content.

**Returns** classify settings: The classifier defaults, changed.

API:

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

CLI:

```bash
widar settings classify set
```

MCP tool `update_classify_settings`:

```json
{
  "name": "update_classify_settings",
  "arguments": {}
}
```

## Read the certificate settings

Where a new certificate's private key lives, and how long before expiry a renewal starts.

`GET /v1/settings/certificates`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar settings certificates get`. MCP tool: `get_certificate_settings`.

**Parameters**

**Returns** certificate settings: Key location and renewal, with the workspace's certificates counted.

API:

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

CLI:

```bash
widar settings certificates get
```

MCP tool `get_certificate_settings`:

```json
{
  "name": "get_certificate_settings",
  "arguments": {}
}
```

## Change the certificate settings

Where new certificates' keys live, and when renewal starts. Certificates already issued keep their key where it is.

`PATCH /v1/settings/certificates`. Who may: Owner and Admin. CLI: `widar settings certificates set [--key-location <widar_key_store|customer_hsm>] [--auto-renew-days <0|30-90>]`. MCP tool: `update_certificate_settings`.

**Parameters**
- `key_location` (enum): `widar_key_store` (cloud signing, level 2) or `customer_hsm` (by a certificate request).
- `auto_renew_days` (integer): Start a renewal this many days before expiry, 30 to 90, or `null` for off.

**Returns** certificate settings: The certificate settings, changed.

API:

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

CLI:

```bash
widar settings certificates set
```

MCP tool `update_certificate_settings`:

```json
{
  "name": "update_certificate_settings",
  "arguments": {}
}
```

## Read the verify page defaults

The defaults every system's verify page starts from, and the rules every verify page keeps.

`GET /v1/settings/verify_pages`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar settings verify-pages get`. MCP tool: `get_verify_page_settings`.

**Parameters**

**Returns** verify page settings: Brand, languages, recovered credentials, custom domain, and the fixed rules.

API:

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

CLI:

```bash
widar settings verify-pages get
```

MCP tool `get_verify_page_settings`:

```json
{
  "name": "get_verify_page_settings",
  "arguments": {}
}
```

## Change the verify page defaults

Change the languages, whether recovered credentials show, and the custom domain. Each page can still override them.

`PATCH /v1/settings/verify_pages`. Who may: Owner, Admin and Compliance. CLI: `widar settings verify-pages set [--languages <en,de,...>] [--show-recovered <true|false>] [--custom-domain <host name>]`. MCP tool: `update_verify_page_settings`.

**Parameters**
- `languages` (array of enum): The visitor's languages. One of `en`, `de`, `fr`, `es`, `it`, `nl`, `sv`, `pl`, `pt`.
- `show_recovered` (boolean): Show a credential recovered from the mark.
- `custom_domain` (string): A host name of yours, on plans that include one. At most 253 characters.

**Returns** verify page settings: The verify page defaults, changed.

API:

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

CLI:

```bash
widar settings verify-pages set
```

MCP tool `update_verify_page_settings`:

```json
{
  "name": "update_verify_page_settings",
  "arguments": {}
}
```

## Read the label defaults

The languages labels are made in, and the label set a new system's disclosure kit starts from.

`GET /v1/settings/disclose`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar settings disclose get`. MCP tool: `get_disclose_settings`.

**Parameters**

**Returns** disclose settings: Label languages and the default label set.

API:

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

CLI:

```bash
widar settings disclose get
```

MCP tool `get_disclose_settings`:

```json
{
  "name": "get_disclose_settings",
  "arguments": {}
}
```

## Change the label defaults

Change the label languages and the set a new system's kit starts from. Labels never turn marking on or off.

`PATCH /v1/settings/disclose`. Who may: Owner, Admin and Compliance. CLI: `widar settings disclose set [--languages <en,de,...>] [--content-type <text|image|audio|video> --label <true|false>] [--icon <basic|fully_ai_generated|partly_ai_modified>] [--colour <black|white|black_50|white_50>] [--link <output|system>]`. MCP tool: `update_disclose_settings`.

**Parameters**
- `languages` (array of enum): The labels' languages. One of `en`, `de`, `fr`, `es`, `it`, `nl`, `sv`, `pl`, `pt`.
- `content_type` (enum): The content type. One of `text`, `image`, `audio`, `video`.
- `label` (boolean): The label.
- `icon` (enum): The icon. One of `basic`, `fully_ai_generated`, `partly_ai_modified`.
- `colour` (enum): The colour. One of `black`, `white`, `black_50`, `white_50`.
- `link` (enum): The link. One of `output`, `system`.

**Returns** disclose settings: The label defaults, changed.

API:

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

CLI:

```bash
widar settings disclose set
```

MCP tool `update_disclose_settings`:

```json
{
  "name": "update_disclose_settings",
  "arguments": {}
}
```

## Read the general settings

The workspace's name, slug, time zone, default currency and logo, where its files are stored, and a deletion if one is scheduled.

`GET /v1/settings/general`. Who may: Owner, Admin, Compliance, Developer, Viewer and Billing. CLI: `widar settings general get`. MCP tool: `get_general_settings`.

**Parameters**

**Returns** general settings: The workspace's name, time zone, currency, logo and storage location.

API:

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

CLI:

```bash
widar settings general get
```

MCP tool `get_general_settings`:

```json
{
  "name": "get_general_settings",
  "arguments": {}
}
```

## Change the general settings

Rename the workspace, change the time zone its dates and summaries use or the currency members type amounts in, or say the company's website, industry and country.

`PATCH /v1/settings/general`. Who may: Owner and Admin. CLI: `widar settings general set [--name <text>] [--time-zone <IANA zone>] [--currency <EUR|GBP|USD>] [--website <https://...|none>] [--industry <industry|none>] [--country <NL|...|none>]`. MCP tool: `update_general_settings`.

**Parameters**
- `name` (string): The name. At most 80 characters.
- `time_zone` (string): The time zone. At most 64 characters.
- `currency` (enum): The currency. One of `EUR`, `GBP`, `USD`.
- `website` (string or null): The website.
- `industry` (enum): The industry. One of `model_lab`, `inference_provider`, `image_generator`, `video_generator`, `voice_and_music`, `chatbot_or_llm_app`, `model_router`, `platform`, `publisher`, `stock_media`, `agency`, `fact_checker`, `other`. `null` clears it.
- `country` (string): The country. `null` clears it.

**Returns** general settings: The general settings, changed.

API:

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

CLI:

```bash
widar settings general set
```

MCP tool `update_general_settings`:

```json
{
  "name": "update_general_settings",
  "arguments": {}
}
```

## Upload the workspace logo

A PNG or JPEG of at most 512 KB, shown to members in the console beside the workspace's name.

`PUT /v1/settings/general/logo`. Who may: Owner and Admin. CLI: `widar settings logo upload <file_name>`. MCP tool: `upload_workspace_logo`.

**Parameters**
- `file_name` (string, required): The file name. At most 200 characters.
- `content_type` (enum, required): The content type. One of `image/png`, `image/jpeg`.
- `byte_size` (integer, required): The byte size. At least 1, at most 524,288.
- `content` (string, required): The content. At most 720,000 characters.

**Returns** general settings: The general settings, with the new logo.

API:

```bash
curl -X PUT https://api.widar.com/v1/settings/general/logo \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "file_name": "<file_name>",
    "content_type": "image/png",
    "byte_size": "<byte_size>",
    "content": "<content>"
  }'
```

CLI:

```bash
widar settings logo upload <file_name>
```

MCP tool `upload_workspace_logo`:

```json
{
  "name": "upload_workspace_logo",
  "arguments": {
    "file_name": "<file_name>",
    "content_type": "image/png",
    "byte_size": "<byte_size>",
    "content": "<content>"
  }
}
```

## Remove the workspace logo

The console shows the workspace's initials again.

`DELETE /v1/settings/general/logo`. Who may: Owner and Admin. CLI: `widar settings logo remove`. MCP tool: `remove_workspace_logo`.

**Parameters**

**Returns** general settings: The general settings, with no logo.

API:

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

CLI:

```bash
widar settings logo remove
```

MCP tool `remove_workspace_logo`:

```json
{
  "name": "remove_workspace_logo",
  "arguments": {}
}
```

## Transfer ownership

Hand the owner role to another member; you become an admin. Only the owner can do this.

`POST /v1/workspace/transfer_ownership`. Who may: Owner and Admin. CLI: `widar workspace transfer-ownership --member-id <mem_id>`. MCP tool: `transfer_workspace_ownership`.

**Parameters**
- `member_id` (id (mem_), required): The member's id.

**Returns** general settings: The general settings, with the new owner.

API:

```bash
curl -X POST https://api.widar.com/v1/workspace/transfer_ownership \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "member_id": "mem_7Kq2Xw9"
  }'
```

CLI:

```bash
widar workspace transfer-ownership --member-id mem_7Kq2Xw9
```

MCP tool `transfer_workspace_ownership`:

```json
{
  "name": "transfer_workspace_ownership",
  "arguments": {
    "member_id": "mem_7Kq2Xw9"
  }
}
```

## Delete the workspace

Schedules the workspace for deletion in 30 days: then its cases, people, documents and files are purged. Type its name to confirm.

`DELETE /v1/workspace`. Who may: Owner and Admin. CLI: `widar workspace delete --confirm-name <workspace name>`. MCP tool: `delete_workspace`.

**Parameters**
- `confirm_name` (string, required): The confirm name. At most 80 characters.

**Returns** general settings: The general settings, with the deletion date.

API:

```bash
curl -X DELETE "https://api.widar.com/v1/workspace?confirm_name={confirm_name}" \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar workspace delete --confirm-name <confirm_name>
```

MCP tool `delete_workspace`:

```json
{
  "name": "delete_workspace",
  "arguments": {
    "confirm_name": "<confirm_name>"
  }
}
```

## Cancel the deletion

The workspace stays, as it was.

`POST /v1/workspace/cancel_deletion`. Who may: Owner and Admin. CLI: `widar workspace cancel-deletion`. MCP tool: `cancel_workspace_deletion`.

**Parameters**

**Returns** general settings: The general settings, with no deletion scheduled.

API:

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

CLI:

```bash
widar workspace cancel-deletion
```

MCP tool `cancel_workspace_deletion`:

```json
{
  "name": "cancel_workspace_deletion",
  "arguments": {}
}
```

## Read the sign-in settings

Single sign-on: the protocol, its fields, whether it is enforced, and which identity-provider groups get which role. Secrets are never returned.

`GET /v1/settings/security`. Who may: Owner and Admin. CLI: `widar settings security get`. MCP tool: `get_security_settings`.

**Parameters**

**Returns** security settings: Single sign-on and its group-to-role mapping, with no secret.

API:

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

CLI:

```bash
widar settings security get
```

MCP tool `get_security_settings`:

```json
{
  "name": "get_security_settings",
  "arguments": {}
}
```

## Change the sign-in settings

Set up single sign-on with OIDC or SAML, enforce it, map identity-provider groups to roles, and choose the role of a person it signs in for the first time. Every identity provider address uses https and may not point to a private network. A secret is stored encrypted and never shown again.

`PATCH /v1/settings/security`. Who may: Owner and Admin. CLI: `widar settings security set [--protocol <disabled|oidc|saml>] [--enforced <true|false>] [--oidc-authorization-url <url>] [--oidc-token-url <url>] [--oidc-client-id <id>] [--oidc-client-secret <secret>] [--oidc-domain <domain>] [--oidc-jwks-url <url>] [--saml-idp-entity-id <id>] [--saml-sso-url <url>] [--saml-slo-url <url>] [--saml-metadata-url <url>] [--saml-certificate <pem>] [--saml-sp-entity-id <id>] [--role-mapping <group=role>,...] [--default-role <admin|analyst|developer|viewer|billing>] [--allowed-domains <domain>,...]`. MCP tool: `update_security_settings`.

**Parameters**
- `protocol` (enum): The protocol. One of `disabled`, `oidc`, `saml`.
- `enforced` (boolean): The enforced.
- `oidc_authorization_url` (string): The oidc authorization url. At most 2,048 characters.
- `oidc_token_url` (string): The oidc token url. At most 2,048 characters.
- `oidc_client_id` (string): The oidc client id. At most 200 characters.
- `oidc_client_secret` (string): The oidc client secret. At most 500 characters.
- `oidc_domain` (string): The oidc domain. At most 253 characters.
- `oidc_jwks_url` (string): The oidc jwks url. At most 2,048 characters.
- `saml_idp_entity_id` (string): The saml idp entity id. At most 500 characters.
- `saml_sso_url` (string): The saml sso url. At most 2,048 characters.
- `saml_slo_url` (string): The saml slo url. At most 2,048 characters.
- `saml_metadata_url` (string): The saml metadata url. At most 2,048 characters.
- `saml_certificate` (string): The saml certificate. At most 10,000 characters.
- `saml_sp_entity_id` (string): The saml sp entity id. At most 500 characters.
- `default_role` (enum): The default role. One of `admin`, `analyst`, `developer`, `viewer`, `billing`.
- `role_mapping` (array of string): The role mapping. At most 50 items.
- `allowed_domains` (array of string): The allowed domains. At most 20 items.

**Returns** security settings: Single sign-on, changed; secrets only as set or not set.

API:

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

CLI:

```bash
widar settings security set
```

MCP tool `update_security_settings`:

```json
{
  "name": "update_security_settings",
  "arguments": {}
}
```

## Test single sign-on

Check the saved setup the way a sign-in will, before anyone depends on it: the identity provider's addresses answer, its signing keys or certificate are there and in date, and widar can check who a response is from and for whom. Each check says what it found.

`POST /v1/settings/security/test`. Who may: Owner and Admin. CLI: `widar settings security test`. MCP tool: `test_single_sign_on`.

**Parameters**

**Returns** single sign-on test: Each check with what it found, and whether sign-in is ready.

API:

```bash
curl -X POST https://api.widar.com/v1/settings/security/test \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar settings security test
```

MCP tool `test_single_sign_on`:

```json
{
  "name": "test_single_sign_on",
  "arguments": {}
}
```

## List single sign-on attempts

The latest sign-ins through your identity provider, newest first: who, how each ended, the role it gave and why, the accounts it made for people signing in for the first time, and for each refusal what the response said beside what widar expected.

`GET /v1/settings/security/sign_ins`. Who may: Owner and Admin. CLI: `widar settings security sign-ins [--result <signed_in|provisioned|refused>] [--limit <n>]`. MCP tool: `list_sso_sign_ins`.

**Parameters**
- `result` (enum): The result. One of `signed_in`, `provisioned`, `refused`.
- `limit` (integer, default 50): The limit. At least 1, at most 100.

**Returns** list of sign-ins: The sign-ins, newest first, refusals with their reason and what disagreed.

API:

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

CLI:

```bash
widar settings security sign-ins
```

MCP tool `list_sso_sign_ins`:

```json
{
  "name": "list_sso_sign_ins",
  "arguments": {}
}
```

## Read the activity log

Every change to the workspace's settings, members and keys, newest first, with who made it, when, and the value before and after. Never a secret.

`GET /v1/audit_log`. Who may: Owner and Admin. CLI: `widar audit list [--q <words>] [--area <area>] [--limit <n>]`. MCP tool: `list_audit_log`.

**Parameters**
- `q` (string): The q. At most 120 characters.
- `area` (string): The area. At most 60 characters.
- `limit` (integer): The limit. At least 1, at most 200.

**Returns** list of activity: The changes, newest first.

API:

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

CLI:

```bash
widar audit list
```

MCP tool `list_audit_log`:

```json
{
  "name": "list_audit_log",
  "arguments": {}
}
```

## List the alert rules

When the workspace tells whom what: each rule's kind, where it goes and whether it is on.

`GET /v1/alert_rules`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar alerts list`. MCP tool: `list_alert_rules`.

**Parameters**

**Returns** list of alert rules: The workspace's alert rules.

API:

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

CLI:

```bash
widar alerts list
```

MCP tool `list_alert_rules`:

```json
{
  "name": "list_alert_rules",
  "arguments": {}
}
```

## Preview an alert's email

The email an alert rule sends, with its subject and its HTML and text parts, written from the newest event it tells about.

`GET /v1/alert_rules/{alert_rule_id}/preview`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar alerts preview <alert_rule_id>`. MCP tool: `preview_alert_rule`.

**Parameters**
- `alert_rule_id` (id (alr_), required): The alert rule's id. In the path.

**Returns** alert preview: The message as it would go out, and the event it is about.

API:

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

CLI:

```bash
widar alerts preview alr_7Kq2Xw9
```

MCP tool `preview_alert_rule`:

```json
{
  "name": "preview_alert_rule",
  "arguments": {
    "alert_rule_id": "alr_7Kq2Xw9"
  }
}
```

## Add an alert rule

Send one kind of alert to more people: other emails, a channel of a connected chat, or every member who can see marking.

`POST /v1/alert_rules`. Who may: Owner and Admin. CLI: `widar alerts create --preset <preset> --destinations <email or #channel>,... [--include-person-name <true|false>]`. MCP tool: `create_alert_rule`.

**Parameters**
- `preset` (enum, required): The preset. One of `marking_failed`, `install_not_reporting`, `certificate_expiring`, `certificate_changed`, `entity_validation`, `system_validated`, `test_run_below_last`, `route_changed`, `key_rotated`, `integration_broken`.
- `destinations` (array of string, required): The destinations. At most 20 items.
- `include_person_name` (boolean, default false): The include person name.

**Returns** alert rule: The alert rule, on.

API:

```bash
curl -X POST https://api.widar.com/v1/alert_rules \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "preset": "marking_failed",
    "destinations": "<destinations>"
  }'
```

CLI:

```bash
widar alerts create \
  --preset marking_failed \
  --destinations <destinations>
```

MCP tool `create_alert_rule`:

```json
{
  "name": "create_alert_rule",
  "arguments": {
    "preset": "marking_failed",
    "destinations": "<destinations>"
  }
}
```

## Change an alert rule

Turn a rule on or off, change where it goes, or whether it names the member who made a change.

`PATCH /v1/alert_rules/{alert_rule_id}`. Who may: Owner and Admin. CLI: `widar alerts update <alert_rule_id> [--status <on|off>] [--destinations <email or #channel>,...] [--include-person-name <true|false>]`. MCP tool: `update_alert_rule`.

**Parameters**
- `alert_rule_id` (id (alr_), required): The alert rule's id. In the path.
- `status` (enum): The status. One of `on`, `off`.
- `destinations` (array of string): The destinations. At most 20 items.
- `include_person_name` (boolean): The include person name.

**Returns** alert rule: The alert rule, changed.

API:

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

CLI:

```bash
widar alerts update alr_7Kq2Xw9
```

MCP tool `update_alert_rule`:

```json
{
  "name": "update_alert_rule",
  "arguments": {
    "alert_rule_id": "alr_7Kq2Xw9"
  }
}
```

## Delete an alert rule

No more messages from a rule you added. Every workspace's own rule of each kind stays: turn it off instead.

`DELETE /v1/alert_rules/{alert_rule_id}`. Who may: Owner and Admin. CLI: `widar alerts delete <alert_rule_id>`. MCP tool: `delete_alert_rule`.

**Parameters**
- `alert_rule_id` (id (alr_), required): The alert rule's id. In the path.

**Returns** alert rule, deleted: The alert rule sends nothing more.

API:

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

CLI:

```bash
widar alerts delete alr_7Kq2Xw9
```

MCP tool `delete_alert_rule`:

```json
{
  "name": "delete_alert_rule",
  "arguments": {
    "alert_rule_id": "alr_7Kq2Xw9"
  }
}
```

## Read the notice defaults

For each kind of notice a member gets, whether it also goes by email and to chat by default, and how long an install may be silent.

`GET /v1/settings/notifications`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar settings notifications get`. MCP tool: `get_notification_settings`.

**Parameters**

**Returns** notification settings: The workspace's notice defaults, by kind, and the install silence period.

API:

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

CLI:

```bash
widar settings notifications get
```

MCP tool `get_notification_settings`:

```json
{
  "name": "get_notification_settings",
  "arguments": {}
}
```

## Change a notice default

Whether one kind of notice also goes by email or to chat, for every member who has not chosen for themselves; or how long an install may be silent.

`PATCH /v1/settings/notifications`. Who may: Owner and Admin. CLI: `widar settings notifications set [--kind <kind>] [--email <true|false>] [--chat <true|false>] [--install-silence-hours <1-168>]`. MCP tool: `update_notification_settings`.

**Parameters**
- `kind` (enum): The kind. One of `marking_failed`, `install_not_reporting`, `certificate_expiring`, `entity_question`, `test_run_failed`, `verify_page_report`, `evidence_ready`, `payment_failed`.
- `email` (boolean): The email.
- `chat` (boolean): The chat.
- `install_silence_hours` (integer): The install silence hours. At least 1, at most 168.

**Returns** notification settings: The notice defaults, changed.

API:

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

CLI:

```bash
widar settings notifications set
```

MCP tool `update_notification_settings`:

```json
{
  "name": "update_notification_settings",
  "arguments": {}
}
```

## Read the data settings

What widar keeps for this workspace and for how long, that it never keeps your content, and every place data goes outside widar's EU plane.

`GET /v1/settings/data`. Who may: Owner, Admin, Compliance, Developer, Viewer and Billing. CLI: `widar settings data get`. MCP tool: `get_data_settings`.

**Parameters**

**Returns** data settings: What is kept, for how long, and where data goes.

API:

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

CLI:

```bash
widar settings data get
```

MCP tool `get_data_settings`:

```json
{
  "name": "get_data_settings",
  "arguments": {}
}
```

## Change retention

How long the workspace's verifications, activity log, API request log and webhook deliveries are kept.

`PATCH /v1/settings/data`. Who may: Owner and Admin. CLI: `widar settings data set [--retention-verifications <days>] [--retention-audit-log <days>] [--retention-api-logs <days>] [--retention-webhook-deliveries <days>]`. MCP tool: `update_data_settings`.

**Parameters**
- `retention_verifications` (integer): The retention verifications. At least 30, at most 1,095.
- `retention_audit_log` (integer): The retention audit log. At least 365, at most 2,555.
- `retention_api_logs` (integer): The retention api logs. At least 1, at most 30.
- `retention_webhook_deliveries` (integer): The retention webhook deliveries. At least 7, at most 90.

**Returns** data settings: The data settings, changed.

API:

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

CLI:

```bash
widar settings data set
```

MCP tool `update_data_settings`:

```json
{
  "name": "update_data_settings",
  "arguments": {}
}
```

## List the alert connections

Slack and Microsoft Teams: whether each is connected, to which account, and what in the workspace uses it.

`GET /v1/connections`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar connections list`. MCP tool: `list_connections`.

**Parameters**

**Returns** list of connections: Each connection with its state and what uses it.

API:

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

CLI:

```bash
widar connections list
```

MCP tool `list_connections`:

```json
{
  "name": "list_connections",
  "arguments": {}
}
```

## Connect Slack or Teams

Sign in to Slack or Microsoft Teams so alert rules and notices can go to its channels.

`POST /v1/connections`. Who may: Owner and Admin. CLI: `widar connections connect <slack|teams>`. MCP tool: `connect_chat`.

**Parameters**
- `kind` (enum, required): The kind. One of `slack`, `teams`.

**Returns** connection: The connection, with where to sign in when the other side asks.

API:

```bash
curl -X POST https://api.widar.com/v1/connections \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "kind": "slack"
  }'
```

CLI:

```bash
widar connections connect slack
```

MCP tool `connect_chat`:

```json
{
  "name": "connect_chat",
  "arguments": {
    "kind": "slack"
  }
}
```

## Disconnect Slack or Teams

Stop sending to that chat. Alert rules keep their email destinations; their channels there are dropped.

`DELETE /v1/connections/{connection_id}`. Who may: Owner and Admin. CLI: `widar connections disconnect <connection_id>`. MCP tool: `disconnect_chat`.

**Parameters**
- `connection_id` (id (con_), required): The connection's id. In the path.

**Returns** connection: The connection, not connected.

API:

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

CLI:

```bash
widar connections disconnect con_7Kq2Xw9
```

MCP tool `disconnect_chat`:

```json
{
  "name": "disconnect_chat",
  "arguments": {
    "connection_id": "con_7Kq2Xw9"
  }
}
```

## Read the detection settings

What a check in this workspace reads, who checks your marks for free, and the signed result.

`GET /v1/settings/detection`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar settings detection get`. MCP tool: `get_detection_settings`.

**Parameters**

**Returns** detection settings: What a check reads, the free checks of your marks, and the signed result.

API:

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

CLI:

```bash
widar settings detection get
```

MCP tool `get_detection_settings`:

```json
{
  "name": "get_detection_settings",
  "arguments": {}
}
```
