# Routes

> 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: Comply and prove. URL: https://widar.com/docs/routes

For routers and hosts: a capability record of each endpoint or model you serve, its supplier and the marking it carries, verified by test outputs and readable by anyone.

Updated December 3, 2026

- Each route names an endpoint or model, its supplier, its content types and the marking it carries: `watermark`, `credential`, `both` or `none`.
- A claim comes from a test output widar checked, the supplier's own record on widar, or your declaration, and says which.
- `GET /v1/routes/eligible` answers only verified routes that carry at least the marking asked for, never a lesser fallback.
- Your capability record is public at `GET /v1/public/routes/{workspace}`, so your customers can check what you serve.

**A route**

```json
{
  "id": "rte_7Lb2nWx4JdTe",
  "object": "route",
  "endpoint": "/v1/images/generations",
  "model": "lumen-image-3.1",
  "supplier": "Lumen Labs",
  "content_types": [
    "image"
  ],
  "marking": "both",
  "verified_at": "2026-12-02T07:40:00Z",
  "claim_source": "supplier_record",
  "updated_at": "2026-12-02T07:40:00Z"
}
```

## Add a route

Declare an endpoint, model and supplier, and the marking it applies. widar verifies it with its own test outputs.

`POST /v1/routes`. Who may: Owner, Admin and Compliance. CLI: `widar routes create --endpoint <path> --model <name> --supplier <name> --content-types <text,image,...> --declared-marking <watermark|credential|both|none> --applied-by <widar_plugin|widar_cloud_api|supplier_own|none>`. MCP tool: `create_route`.

**Parameters**
- `endpoint` (string, required): The endpoint you serve it on. At most 200 characters.
- `model` (string, required): The name you serve it under. At most 120 characters.
- `supplier` (string, required): Who makes it. At most 120 characters.
- `content_types` (array of enum, required): `text`, `image`, `audio` or `video`.
- `declared_marking` (enum, required): The declared marking. One of `watermark`, `credential`, `both`, `none`.
- `applied_by` (enum, required): The applied by. One of `widar_plugin`, `widar_cloud_api`, `supplier_own`, `none`.

**Returns** route: The route, declared; the first test run starts at once when a test key is set.

API:

```bash
curl -X POST https://api.widar.com/v1/routes \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "endpoint": "/v1/images/generations",
    "model": "lumen-image-3.1",
    "supplier": "Lumen Labs",
    "content_types": [
      "image"
    ],
    "declared_marking": "watermark",
    "applied_by": "widar_plugin"
  }'
```

CLI:

```bash
widar routes create \
  --endpoint /v1/images/generations \
  --model lumen-image-3.1 \
  --supplier 'Lumen Labs' \
  --content-types image \
  --declared-marking watermark \
  --applied-by widar_plugin
```

MCP tool `create_route`:

```json
{
  "name": "create_route",
  "arguments": {
    "endpoint": "/v1/images/generations",
    "model": "lumen-image-3.1",
    "supplier": "Lumen Labs",
    "content_types": [
      "image"
    ],
    "declared_marking": "watermark",
    "applied_by": "widar_plugin"
  }
}
```

Response, 201 Created:

```json
{
  "id": "rte_7Lb2nWx4JdTe",
  "object": "route",
  "endpoint": "/v1/images/generations",
  "model": "lumen-image-3.1",
  "supplier": "Lumen Labs",
  "content_types": [
    "image"
  ],
  "marking": "both",
  "verified_at": "2026-12-02T07:40:00Z",
  "claim_source": "supplier_record",
  "updated_at": "2026-12-02T07:40:00Z"
}
```

## List routes

The capability record of a router or host: which endpoint or model applies which marking, and how that was verified.

`GET /v1/routes`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar routes list [--marking <watermark|credential|both|none>] [--state <declared|verified|failed|stale|not_verifiable|retired>]`. MCP tool: `list_routes`.

**Parameters**
- `marking` (enum): Only routes carrying this marking. One of `watermark`, `credential`, `both`, `none`.
- `state` (enum): The state. One of `declared`, `verified`, `failed`, `stale`, `not_verifiable`, `retired`.

**Returns** list of routes: The routes, each with its endpoint, model, supplier, content types, the marking claimed and the marking verified, its state, its last test run and where the claim comes from.

API:

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

CLI:

```bash
widar routes list
```

MCP tool `list_routes`:

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

Response, 200 OK:

```json
{
  "items": [
    {
      "id": "rte_7Lb2nWx4JdTe",
      "object": "route",
      "endpoint": "/v1/images/generations",
      "model": "lumen-image-3.1",
      "supplier": "Lumen Labs",
      "content_types": [
        "image"
      ],
      "marking": "both",
      "verified_at": "2026-12-02T07:40:00Z",
      "claim_source": "supplier_record",
      "updated_at": "2026-12-02T07:40:00Z"
    }
  ],
  "next_cursor": null
}
```

## Get a route

One route with its last test run, its eligibility and its history.

`GET /v1/routes/{route_id}`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar routes get <route_id>`. MCP tool: `get_route`.

**Parameters**
- `route_id` (id (rte_), required): The route. In the path.

**Returns** route: The route, its last test run, whether it is eligible now, and every change to it.

API:

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

CLI:

```bash
widar routes get rte_7Lb2nWx4JdTe
```

MCP tool `get_route`:

```json
{
  "name": "get_route",
  "arguments": {
    "route_id": "rte_7Lb2nWx4JdTe"
  }
}
```

Response, 200 OK:

```json
{
  "id": "rte_7Lb2nWx4JdTe",
  "object": "route",
  "endpoint": "/v1/images/generations",
  "model": "lumen-image-3.1",
  "supplier": "Lumen Labs",
  "content_types": [
    "image"
  ],
  "marking": "both",
  "verified_at": "2026-12-02T07:40:00Z",
  "claim_source": "supplier_record",
  "updated_at": "2026-12-02T07:40:00Z"
}
```

## Change a route

Change a route's supplier, content types, claimed marking or how it is applied. A changed claim is verified again.

`PATCH /v1/routes/{route_id}`. Who may: Owner, Admin and Compliance. CLI: `widar routes update <route_id> [--supplier <name>] [--content-types <text,image,...>] [--declared-marking <watermark|credential|both|none>] [--applied-by <widar_plugin|widar_cloud_api|supplier_own|none>]`. MCP tool: `update_route`.

**Parameters**
- `route_id` (id (rte_), required): The route. In the path.
- `supplier` (string): The supplier. At most 120 characters.
- `content_types` (array of enum): The content types. One of `text`, `image`, `audio`, `video`.
- `declared_marking` (enum): The declared marking. One of `watermark`, `credential`, `both`, `none`.
- `applied_by` (enum): The applied by. One of `widar_plugin`, `widar_cloud_api`, `supplier_own`, `none`.

**Returns** route: The route, changed; a changed claim leaves the eligible set until a run passes.

API:

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

CLI:

```bash
widar routes update rte_7Lb2nWx4JdTe
```

MCP tool `update_route`:

```json
{
  "name": "update_route",
  "arguments": {
    "route_id": "rte_7Lb2nWx4JdTe"
  }
}
```

## Retire a route

Take a route out of the capability record. It leaves the eligible set at once and stays in the evidence pack's history.

`DELETE /v1/routes/{route_id}`. Who may: Owner, Admin and Compliance. CLI: `widar routes delete <route_id>`. MCP tool: `retire_route`.

**Parameters**
- `route_id` (id (rte_), required): The route. In the path.

**Returns** route: The route, retired.

API:

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

CLI:

```bash
widar routes delete rte_7Lb2nWx4JdTe
```

MCP tool `retire_route`:

```json
{
  "name": "retire_route",
  "arguments": {
    "route_id": "rte_7Lb2nWx4JdTe"
  }
}
```

## Import routes

Add or change many routes at once from CSV or JSON: one route a row, matched on endpoint and model.

`POST /v1/routes/import`. Who may: Owner, Admin and Compliance. CLI: `widar routes import <file> --format <csv|json>`. MCP tool: `import_routes`.

**Parameters**
- `format` (enum, required): The format. One of `csv`, `json`.
- `content` (string, required): The content. At most 500,000 characters.

**Returns** route import: What was added, changed and refused, row by row.

API:

```bash
curl -X POST https://api.widar.com/v1/routes/import \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "format": "image/png",
    "content": "<content>"
  }'
```

CLI:

```bash
widar routes import --format image/png
```

MCP tool `import_routes`:

```json
{
  "name": "import_routes",
  "arguments": {
    "format": "image/png",
    "content": "<content>"
  }
}
```

## Export routes

The capability record as CSV or JSON, with each route's verified marking and the date of its last passing run.

`GET /v1/routes/export`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar routes export [--format <csv|json>] [--output <file>]`. MCP tool: `export_routes`.

**Parameters**
- `format` (enum, default "csv"): `csv` or `json`.

**Returns** file: The routes as a CSV or JSON file.

API:

```bash
curl -X GET "https://api.widar.com/v1/routes/export?format=json" \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar routes export --format json
```

MCP tool `export_routes`:

```json
{
  "name": "export_routes",
  "arguments": {
    "format": "json"
  }
}
```

## Verify a route

Send widar's test requests through the route, streaming and not, and check every output for the marking claimed. The outputs are discarded; the results are kept.

`POST /v1/routes/{route_id}/verify`. Who may: Owner, Admin and Compliance. CLI: `widar routes verify <route_id>`. MCP tool: `verify_route`.

**Parameters**
- `route_id` (id (rte_), required): The route. In the path.

**Returns** route: The route with its new test run: verified only when every test output carried the marking claimed, streaming and non-streaming alike.

API:

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

CLI:

```bash
widar routes verify rte_7Lb2nWx4JdTe
```

MCP tool `verify_route`:

```json
{
  "name": "verify_route",
  "arguments": {
    "route_id": "rte_7Lb2nWx4JdTe"
  }
}
```

## Ask which routes may serve

The routes for a model that apply at least the marking a request needs, verified and not stale. Never a lesser fallback.

`GET /v1/routes/eligible`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar routes eligible --marking <watermark|credential|both|none> [--model <name>]`. MCP tool: `list_eligible_routes`.

**Parameters**
- `model` (string): The name the route serves. At most 120 characters.
- `marking` (enum, required): The least marking a route must carry. One of `watermark`, `credential`, `both`, `none`.

**Returns** eligible routes: The verified routes that apply at least that marking, and the routes left out with why.

API:

```bash
curl -X GET "https://api.widar.com/v1/routes/eligible?model=lumen-image-3.1&marking=both" \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar routes eligible --model lumen-image-3.1 --marking both
```

MCP tool `list_eligible_routes`:

```json
{
  "name": "list_eligible_routes",
  "arguments": {
    "model": "lumen-image-3.1",
    "marking": "both"
  }
}
```

## Report a route's day

`POST /v1/routes/{route_id}/reports`

A day's counts for one route: requests served and fallbacks taken.

Report a route's day

- Who may: Owner, Admin and Compliance
- CLI: `widar routes report <route_id> --day <date> --served <n> --fallbacks <n>`
- MCP tool: `report_route_day`
- Returns: The report.

**Parameters**
- `route_id` (id (rte_), required): The route.
- `day` (string, required): `YYYY-MM-DD`.
- `served` (integer, required): Requests served.
- `fallbacks` (integer, required): Requests sent to another route.

**Report a route's day**

API:

```bash
curl -X POST https://api.widar.com/v1/routes/rte_7Lb2nWx4JdTe/reports \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "day": "2026-12-02",
    "served": 18412,
    "fallbacks": 0
  }'
```

CLI:

```bash
widar routes report rte_7Lb2nWx4JdTe \
  --day 2026-12-02 \
  --served 18412 \
  --fallbacks 0
```

MCP tool:

```json
{
  "name": "report_route_day",
  "arguments": {
    "route_id": "rte_7Lb2nWx4JdTe",
    "day": "2026-12-02",
    "served": 18412,
    "fallbacks": 0
  }
}
```

## Read a public capability record

`GET /v1/public/routes/{workspace}`

A router's or host's capability record as anyone may read it: each route and the marking it carries.

Read a public capability record

- Who may: Anyone, with no key or account
- CLI: `widar routes public <workspace>`
- MCP tool: `get_public_capability_record`
- Returns: The routes.

**Parameters**
- `workspace` (string, required): The workspace's public name, such as `northwind-inference`.

**Read a public capability record**

API:

```bash
curl -X GET https://api.widar.com/v1/public/routes/northwind-inference
```

CLI:

```bash
widar routes public northwind-inference
```

MCP tool:

```json
{
  "name": "get_public_capability_record",
  "arguments": {
    "workspace": "northwind-inference"
  }
}
```
