Skip to content

AI watermarking API and developer docs

Mark, sign and check AI output with one API. Every action is also a CLI command and an MCP tool.

$ curl -X POST https://api.widar.com/v1/markings \    --url-query system_id=sys_j9z4uac9izvs \    -H "Authorization: Bearer $WIDAR_API_KEY" \    -H "Content-Type: image/png" \    --data-binary @render.png \    -D headers.txt -o render.marked.png

Response

HTTP/1.1 201 Created
Content-Type: image/png
Widar-Mark-Id: mrk_hbhrt8kwog5x
Widar-Manifest-Id: mft_hbhrt8kwog5x
Widar-Timestamp-Id: tst_hbhrt8kwog5x
x-request-id: req_4f7q2m9c8d1a
Mark and sign an image, then read its ids from the headers

From sign-up to a marked output, without a person

An agent goes the whole way by API, the CLI or the MCP server. A person follows the same steps in the console.

  1. 1

    Learn

    Fetch the agent setup guide and the OpenAPI document.

    GET /agent-setup.md · https://api.widar.com/openapi.json
  2. 2

    Sign up

    One call with an email and a workspace name answers a test key at once; the emailed code confirms the address.

    POST https://api.widar.com/v1/signups
  3. 3

    Test

    Create a system, then mark, sign, timestamp and check an output in test mode, with test certificates and the test timestamp authority.

    widar systems create · widar markings create render.png
  4. 4

    Go live

    A plan opens the live key. An agent pays by a Checkout link or a Stripe Shared Payment Token, or hands the link to its person.

    POST /v1/checkout_sessions · POST /v1/agent_payments
  5. 5

    Certify

    Submit the legal entity and the system. Validation runs automatically; the certificate is issued and announced by webhook.

    POST /v1/legal_entity/submit · certificate.issued
  6. 6

    Run

    Run a plugin or the sidecar with a plugin key, or call the cloud API.

    POST /v1/plugin_keys · POST /v1/markings
$ widar signup --email ops@saltmarsh.example \    --workspace-name "Saltmarsh Studio" --country NL$ widar signup verify sgn_4kq8wz2nhp6t --code 482913$ widar systems create --name "Saltmarsh Render" --version 2 \    --content-types image --paths cloud_api --jurisdictions EU,CA$ widar markings create render.png --system-id sys_8vq3ka7rdx2m --check

What the last call answers, in this example

{
  "object": "marking",
  "mode": "test",
  "mark_record": { "id": "mrk_w3fp9tq6zc1a", "system_id": "sys_8vq3ka7rdx2m" },
  "manifest": { "id": "mft_w3fp9tq6zc1a" },
  "timestamp": { "id": "tst_w3fp9tq6zc1a" },
  "chain": [ "widar Test Claim Signing CA", "widar Test Root CA" ],
  "check": {
    "findings": [
      {
        "kind": "widar_watermark",
        "outcome": "found",
        "who": { "system": "Saltmarsh Render 2", "customer": "Saltmarsh Studio" }
      },
      {
        "kind": "c2pa_credential",
        "outcome": "found",
        "who": {
          "signer": "Saltmarsh Studio",
          "issuer": "widar Test Claim Signing CA"
        }
      }
    ]
  }
}
An example of an agent's first session, for an invented company: from sign-up to a marked and checked image in test mode

An example: Saltmarsh Studio is an invented company. Test mode from the first call: test certificates, the test timestamp authority, nothing billed. The same calls run live once a plan starts.

One action, four surfaces

The console, the API, the CLI and the MCP server come from one registry, so they never drift apart.

One action, four surfaces
ActionAPICLIMCP tool
List systemsGET /v1/systemswidar systems listlist_systems
List installsGET /v1/installswidar installs listlist_installs
List certificatesGET /v1/certificateswidar certificates listlist_certificates
List verificationsGET /v1/verificationswidar verifications listlist_verifications
List verify pagesGET /v1/verify_pageswidar verify-pages listlist_verify_pages
List API keysGET /v1/keyswidar keys listlist_api_keys

Test mode, free and untrusted on purpose

Every account starts in test mode. Nothing there is trusted by a live validator, and nothing is billed.

  • Test keywd_test_…Everything in test mode: test watermark keys, the test certificate authority and the test timestamp authority
  • Secret keywd_live_…Every server route of your workspace, once a plan starts
  • Plugin keywd_plg_…One system's plugin or sidecar: fetch keys, report usage
  • Publishable keywd_pub_…Embedding a verify page on your own site, held to its origins
  • Agent tokenwd_agent_…An AI agent acting as a member, with that member's role

Conventions

The rules every route follows.

Authentication
Authorization: Bearer with your key, read from WIDAR_API_KEY, never written in code.
Idempotency
Send an Idempotency-Key. A repeat within 24 hours gets the first answer and is billed once.
Errors
One shape for every error, with a code and a message. A fault that would repeat is a 4xx.
Pagination
A limit of up to 200 and an opaque cursor.
Limits
Over a limit, a 429 with Retry-After.
Request ids
Every answer carries x-request-id.
Versions
/v1 in the path. Changes within v1 only add.
$ curl -i -X POST https://api.widar.com/v1/markings \    --url-query system_id=sys_j9z4uac9izvs \    -H "Authorization: Bearer $WIDAR_API_KEY" \    -H "Idempotency-Key: 2f8c4a1e-7b3d-4c9a-9e51-0d6b8f2a7c43" \    -H "Content-Type: image/png" \    --data-binary @render.png

Response

HTTP/1.1 429 Too Many Requests
Retry-After: 2
x-request-id: req_7w2k9d4n1s6p

{
  "error": {
    "code": "rate_limited",
    "message": "Over the workspace's rate. Retry after 2 seconds.",
    "doc_url": "https://widar.com/docs/errors#rate_limited"
  }
}
A repeat-safe call, and the one shape of an error

Questions from developers

  • Yes. It signs up with one call, works in test mode at once, and pays for a plan by a Checkout link or a Stripe Shared Payment Token. A certificate still needs the legal entity validated, and the company's representative confirms it.

  • Test mode is the sandbox: free, with test keys, test certificates and a test timestamp authority that no live validator trusts.

  • At api.widar.com/openapi.json, made from the same registry as the console, the CLI and the MCP server.

  • No. Every sample reads the key from WIDAR_API_KEY. A key is shown once, when it is created.

  • Yes. The MCP server's check_file and check_verify_page tools and every verify page's API need no key.

Get a test key in one call

Create a free account, or let your agent sign up by API and mark its first output in test mode.

For agents

What this page answers

The AI watermarking API, C2PA signing API, SDKs, plugins, CLI and MCP server: mark, sign and check AI output from your code or from an AI agent.

Updated .

my-app · Claude Code

Set up widar for me: fetch https://widar.com/agent-setup.md and follow it.

Paste into any coding agent

Works withClaude CodeCodexGemini CLIGrok Build

Start without a browser

Sign up by API, no key
curl -X POST https://api.widar.com/v1/signups -H "Content-Type: application/json" -d '{"email":"you@example.com","workspace_name":"Your company"}'
Then send the emailed code
curl -X POST https://api.widar.com/v1/signups/{signup_id}/verify -H "Content-Type: application/json" -d '{"code":"<the code>"}'
Sign in with the CLI (it comes with a widar workspace)
widar auth login
Key variable
WIDAR_API_KEY
Read marking volume by API
curl -X GET https://api.widar.com/v1/marking/stats?days=30 -H "Authorization: Bearer $WIDAR_API_KEY"

This page by API, CLI and MCP

List API keys with the CLI
widar keys list
List API keys with the MCP tool
list_api_keys {}