# Domain validation

> 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: Certificates. URL: https://widar.com/docs/certificates/domains

Every widar certificate is bound to a domain you control. Add the domain, publish a TXT record or serve a file, and widar validates it before issue and again at every renewal.

Updated December 3, 2026

## Two ways to prove a domain

The challenges

| Challenge | Where | Best for |
| --- | --- | --- |
| DNS record | A TXT record at `_widar-challenge.<domain>` holding `challenge.dns_value` | Most domains. Leave it in place and every renewal passes with nothing to do. |
| File | `https://<domain>/.well-known/widar-challenge/<token>` answering `challenge.file_body` as plain text | A host you serve. The renewal daemon, the sidecar and the plugins serve it for you at each renewal. |

**Publish and check the challenge**

DNS record:

```
_widar-challenge.voice.lumenlabs.example. 300 IN TXT "Tq8Wm3LxKz5Nb2VcRp7HsYd4GfJe9UaQo1MkEiSn6Rw"
```

Check the record:

```bash
dig +short TXT _widar-challenge.voice.lumenlabs.example

widar domains validate dom_3Xv8nTe2HqWc
```

File:

```bash
curl https://voice.lumenlabs.example/.well-known/widar-challenge/Hb4Nc9XkRq2LmTz7WdPs1HyJe8UgQ3AfKo6MiEtSn5v
# Hb4Nc9XkRq2LmTz7WdPs1HyJe8UgQ3AfKo6MiEtSn5v.Rq2LmTz7WdPs1HyJe8UgQ3AfKo6MiEtSn5vHb4Nc9X
```

widar checks a pending domain on its own for 7 days, or at once on [Validate a domain now](#validate-a-domain-now). When a check passes the domain is `validated` and `domain.validated` follows. A passed ACME authorisation for the same name validates the domain too.

## States

Domain states

| State | Means |
| --- | --- |
| `pending` | Added; its challenge has not passed yet. Checked on its own for 7 days. |
| `validated` | The challenge passed. `valid_until` is when the current validation ends: the next renewal of a certificate that carries it. |
| `failed` | The last check did not pass. `failure` says what was missing. It returns to `validated` as soon as a check passes. |
| `removed` | Removed from the workspace. A domain that a live certificate, the member listing, the badge or the trust page uses cannot be removed. |

## At every renewal

A certificate's domain is checked again before each renewal, every 30 days. A TXT record left in place passes with nothing to do. A failed check refuses the renewal with `domain_not_validated` and sends `domain.validation_failed`; the current certificate stays valid to its end, so you have up to 30 days to fix it. widar keeps checking every 6 hours and renews as soon as the check passes.

- Your [legal entity's](https://widar.com/docs/legal-entity) domain is one of the workspace's domains, validated the same way.
- A domain is public: it is written in every certificate bound to it and in the [transparency log](https://widar.com/docs/certificates/transparency-log).
- The default challenge for new domains is the setting `domains.default_method`: `dns` or `well_known`. See [Settings](https://widar.com/docs/settings).

## By API, CLI and MCP

### Add a domain

Adds a domain you control and answers its two challenges: a TXT record, or a file at a well-known address. widar checks on its own for 7 days, or at once when you ask. Free, with or without a plan.

API:

```bash
curl -X POST https://api.widar.com/v1/domains \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "voice.lumenlabs.example"
  }'
```

CLI:

```bash
widar domains create voice.lumenlabs.example
```

MCP tool `domains_create`:

```json
{
  "name": "domains_create",
  "arguments": {
    "name": "voice.lumenlabs.example"
  }
}
```

Every parameter and the full answer: [Add a domain](https://widar.com/docs/certificates#add-a-domain).

### List domains

The workspace's domains with their state, the method that last passed, until when the validation holds, and what depends on each.

API:

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

CLI:

```bash
widar domains list
```

MCP tool `domains_list`:

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

Every parameter and the full answer: [List domains](https://widar.com/docs/certificates#list-domains).

### Read a domain

One domain, its current challenge, its last check and, after a failed check, what was missing in plain words.

API:

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

CLI:

```bash
widar domains get dom_9Pk4wQs7LmRa
```

MCP tool `domains_get`:

```json
{
  "name": "domains_get",
  "arguments": {
    "domain_id": "dom_9Pk4wQs7LmRa"
  }
}
```

Every parameter and the full answer: [Read a domain](https://widar.com/docs/certificates#read-a-domain).

### Validate a domain now

Checks the domain's challenge now instead of waiting for the next automatic check. A pass sends `domain.validated`; a failure answers the domain in `failed` with what was missing, and sends `domain.validation_failed`.

API:

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

CLI:

```bash
widar domains validate dom_3Xv8nTe2HqWc
```

MCP tool `domains_validate`:

```json
{
  "name": "domains_validate",
  "arguments": {
    "domain_id": "dom_3Xv8nTe2HqWc"
  }
}
```

Every parameter and the full answer: [Check a domain now](https://widar.com/docs/certificates#check-a-domain-now).

### Remove a domain

Removes a domain the workspace no longer uses. A domain that a live certificate, the member listing, the badge or the trust page depends on cannot be removed; the answer names what still uses it.

API:

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

CLI:

```bash
widar domains delete dom_6Rb1mYc5KsDf
```

MCP tool `domains_delete`:

```json
{
  "name": "domains_delete",
  "arguments": {
    "domain_id": "dom_6Rb1mYc5KsDf"
  }
}
```

Every parameter and the full answer: [Remove a domain](https://widar.com/docs/certificates#remove-a-domain).

## Events

Domain events

| Event | When |
| --- | --- |
| `domain.validated` | A challenge passed: when the domain was added, on request, or at a renewal after a failure. |
| `domain.validation_failed` | A check failed. The payload names the domain and what was missing, such as no TXT record. |
