- The classifier is on for every new system. Turning it off marks every output.
- Length is never a rule: a short answer is marked like a long one.
- An enforced JSON schema or grammar always wins: marking never breaks the structure your call asked for.
- Each skipped output is counted, by class and rule, and with records on, recorded without its content. A mark record carries
output_classandmarked_portion. - The rules live in the system’s policy; every change is a new version.
POST/v1/classifications
The output class of a pasted text under a system’s policy, and whether it would be marked. Nothing of the text is kept.
- Who may
- Owner, Admin, Compliance, Developer and Viewer
- CLI
widar classifications create <file> --system-id <sys_...> [--policy-version <version>]- MCP tool
classify_sample- Returns
- The class (source code, machine-only, prose, media, unclear), whether it would be marked (whole, partly, none) and the rule applied.
Parameters
system_idRequiredThe system whose policy decides.
textRequiredThe output to classify, up to 1 MiB.
policy_versiona version to try; the one in force when left out At least 1.
curl -X POST https://api.widar.com/v1/classifications \
-H "Authorization: Bearer $WIDAR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"system_id": "sys_8Hn3vLp6YdQa",
"text": "Here is the fix:\n\n```python\nprint(total)\n```\n\nIt prints the sum once the loop ends."
}'POST /v1/classifications
{
"object": "classification",
"system_id": "sys_8Hn3vLp6YdQa",
"policy_version": 1,
"output_class": "prose",
"marked_portion": "partly",
"rule": "Code blocks inside a prose answer are left unmarked; the prose around them is marked."
}