# AI watermarking API and developer docs

> 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.
>
> widar marks AI output for the EU AI Act and California's AI Transparency Act: an invisible watermark and a signed C2PA credential on text, images, audio and video, in one API, by Bynn Intelligence.

Updated December 4, 2026

Next step: [Create a free account](https://widar.com/sign-in?start=free), free in test mode, or [Talk to sales](https://widar.com/contact). An agent signs up and connects from https://widar.com/agent-setup.md.

Documentation index: https://widar.com/llms.txt

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

## 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. Learn: Fetch the agent setup guide and the OpenAPI document.
2. Sign up: One call with an email and a workspace name answers a test key at once; the emailed code confirms the address.
3. Test: Create a system, then mark, sign, timestamp and check an output in test mode, with test certificates and the test timestamp authority.
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.
5. Certify: Submit the legal entity and the system. Validation runs automatically; the certificate is issued and announced by webhook.
6. Run: Run a plugin or the sidecar with a plugin key, or call the cloud API.

Start: /agent-setup.md and https://api.widar.com/openapi.json; sign up with POST https://api.widar.com/v1/signups.

An example of an agent's first session, for an invented company: from sign-up to a marked and checked image in test mode, with the CLI: 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.

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 reference](https://widar.com/docs/api): REST at api.widar.com/v1. JSON in and out; for marking, a file in and the marked file out.
- [SDKs](https://widar.com/docs/sdks): Typed clients that follow the same contract, each tested against one shared suite. TypeScript, Python, Go, Rust.
- [Plugins](https://widar.com/integrations): vLLM, SGLang and Hugging Face Transformers.
- [Sidecar](https://widar.com/docs/mark/sidecar): A Docker image that answers like the API, on your own servers.
- [CLI](https://widar.com/docs/cli): Every console action from a terminal, as widar <resource> <verb>. widar auth login
- [MCP server](https://widar.com/docs/agents): Public verification tools with no key, and every account action under your key. https://widar.com/mcp (Streamable HTTP)
- [Webhooks](https://widar.com/docs/webhooks): Signed events for issued certificates, marking failures and more.
- [OpenAPI](https://api.widar.com/openapi.json): The whole contract, made from the same registry as everything else.
- [Agent setup](https://widar.com/agent-setup.md): One file an agent follows to sign up, connect and mark a first output. Every page also has its own llms.txt and Markdown.

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.

## 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.

| Key | Starts with | For |
| --- | --- | --- |
| 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.

| Topic | Rule |
| --- | --- |
| 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. |

## 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.

## Questions from developers

### Can an agent sign up and pay without a person?

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.

### Is there a sandbox?

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

### Where is the OpenAPI document?

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

### Do code samples ever hold a key?

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

### Can we try the public checks without a key?

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

## Developers in the docs

- [Quickstart](https://widar.com/docs/quickstart) (Markdown: https://widar.com/docs/quickstart.md)
- [Introduction](https://widar.com/docs/api) (Markdown: https://widar.com/docs/api.md)
- [SDKs](https://widar.com/docs/sdks) (Markdown: https://widar.com/docs/sdks.md)
- [CLI](https://widar.com/docs/cli) (Markdown: https://widar.com/docs/cli.md)
- [MCP server](https://widar.com/docs/mcp) (Markdown: https://widar.com/docs/mcp.md)
- [Sign up and pay](https://widar.com/docs/agents) (Markdown: https://widar.com/docs/agents.md)

## 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.

- Read this page as Markdown: https://widar.com/developers.md, or send `Accept: text/markdown` to https://widar.com/developers

### 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`
- List API keys by API: `curl -X GET https://api.widar.com/v1/keys -H "Authorization: Bearer $WIDAR_API_KEY"`

### List API keys by machine

- API: `curl -X GET https://api.widar.com/v1/keys -H "Authorization: Bearer $WIDAR_API_KEY"`
- CLI: `widar keys list`
- MCP tool: `list_api_keys {}`
- Docs: https://widar.com/docs/keys#list-api-keys

### Connect

- [Agent setup](https://widar.com/agent-setup.md): One file an agent follows to sign up, connect and mark a first output
- [MCP server](https://widar.com/mcp): Public verification tools with no key, and every account action as a tool under your key, over Streamable HTTP
- [Docs MCP server](https://widar.com/mcp): Search and read the docs, no key
- [OpenAPI](https://api.widar.com/openapi.json): Every API operation, described
- [llms.txt](https://widar.com/llms.txt): The map of this site and the docs
- [API](https://api.widar.com): Bearer key from WIDAR_API_KEY

Page: https://widar.com/developers
Markdown: https://widar.com/developers.md
Language: en
