Skip to content
Docs
Ask the assistant
Sign inCreate a free account
Get startedMark and signCertificatesDocumentsCheck and recoverComply and proveAPI referencePricing and data

Mark

  • Overview
  • Marking API
    • Mark an output
    • Read marking volume
    • List marking failures
    • Resolve a marking failure
    • Export marking volume
    • Read a marking failure
  • Mark records
  • Plugins for text
  • Sidecar
  • Cloud API
  • Self-hosted

Set up

  • Legal entity
  • Systems
  • Policies
  • Watermark keys
  • Installs
  • Plugin keys
  • Downloads

C2PA

  • Sign
  • Timestamps

For agents

  • agent-setup.md
  • llms.txt
  • llms-full.txt
  1. Home
  2. Docs
  3. Marking API

Mark and signMark

Marking API

The marking call that marks, signs and timestamps an output in one answer, with marking volume and the failures to act on. The output is processed in memory and never kept.

Updated December 3, 2026

Ask about this pageRead this page as Markdown

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.

The answer
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>

Mark an output

Changes data

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_idid (sys_)Required

    The system that made the output. In the query.

  • content_typeenumRequired

    What the file is: image, audio, video, or text for a PDF.

  • formatstringRequired

    The file’s media type, such as image/png, as sent in Content-Type.

  • file_namestringRequired

    The output’s file name, as its credential and mark record name it. At most 200 characters.

  • size_bytesintegerRequired

    The file’s size in bytes, up to 500 MiB. A longer video goes through the sidecar.

  • modeenum

    live or test. The key’s own mode when left out; a test key marks in test mode only.

  • checkbooleanDefault false

    Also 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

Response, 201 Created
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>

Read marking volume

Reads only

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_idid (sys_)

    Only this system.

  • content_typeenum

    The content type. One of text, image, audio, video.

  • pathenum

    The path. One of plugin, cloud_api, sidecar, self_hosted.

  • daysintegerDefault 30

    How 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

List marking failures

Reads only

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_idid (sys_)

    Only this system’s failures.

  • resolvedboolean

    The resolved.

  • reason_codeenum

    The reason code. One of format_not_supported, content_too_large, key_fetch_refused, signer_unavailable, timestamp_unavailable, install_out_of_date, file_unreadable.

  • limitinteger

    The 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

Response, 200 OK
{
  "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
}

Resolve a marking failure

Changes data

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_idid (mfl_)Required

    The failure. In the path.

  • notestringRequired

    What 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

Export marking volume

Reads only

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_idid (sys_)

    The system’s id.

  • content_typeenum

    The content type. One of text, image, audio, video.

  • pathenum

    The path. One of plugin, cloud_api, sidecar, self_hosted.

  • daysintegerDefault 30

    The 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

Read a marking failure

Reads only

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_idid (mfl_)Required

    The 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}

PreviousOverviewNextMark records

For agents

  • Read this page as Markdown

Start without a browser: POST https://api.widar.com/v1/signups, then the emailed code; or sign in with the CLI, which comes with a widar workspace: widar auth login. The key is read from WIDAR_API_KEY.

  • Agent setup
  • MCP serverhttps://widar.com/mcp
  • Docs MCP serverhttps://widar.com/mcp
  • OpenAPI
  • 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.

A product of Bynn Intelligence, Inc.

  • llms.txt
  • agent-setup.md
  • Pricing