A text plugin starts with its system’s plugin key; a sidecar or a self-hosted install enrols once with an enrolment token and receives its plugin key. Every install reports usage each minute, never content, and is marked not reporting after 24 hours of silence.
{
"id": "ins_6Tm3pVz8KwQd",
"object": "install",
"system_id": "sys_8Hn3vLp6YdQa",
"kind": "vllm",
"host_label": "lumen-chat-pod-1.ams1",
"runtime": "vLLM 0.10.2",
"version": "0.1.0",
"latest_version": "0.1.0",
"state": "reporting",
"first_seen_at": "2026-11-19T10:31:00Z",
"last_seen_at": "2026-12-03T09:41:00Z",
"usage_24h": {
"outputs_marked": 48213,
"tokens_marked": 13547853,
"skipped": 2216
},
"plugin_key_id": "key_5Lr8wNc2QxTj"
}GET/v1/installs
The running text plugins and sidecars of the workspace, or of one system, with their versions and when each last reported.
- Who may
- Owner, Admin, Compliance, Developer and Viewer
- CLI
widar installs list [--system-id <sys_...>]- MCP tool
list_installs- Returns
- The installs, each with its kind, host label, version, state (reporting, not reporting), when it was last seen and its usage in the last 24 hours.
Parameters
system_idOnly this system’s installs.
curl -X GET "https://api.widar.com/v1/installs?system_id=sys_8Hn3vLp6YdQa" \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/installs
{
"items": [
{
"id": "ins_6Tm3pVz8KwQd",
"object": "install",
"system_id": "sys_8Hn3vLp6YdQa",
"kind": "vllm",
"host_label": "lumen-chat-pod-1.ams1",
"runtime": "vLLM 0.10.2",
"version": "0.1.0",
"latest_version": "0.1.0",
"state": "reporting",
"first_seen_at": "2026-11-19T10:31:00Z",
"last_seen_at": "2026-12-03T09:41:00Z",
"usage_24h": {
"outputs_marked": 48213,
"tokens_marked": 13547853,
"skipped": 2216
},
"plugin_key_id": "key_5Lr8wNc2QxTj"
}
],
"next_cursor": null
}Register an install
POST/v1/installs
What a plugin or a sidecar calls when it starts: it names itself and receives the policy version, the classifier rules and the system’s active watermark keys, wrapped for that install and held in its memory only. You never call it yourself.
- Who may
- An install, with its plugin key
- CLI
widar installs register --kind <vllm|sglang|hf_transformers|sidecar|self_hosted> --host-label <label> --version <version>- MCP tool
register_install- Returns
- The install, the policy version and its rules.
Parameters
kindRequiredvllm,sglang,hf_transformers,sidecarorself_hosted.host_labelRequiredThe host’s own name, as you want to see it in the console.
versionRequiredThe plugin’s or sidecar’s version.
runtimeThe inference software and its version, for a plugin.
curl -X POST https://api.widar.com/v1/installs \
-H "Authorization: Bearer $WIDAR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "vllm",
"host_label": "lumen-chat-pod-1.ams1",
"version": "0.1.0",
"runtime": "vLLM 0.10.2"
}'{
"id": "ins_6Tm3pVz8KwQd",
"object": "install",
"system_id": "sys_8Hn3vLp6YdQa",
"kind": "vllm",
"host_label": "lumen-chat-pod-1.ams1",
"runtime": "vLLM 0.10.2",
"version": "0.1.0",
"latest_version": "0.1.0",
"state": "reporting",
"first_seen_at": "2026-11-19T10:31:00Z",
"last_seen_at": "2026-12-03T09:41:00Z",
"usage_24h": {
"outputs_marked": 48213,
"tokens_marked": 13547853,
"skipped": 2216
},
"plugin_key_id": "key_5Lr8wNc2QxTj"
}Report usage
POST/v1/installs/{install_id}/reports
An install’s report, every minute: outputs and tokens marked, outputs skipped by reason, and its health. Never a prompt or an output. The answer says when the keys or the policy changed. An install silent for 24 hours sends install.not_reporting.
- Who may
- An install, with its plugin key
- CLI
widar installs report <install_id> --data <json>- MCP tool
report_install_usage- Returns
- Whether the keys or the policy changed since the last report.
Parameters
install_idRequiredThe install.
outputs_markedRequiredOutputs marked since the last report.
tokens_markedText tokens marked since the last report.
skippedOutputs left unmarked since the last report, by reason:
source_code,machine_only,declared,fail_open.
curl -X POST https://api.widar.com/v1/installs/ins_6Tm3pVz8KwQd/reports \
-H "Authorization: Bearer $WIDAR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"outputs_marked": 412,
"tokens_marked": 117940,
"skipped": {
"source_code": 19
}
}'{
"keys_changed": false,
"policy_version": 1,
"next_report_in_seconds": 60
}Fetch the current keys
GET/v1/installs/{install_id}/keys
What an install calls when a report says its keys changed: the system’s active watermark keys, wrapped for that install. A refused fetch (a revoked key, a plan ended) answers the plain error, and the install fails closed or open as the policy says.
- Who may
- An install, with its plugin key
- CLI
widar installs keys <install_id>- MCP tool
fetch_install_keys- Returns
- The wrapped keys, with their ids and content types.
Parameters
install_idRequiredThe install.
curl -X GET https://api.widar.com/v1/installs/ins_6Tm3pVz8KwQd/keys \
-H "Authorization: Bearer $WIDAR_API_KEY"Send per-output records
POST/v1/installs/{install_id}/records
Where a policy keeps a record per text output, the install sends them in batches: each output’s hash and length, never its text.
- Who may
- An install, with its plugin key
- CLI
widar installs records <install_id> --data <json>- MCP tool
send_install_records- Returns
- How many records were kept.
Parameters
install_idRequiredThe install.
recordsRequiredEach
{content_hash, length, created_at}.
curl -X POST https://api.widar.com/v1/installs/ins_6Tm3pVz8KwQd/records \
-H "Authorization: Bearer $WIDAR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"records": [
{
"content_hash": "29e1afaa2924adba4146dbeeae485c9cb10b71c13d2d2c99b15577300c9fe9b4",
"length": 412,
"created_at": "2026-12-03T09:41:30Z"
}
]
}'