# Set up widar

widar releases soon. Sign-up, the API and the check tools open when widar releases. Until then every tool on widar's MCP server but `search_docs` and `read_doc` answers the error `releases_soon`, and no account or key can be made. Tell the person so, and follow the steps below once widar releases.

What works now is the documentation, with no key: on https://widar.com/mcp (Streamable HTTP), `search_docs` finds the pages that answer a question and `read_doc` reads one. Every page is also Markdown, listed at https://widar.com/llms.txt.

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

You are setting up widar (https://widar.com) for the person you work with. EU AI Act and California AI Transparency Act compliance: watermark and C2PA in one API. Everything a person can do in its console is also an API call, a CLI command and an MCP tool, so you can do all of it.

Follow the steps in order. Ask the person before anything runs in live mode, before money is spent, before a certificate is requested, and before anything is deleted. Never print, log or commit a key.

## 1. Find a key

- If `WIDAR_API_KEY` is set, use it. A key starting `wd_test_` works in test mode and is never billed. `wd_live_` is live.
- If there is none, sign up. It needs no key: by the call below, by `widar signup`, or by the MCP server's `sign_up` tool. Ask the person which email, company name and country to use, and what they want widar for: one or more of `mark_and_sign` (mark and sign AI-generated content), `sign_documents` (sign their company's documents) and `verify` (verify content), sent as `uses`. The uses only set what the console shows first. The answer holds the workspace and a test key, returned once: store it as `WIDAR_API_KEY` in the project's untracked environment file.

```bash
curl -X POST https://api.widar.com/v1/signups \
  -H "Content-Type: application/json" \
  -d '{
    "email": "<the person'\''s email>",
    "workspace_name": "<their company>",
    "country": "<their country, two letters>"
  }'
```

The code sent to that email confirms the address. Ask the person for it:

```bash
curl -X POST https://api.widar.com/v1/signups/{signup_id}/verify \
  -H "Content-Type: application/json" \
  -d '{
    "code": "<code from the email>"
  }'
```

Check the key at any time with `GET https://api.widar.com/v1/key_check` (`widar auth status`): its workspace, mode and scopes.

## 2. Connect

- MCP server: `https://widar.com/mcp` (Streamable HTTP) with `Authorization: Bearer $WIDAR_API_KEY`. Its public tools need no key: `check_file` and `check_url` check content for a widar mark or a C2PA credential (they share the public detector's 10 lookups a day without an account), `check_verify_page` checks against one system's verify page (free, never counted), `get_signed_result` returns a check's signed result, and the public records (the certificate log, the external schemes, the member directory, badges and trust pages) can be read. No MCP tool ever carries a watermark key or a private key.
- HTTP: every step below is a plain call to https://api.widar.com, shown as curl. Nothing to install.
- CLI and SDKs: The CLI comes with a widar workspace: widar's sales team provides it. Every action is `widar <resource> <verb>`. The SDKs (TypeScript, Python, Go, Rust) come with the workspace the same way.
- These docs, searchable with no key: https://widar.com/mcp, or every page as Markdown from https://widar.com/llms.txt.

## 3. Register the system

Ask the person what their product generates (text, images, audio, video), how it is served, and where (the EU, California). Then register it under the product's own name and version (the body below is an example for an invented company). widar issues its watermark keys at once, and in test mode a test certificate.

```bash
curl -X POST https://api.widar.com/v1/systems \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Lumen Chat",
    "version": "1.4",
    "content_types": [
      "text"
    ],
    "paths": [
      "plugin"
    ],
    "jurisdictions": [
      "EU"
    ]
  }'
```

## 4. Mark a first output

Choose the path that fits the stack:

- **Images, audio, video or PDF from the person's own code**: the cloud API. Send the file as the request body, with its media type in `Content-Type` and the system's id in the query; the answer is the file marked, signed and timestamped, with its ids in the `Widar-Mark-Id`, `Widar-Manifest-Id` and `Widar-Timestamp-Id` headers. Serve the marked file. Nothing is kept.

```bash
curl -X POST "https://api.widar.com/v1/markings?system_id=sys_4kT9qWm2RbXe" \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: image/png" \
  -H "Idempotency-Key: lumen-out-7731" \
  --data-binary @output.png \
  -D headers.txt -o marked.png
```

- **Text from vLLM, SGLang or Hugging Face Transformers**: a text plugin. The text plugins and the sidecar come with a widar workspace: widar's sales team provides them. Create a plugin key for the system, set it as `WIDAR_PLUGIN_KEY` on the server, and add the plugin where the model generates, as its guide says. Prompts and outputs stay on the person's servers. Guide: https://widar.com/docs/mark/plugins.

```bash
curl -X POST https://api.widar.com/v1/plugin_keys \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "system_id": "sys_8Hn3vLp6YdQa",
    "name": "vLLM fleet ams1"
  }'
```

- **Media generated on the person's own servers**: the sidecar, a container whose local API answers as the cloud API does. Guide: https://widar.com/docs/mark/sidecar.

If an output cannot be marked, the call fails with `marking_failed` and the output must not be served. Handle it that way in the code you write.

## 5. Check it

Check the marked output the way anyone will. The findings name the system and the company, the credential's signer and the time; a test mark says test.

```bash
curl -X POST https://api.widar.com/v1/verifications \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://media.example/shared/4521.png"
  }'
```

A check shows findings, never a guess. No mark found. This does not mean a person made it.

## 6. Going live, with the person

Live marking needs a validated legal entity and domain, and a production certificate for each system; the Free plan marks live up to 1,000 C2PA-only files and 500 watermarked files a month, and Business or Volume past them. Ask the person before each:

- A paid plan, past the free files: they choose Business or Volume in the console, or you pay with a Checkout link or a Stripe Shared Payment Token if they allow it (`checkout_sessions_create`, `agent_payments_create`). Guide: https://widar.com/docs/agents.
- The legal entity: you submit the company's details; its representative confirms the request in person. Validation is automated; a widar staff member steps in only on a flagged case.
- The domain: `widar domains create <domain>` answers a challenge. Write the TXT record at `_widar-challenge.<domain>`, or serve the file it names, then `widar domains validate <domain_id>`. Leave the record in place: it is checked again at every renewal. Guide: https://widar.com/docs/certificates/domains.
- A certificate per system, once the system passes product validation. It is free, with or without a plan, valid 60 days and renewed every 30. Make the key on the person's machine (`widar certificates request <system_id> --domain <domain>` does it) or let widar manage it; never send a private key anywhere. Keep it renewed with the renewal daemon, or `widar certificates renew --all` on a schedule. Guide: https://widar.com/docs/certificates.

## 7. If the person signs documents

For a company that wants its own PDFs signed (invoices, statements): create a system of kind `document_issuer`, ask an owner or admin to turn document signing on (they confirm it with two-factor authentication; you cannot), then sign each PDF with the same marking call and `Content-Type: application/pdf`. Describe it as proof of where a document came from and that it has not changed since, never as meeting a tax or invoicing scheme. Guide: https://widar.com/docs/documents.

## Where to read more

- Every page of the docs: https://widar.com/llms.txt
- The API: https://api.widar.com, described by https://api.widar.com/openapi.json
- Errors and what to do: https://widar.com/docs/errors
