Send the generated file as the request body with the system’s id. The answer is the same file, marked, signed and timestamped, its ids in the headers. Every output that could not be marked is a marking failure with its reason, and marking.failed is sent. The record of each marked output is a mark record.
HTTP/1.1 201 Created
Content-Type: image/png
Widar-Mark-Id: mrk_2Xq9vBn4LsKe
Widar-Manifest-Id: mft_8Wc3jRt6NyPa
Widar-Timestamp-Id: tst_4Hd7kMq1ZvBx
X-Request-Id: req_9Vb3nKs7QwLx
<the marked and signed image>POST/v1/markings
Mark, sign and timestamp a file through the cloud API in one call. The file is marked in memory and never kept.
- Who may
- Owner, Admin, Compliance and Developer
- CLI
widar markings create <file> --system-id <sys_...> [--mode <live|test>] [--check]- MCP tool
create_marking- Returns
- The mark record, its manifest and timestamp, the chain it was signed under, and with check what a check of the marked output finds. The marked file is the body of the API’s answer.
Parameters
system_idRequiredThe system that made the output. In the query.
content_typeRequiredWhat the file is:
image,audio,video, ortextfor a PDF.formatRequiredThe file’s media type, such as
image/png, as sent inContent-Type.file_nameRequiredThe output’s file name, as its credential and mark record name it. At most 200 characters.
size_bytesRequiredThe file’s size in bytes, up to 500 MiB. A longer video goes through the sidecar.
modeliveortest. The key’s own mode when left out; a test key marks in test mode only.checkAlso check the marked output, and answer what that check finds beside the mark record.
curl -X POST https://api.widar.com/v1/markings \
-H "Authorization: Bearer $WIDAR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"system_id": "sys_4kT9qWm2RbXe",
"content_type": "image",
"format": "image/png",
"file_name": "output.png",
"size_bytes": 2418706
}'POST /v1/markings
HTTP/1.1 201 Created
Content-Type: image/png
Widar-Mark-Id: mrk_2Xq9vBn4LsKe
Widar-Manifest-Id: mft_8Wc3jRt6NyPa
Widar-Timestamp-Id: tst_4Hd7kMq1ZvBx
X-Request-Id: req_9Vb3nKs7QwLx
<the marked and signed image>GET/v1/marking/stats
Outputs marked per day by system, content type and path, outputs left unmarked by the classifier, failures, and installs not reporting.
- Who may
- Owner, Admin, Compliance, Developer and Viewer
- CLI
widar marking stats [--system-id <sys_...>] [--content-type <text|image|audio|video>] [--path <plugin|cloud_api|sidecar|self_hosted>] [--days <1-90>]- MCP tool
get_marking_stats- Returns
- Each day’s counts, the totals, the outputs left unmarked by rule, the open failures and the installs not reporting.
Parameters
system_idOnly this system.
content_typeThe content type. One of
text,image,audio,video.pathThe path. One of
plugin,cloud_api,sidecar,self_hosted.daysHow many days back, 1 to 91.
curl -X GET "https://api.widar.com/v1/marking/stats?days=7" \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/marking/stats
GET/v1/marking_failures
Every output that could not be marked, with the reason in plain words and what happened to the output.
- Who may
- Owner, Admin, Compliance, Developer and Viewer
- CLI
widar marking-failures list [--system-id <sys_...>] [--resolved <true|false>] [--reason-code <format_not_supported|content_too_large|key_fetch_refused|signer_unavailable|timestamp_unavailable|install_out_of_date|file_unreadable>] [--limit <n>]- MCP tool
list_marking_failures- Returns
- The failures, newest first, each with its system, content type, path, install, time, reason, the output’s hash when known and whether it is resolved.
Parameters
system_idOnly this system’s failures.
resolvedThe resolved.
reason_codeThe reason code. One of
format_not_supported,content_too_large,key_fetch_refused,signer_unavailable,timestamp_unavailable,install_out_of_date,file_unreadable.limitThe limit. At least 1, at most 200.
curl -X GET https://api.widar.com/v1/marking_failures \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/marking_failures
{
"items": [
{
"id": "mfl_9Ns2cPw5RtLm",
"object": "marking_failure",
"system_id": "sys_4kT9qWm2RbXe",
"content_type": "image",
"path": "cloud_api",
"install_id": null,
"at": "2026-12-03T08:30:11Z",
"reason_code": "format_not_supported",
"reason": "The output was an animated GIF. The policy refuses formats it cannot sign, so the image was held back.",
"output_hash": "6f8a1289ae8950f8500f44da340e0166ec560395b545ab9d4bd018820024e075",
"outcome": "held",
"resolved_at": null,
"resolved_by": null,
"note": null
}
],
"next_cursor": null
}POST/v1/marking_failures/{failure_id}/resolve
Mark a failure resolved once its cause is fixed, with a note on what was done.
- Who may
- Owner, Admin, Compliance and Developer
- CLI
widar marking-failures resolve <failure_id> --note <text>- MCP tool
resolve_marking_failure- Returns
- The failure, resolved, with who resolved it, when and the note.
Parameters
failure_idRequiredThe failure. In the path.
noteRequiredWhat was done. At most 1,000 characters.
curl -X POST https://api.widar.com/v1/marking_failures/mfl_9Ns2cPw5RtLm/resolve \
-H "Authorization: Bearer $WIDAR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"note": "GIF output removed from the editor'\''s export menu."
}'POST /v1/marking_failures/{failure_id}/resolve
GET/v1/marking/export
The same days as the marking stats, one line per day, system, content type and path, as CSV.
- Who may
- Owner, Admin, Compliance, Developer and Viewer
- CLI
widar marking export [--system-id <sys_...>] [--content-type <text|image|audio|video>] [--path <plugin|cloud_api|sidecar|self_hosted>] [--days <1-90>] [--output <marking.csv>]- MCP tool
export_marking_stats- Returns
- The days, one line per day, system, content type and path, with outputs marked, left unmarked by rule, failed and text tokens marked.
Parameters
system_idThe system’s id.
content_typeThe content type. One of
text,image,audio,video.pathThe path. One of
plugin,cloud_api,sidecar,self_hosted.daysThe days. At least 1, at most 90.
curl -X GET https://api.widar.com/v1/marking/export \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/marking/export
GET/v1/marking_failures/{failure_id}
One output that could not be marked: the reason, what happened to the output, the install, and who resolved it with which note.
- Who may
- Owner, Admin, Compliance, Developer and Viewer
- CLI
widar marking-failures get <failure_id>- MCP tool
get_marking_failure- Returns
- The failure, with its reason, the output’s hash when known, what happened to the output and its resolution.
Parameters
failure_idRequiredThe failure’s id. In the path.
curl -X GET https://api.widar.com/v1/marking_failures/mfl_7Kq2Xw9 \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/marking_failures/{failure_id}