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$ widar markings create render.png --system-id sys_j9z4uac9izvsResponse
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_4f7q2m9c8d1aFrom 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
Learn
Fetch the agent setup guide and the OpenAPI document.
GET /agent-setup.md · https://api.widar.com/openapi.json - 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
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
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
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
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$ curl -s -X POST https://api.widar.com/v1/signups \ -H "Content-Type: application/json" \ -d '{"email": "ops@saltmarsh.example", "workspace_name": "Saltmarsh Studio", "country": "NL"}' > signup.json$ export WIDAR_API_KEY="$(jq -r .key.secret signup.json)"$ curl -s -X POST https://api.widar.com/v1/signups/sgn_4kq8wz2nhp6t/verify \ -H "Content-Type: application/json" -d '{"code": "482913"}'$ curl -s -X POST https://api.widar.com/v1/systems \ -H "Authorization: Bearer $WIDAR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name": "Saltmarsh Render", "version": "2", "content_types": ["image"], "paths": ["cloud_api"], "jurisdictions": ["EU", "CA"]}'$ curl -s -X POST https://api.widar.com/v1/markings \ --url-query system_id=sys_8vq3ka7rdx2m --url-query check=true \ -H "Authorization: Bearer $WIDAR_API_KEY" \ -H "Content-Type: image/png" \ --data-binary @render.png -D headers.txt -o render.marked.pngsign_up {"email": "ops@saltmarsh.example", "workspace_name": "Saltmarsh Studio",
"country": "NL"}
verify_signup {"signup_id": "sgn_4kq8wz2nhp6t", "code": "482913"}
create_system {"name": "Saltmarsh Render", "version": "2", "content_types": ["image"],
"paths": ["cloud_api"], "jurisdictions": ["EU", "CA"]}
create_marking {"system_id": "sys_8vq3ka7rdx2m", "file_name": "render.png", "check": true}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: 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.
Everything you build with
One contract, many ways in. Every piece is documented as a page, as Markdown and in llms.txt.
- API referenceREST at api.widar.com/v1. JSON in and out; for marking, a file in and the marked file out.
GET https://api.widar.com/v1/systems - SDKsTyped clients that follow the same contract, each tested against one shared suite. TypeScript, Python, Go, Rust.
export WIDAR_API_KEY=… - PluginsvLLM, SGLang and Hugging Face Transformers.
export WIDAR_PLUGIN_KEY=… - SidecarA Docker image that answers like the API, on your own servers.
POST localhost/v1/markings - CLIEvery console action from a terminal, as widar <resource> <verb>.
widar auth login - MCP serverPublic verification tools with no key, and every account action under your key.
https://widar.com/mcp - WebhooksSigned events for issued certificates, marking failures and more.
Widar-Signature: t=…,v1=… - OpenAPIThe whole contract, made from the same registry as everything else.
https://api.widar.com/openapi.json - Agent setupOne file an agent follows to sign up, connect and mark a first output. Every page also has its own llms.txt and Markdown.
curl -s https://widar.com/agent-setup.md
The CLI, the SDKs, the text plugins and the sidecar come with a widar workspace: widar's sales team provides them. Every action is also a plain HTTP call to the API. Talk to sales
One action, four surfaces
The console, the API, the CLI and the MCP server come from one registry, so they never drift apart.
| Action | API | CLI | MCP tool |
|---|---|---|---|
| List systems | GET /v1/systems | widar systems list | list_systems |
| List installs | GET /v1/installs | widar installs list | list_installs |
| List certificates | GET /v1/certificates | widar certificates list | list_certificates |
| List verifications | GET /v1/verifications | widar verifications list | list_verifications |
| List verify pages | GET /v1/verify_pages | widar verify-pages list | list_verify_pages |
| List API keys | GET /v1/keys | widar keys list | list_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 key
wd_test_…Everything in test mode: test watermark keys, the test certificate authority and the test timestamp authority - Secret key
wd_live_…Every server route of your workspace, once a plan starts - Plugin key
wd_plg_…One system's plugin or sidecar: fetch keys, report usage - Publishable key
wd_pub_…Embedding a verify page on your own site, held to its origins - Agent token
wd_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.pngResponse
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"
}
}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.