- Each route names an endpoint or model, its supplier, its content types and the marking it carries:
watermark,credential,bothornone. - 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/eligibleanswers 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.
{
"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"
}POST/v1/routes
Declare an endpoint, model and supplier, and the marking it applies. widar verifies it with its own test outputs.
- 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- Returns
- The route, declared; the first test run starts at once when a test key is set.
Parameters
endpointRequiredThe endpoint you serve it on. At most 200 characters.
modelRequiredThe name you serve it under. At most 120 characters.
supplierRequiredWho makes it. At most 120 characters.
content_typesRequiredtext,image,audioorvideo.declared_markingRequiredThe declared marking. One of
watermark,credential,both,none.applied_byRequiredThe applied by. One of
widar_plugin,widar_cloud_api,supplier_own,none.
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"
}'POST /v1/routes
{
"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"
}GET/v1/routes
The capability record of a router or host: which endpoint or model applies which marking, and how that was verified.
- 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- Returns
- 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.
Parameters
markingOnly routes carrying this marking. One of
watermark,credential,both,none.stateThe state. One of
declared,verified,failed,stale,not_verifiable,retired.
curl -X GET https://api.widar.com/v1/routes \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/routes
{
"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/v1/routes/{route_id}
One route with its last test run, its eligibility and its history.
- Who may
- Owner, Admin, Compliance, Developer and Viewer
- CLI
widar routes get <route_id>- MCP tool
get_route- Returns
- The route, its last test run, whether it is eligible now, and every change to it.
Parameters
route_idRequiredThe route. In the path.
curl -X GET https://api.widar.com/v1/routes/rte_7Lb2nWx4JdTe \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/routes/{route_id}
{
"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"
}PATCH/v1/routes/{route_id}
Change a route’s supplier, content types, claimed marking or how it is applied. A changed claim is verified again.
- 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- Returns
- The route, changed; a changed claim leaves the eligible set until a run passes.
Parameters
route_idRequiredThe route. In the path.
supplierThe supplier. At most 120 characters.
content_typesThe content types. One of
text,image,audio,video.declared_markingThe declared marking. One of
watermark,credential,both,none.applied_byThe applied by. One of
widar_plugin,widar_cloud_api,supplier_own,none.
curl -X PATCH https://api.widar.com/v1/routes/rte_7Lb2nWx4JdTe \
-H "Authorization: Bearer $WIDAR_API_KEY"PATCH /v1/routes/{route_id}
DELETE/v1/routes/{route_id}
Take a route out of the capability record. It leaves the eligible set at once and stays in the evidence pack’s history.
- Who may
- Owner, Admin and Compliance
- CLI
widar routes delete <route_id>- MCP tool
retire_route- Returns
- The route, retired.
Parameters
route_idRequiredThe route. In the path.
curl -X DELETE https://api.widar.com/v1/routes/rte_7Lb2nWx4JdTe \
-H "Authorization: Bearer $WIDAR_API_KEY"DELETE /v1/routes/{route_id}
POST/v1/routes/import
Add or change many routes at once from CSV or JSON: one route a row, matched on endpoint and model.
- Who may
- Owner, Admin and Compliance
- CLI
widar routes import <file> --format <csv|json>- MCP tool
import_routes- Returns
- What was added, changed and refused, row by row.
Parameters
formatRequiredThe format. One of
csv,json.contentRequiredThe content. At most 500,000 characters.
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>"
}'POST /v1/routes/import
GET/v1/routes/export
The capability record as CSV or JSON, with each route’s verified marking and the date of its last passing run.
- Who may
- Owner, Admin, Compliance, Developer and Viewer
- CLI
widar routes export [--format <csv|json>] [--output <file>]- MCP tool
export_routes- Returns
- The routes as a CSV or JSON file.
Parameters
formatcsvorjson.
curl -X GET "https://api.widar.com/v1/routes/export?format=json" \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/routes/export
POST/v1/routes/{route_id}/verify
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.
- Who may
- Owner, Admin and Compliance
- CLI
widar routes verify <route_id>- MCP tool
verify_route- Returns
- The route with its new test run: verified only when every test output carried the marking claimed, streaming and non-streaming alike.
Parameters
route_idRequiredThe route. In the path.
curl -X POST https://api.widar.com/v1/routes/rte_7Lb2nWx4JdTe/verify \
-H "Authorization: Bearer $WIDAR_API_KEY"POST /v1/routes/{route_id}/verify
GET/v1/routes/eligible
The routes for a model that apply at least the marking a request needs, verified and not stale. Never a lesser fallback.
- Who may
- Owner, Admin, Compliance, Developer and Viewer
- CLI
widar routes eligible --marking <watermark|credential|both|none> [--model <name>]- MCP tool
list_eligible_routes- Returns
- The verified routes that apply at least that marking, and the routes left out with why.
Parameters
modelThe name the route serves. At most 120 characters.
markingRequiredThe least marking a route must carry. One of
watermark,credential,both,none.
curl -X GET "https://api.widar.com/v1/routes/eligible?model=lumen-image-3.1&marking=both" \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/routes/eligible
Report a route’s day
POST/v1/routes/{route_id}/reports
A day’s counts for one route: requests served and fallbacks taken.
- 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_idRequiredThe route.
dayRequiredYYYY-MM-DD.servedRequiredRequests served.
fallbacksRequiredRequests sent to another route.
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
}'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.
- Who may
- Anyone, with no key or account
- CLI
widar routes public <workspace>- MCP tool
get_public_capability_record- Returns
- The routes.
Parameters
workspaceRequiredThe workspace’s public name, such as
northwind-inference.
curl -X GET https://api.widar.com/v1/public/routes/northwind-inference