# Mark your first output

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

Documentation index: https://widar.com/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.

Section: Get started. URL: https://widar.com/docs/quickstart

Get a test key, register a system, mark an image and check it. About five minutes, in test mode, with nothing billed.

Updated December 4, 2026

## Get a test key

Sign up in the console, or with one call that needs no key. The answer holds your workspace and a test key that starts with `wd_test_`, shown once. Put it in the environment as `WIDAR_API_KEY`: the SDKs, the CLI and the MCP server read it from there.

API:

```bash
curl -X POST https://api.widar.com/v1/signups \
  -H "Content-Type: application/json" \
  -d '{
    "email": "sanne.bakker@lumenlabs.example",
    "workspace_name": "Lumen Labs",
    "country": "NL"
  }'
```

CLI:

```bash
widar signup \
  --email sanne.bakker@lumenlabs.example \
  --workspace-name 'Lumen Labs' \
  --country NL
```

MCP tool `sign_up`:

```json
{
  "name": "sign_up",
  "arguments": {
    "email": "sanne.bakker@lumenlabs.example",
    "workspace_name": "Lumen Labs",
    "country": "NL"
  }
}
```

TypeScript:

```typescript
// Client: widar's TypeScript SDK, provided with your workspace

const widar = new Client(); // no key needed
const result = await widar.account.signUp({
  email: "sanne.bakker@lumenlabs.example",
  workspace_name: "Lumen Labs",
  country: "NL",
});
```

Python:

```python
# Client: widar's Python SDK, provided with your workspace

widar = Client()  # no key needed
result = widar.account.sign_up(
    email="sanne.bakker@lumenlabs.example",
    workspace_name="Lumen Labs",
    country="NL",
)
```

Go:

```go
client := widar.NewClient() // no key needed
result, err := client.Account.SignUp(ctx, &widar.AccountSignUpParams{
	Email:         "sanne.bakker@lumenlabs.example",
	WorkspaceName: "Lumen Labs",
	Country:       "NL",
})
if err != nil {
	return err
}
```

Rust:

```rust
let client = widar::Client::from_env()?; // no key needed
let result = client
    .account()
    .sign_up(widar::account::SignUpParams {
        email: "sanne.bakker@lumenlabs.example".into(),
        workspace_name: "Lumen Labs".into(),
        country: "NL".into(),
        ..Default::default()
    })
    .await?;
```

## Set your key

curl is all you need: every step below is a plain HTTP call. The CLI and the SDKs come with your workspace, from [widar's sales team](https://widar.com/contact).

```bash
export WIDAR_API_KEY=wd_test_1Vd7MCMnl13pnFERzSLjDPnDEkeuleoL2YCZDk1y
```

## Register a system

A system is the generative AI product whose output you mark. Name it, say what it makes and how it is marked. widar issues its watermark keys at once, and in test mode its test certificate too.

API:

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

CLI:

```bash
widar systems create \
  --name 'Lumen Image' \
  --version 3.1 \
  --content-types image \
  --paths cloud_api \
  --jurisdictions EU,CA
```

MCP tool `create_system`:

```json
{
  "name": "create_system",
  "arguments": {
    "name": "Lumen Image",
    "version": "3.1",
    "content_types": [
      "image"
    ],
    "paths": [
      "cloud_api"
    ],
    "jurisdictions": [
      "EU",
      "CA"
    ]
  }
}
```

TypeScript:

```typescript
// Client: widar's TypeScript SDK, provided with your workspace

const widar = new Client(); // reads WIDAR_API_KEY
const result = await widar.systems.create({
  name: "Lumen Image",
  version: "3.1",
  content_types: ["image"],
  paths: ["cloud_api"],
  jurisdictions: ["EU", "CA"],
});
```

Python:

```python
# Client: widar's Python SDK, provided with your workspace

widar = Client()  # reads WIDAR_API_KEY
result = widar.systems.create(
    name="Lumen Image",
    version="3.1",
    content_types=["image"],
    paths=["cloud_api"],
    jurisdictions=["EU", "CA"],
)
```

Go:

```go
client := widar.NewClient() // reads WIDAR_API_KEY
result, err := client.Systems.Create(ctx, &widar.SystemsCreateParams{
	Name:          "Lumen Image",
	Version:       "3.1",
	ContentTypes:  []string{"image"},
	Paths:         []string{"cloud_api"},
	Jurisdictions: []string{"EU", "CA"},
})
if err != nil {
	return err
}
```

Rust:

```rust
let client = widar::Client::from_env()?; // reads WIDAR_API_KEY
let result = client
    .systems()
    .create(widar::systems::CreateParams {
        name: "Lumen Image".into(),
        version: "3.1".into(),
        content_types: vec!["image".into()],
        paths: vec!["cloud_api".into()],
        jurisdictions: vec!["EU".into(), "CA".into()],
        ..Default::default()
    })
    .await?;
```

## Mark an image

Send a generated image as the request body, with the system's id in the query. The answer is the image, marked, signed and timestamped, with the mark record, manifest and timestamp ids in its headers. Keep the marked file: it is the one you serve. Nothing you send is kept.

API:

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

CLI:

```bash
widar markings create output.png --system-id sys_4kT9qWm2RbXe --output marked.png
```

MCP tool:

```json
{
  "name": "create_marking",
  "arguments": {
    "system_id": "sys_4kT9qWm2RbXe",
    "file": "output.png"
  }
}
```

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

## Check it

Check the marked file the way anyone will. The findings name your system and company, the credential's signer and the time. A test mark is reported as a test.

API:

```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"
  }'
```

CLI:

```bash
widar verifications create \
  --url https://media.example/shared/4521.png
```

MCP tool `create_verification`:

```json
{
  "name": "create_verification",
  "arguments": {
    "url": "https://media.example/shared/4521.png"
  }
}
```

TypeScript:

```typescript
// Client: widar's TypeScript SDK, provided with your workspace

const widar = new Client(); // reads WIDAR_API_KEY
const result = await widar.verifications.create({
  url: "https://media.example/shared/4521.png",
});
```

Python:

```python
# Client: widar's Python SDK, provided with your workspace

widar = Client()  # reads WIDAR_API_KEY
result = widar.verifications.create(url="https://media.example/shared/4521.png")
```

Go:

```go
client := widar.NewClient() // reads WIDAR_API_KEY
result, err := client.Verifications.Create(ctx, &widar.VerificationsCreateParams{
	Url: "https://media.example/shared/4521.png",
})
if err != nil {
	return err
}
```

Rust:

```rust
let client = widar::Client::from_env()?; // reads WIDAR_API_KEY
let result = client
    .verifications()
    .create(widar::verifications::CreateParams {
        url: "https://media.example/shared/4521.png".into(),
        ..Default::default()
    })
    .await?;
```

## Read the result

A check answers with findings, one per kind of mark, never a single verdict. Each says what was found, who it names and when.

**201 Created**

```json
{
  "id": "vrf_3Ke8tYq6WmNc",
  "object": "verification",
  "mode": "test",
  "source": "api",
  "asked_by": {
    "kind": "api_key",
    "id": "key_2Mx8cRw5TnLs",
    "name": "Moderation worker"
  },
  "input_hash": "092f83c970489a2ec844a5e997ae695be075247f5e0a06664330a88094daa466",
  "content_type": "image",
  "format": "image/png",
  "findings": [
    {
      "kind": "widar_watermark",
      "outcome": "found",
      "who": {
        "system_id": "sys_4kT9qWm2RbXe",
        "system_name": "Lumen Image 3.1",
        "customer": "Lumen Labs B.V."
      },
      "when": "2026-12-03T09:41:52Z",
      "details": {
        "mark_record_id": "mrk_2Xq9vBn4LsKe",
        "test": true
      }
    },
    {
      "kind": "c2pa_credential",
      "outcome": "found",
      "who": {
        "signer": "Lumen Labs B.V."
      },
      "when": "2026-12-03T09:41:52Z",
      "details": {
        "assertions": [
          "Created by generative AI",
          "Lumen Image 3.1"
        ],
        "timestamp": {
          "time": "2026-12-03T09:41:52.204Z",
          "tsa": "widar Timestamp Authority 1"
        },
        "history": [
          {
            "action": "Created",
            "by": "Lumen Image 3.1",
            "at": "2026-12-03T09:41:52Z"
          }
        ],
        "test": true
      }
    }
  ],
  "created_at": "2026-12-03T09:42:04Z",
  "notes": null,
  "tags": []
}
```

- `widar_watermark` found: the mark was made with your system's key. `who` names the system and the company; `when` is when the output was marked.
- `c2pa_credential` found: a credential whose signature verifies. `who.signer` is the company the certificate names; `details` lists what the credential says and its timestamp.
- Nothing found reads `not_found` on every line. No mark found. This does not mean a person made it.

## Next

- [Choose a marking path](https://widar.com/docs/mark): Plugins for text, the cloud API or a sidecar for media, or the self-hosted edition.
- [Go live](https://widar.com/docs/certificates): A validated legal entity and a production certificate for each system. Free marks live up to 1,000 C2PA-only files and 500 watermarked files a month.
- [Publish a verify page](https://widar.com/docs/verify-pages): The free check your users and regulators can use, one per system.
- [Receive events](https://widar.com/docs/webhooks): Failed marks, certificates issued and expiring, installs gone quiet.
