# Cloud API

> 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: Mark and sign. URL: https://widar.com/docs/mark/cloud-api

Send a generated image, audio clip, video or PDF in one call and get it back marked, signed and timestamped. Processed in memory in the EU and never kept.

Updated December 4, 2026

**Mark an output**

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

## What comes back

The answer's body is the file, marked and signed, in the format you sent. Its headers carry the ids to keep beside it.

**201 Created**

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

Headers

| Header | Holds |
| --- | --- |
| `Widar-Mark-Id` | The [mark record](https://widar.com/docs/mark-records#read-a-mark-record): hashes and details of this output, never the output. |
| `Widar-Manifest-Id` | The signed [C2PA manifest](https://widar.com/docs/mark-records#read-a-manifest), kept so it can be recovered. |
| `Widar-Timestamp-Id` | The [timestamp](https://widar.com/docs/timestamps#read-a-timestamp) over the credential's signature. |
| `X-Request-Id` | The request, for support and the API log. |

## Retries are safe

Send an `Idempotency-Key` with each output. A repeat with the same key and the same file within 24 hours returns the same marked output and is billed once, though widar kept nothing of the first.

## A visible label too

`label=burn_in` adds the system's visible label to an image before it is marked, where its policy allows, so the watermark and the credential cover the labelled file. See [Disclose](https://widar.com/docs/disclose).

## Errors

Marking errors

| Status | Code | Means |
| --- | --- | --- |
| 409 | `system_not_live` | The system is a draft or retired. In live mode it needs product validation. |
| 409 | `certificate_required` | The system has no live certificate. [Request one](https://widar.com/docs/certificates#request-a-certificate). |
| 409 | `certificate_revoked` | The system's certificate was revoked. Request a new one. |
| 415 | `content_type_not_supported` | The system does not make this content type. |
| 415 | `format_not_supported` | The format cannot carry a credential, and the policy refuses it. |
| 413 | `content_too_large` | Over the limit for its content type. Use the sidecar. |
| 422 | `marking_failed` | The output could not be marked and was not returned (fail closed). It is recorded and `marking.failed` is sent. |
| 402 | `plan_required` | The Free plan's files this month are used: move to Business or Volume. |
