# Sign your company's documents

> 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: Documents. URL: https://widar.com/docs/documents

Prove every invoice, receipt and statement is really yours. widar signs the PDFs your company issues with a PDF signature, a Content Credential that names your company, a timestamp and an invisible mark, and anyone can check them for free.

Updated December 3, 2026

## What a signed PDF carries

A signed PDF

| Layer | What it shows |
| --- | --- |
| The PDF signature | Signed by your company, as widar validated it, and whether the document has changed since. Issued under widar Document Signing CA G1. |
| The Content Credential | A C2PA credential naming your company and its domain, with your identity validated by widar. |
| The timestamp | From widar's RFC 3161 timestamp authority: the document existed by that time. |
| The mark | Invisible, on the pages. It ties the file to its signing record. |
| Your verify page | One page per document issuer, such as `widar.com/verify/lumen-labs-invoices`, where anyone checks a PDF for free, with no account. |

A check shows each layer as its own finding, never one verdict: who signed, when, and whether the file changed. If you sign every PDF you issue, a document in your name without your signature is one your company did not sign through widar, and your verify page says so.

## Set it up

1. Validate your [legal entity](https://widar.com/docs/legal-entity) and its [domain](https://widar.com/docs/certificates/domains). The domain is written in your certificates.
2. Create a system of kind `document_issuer`, such as "Lumen Labs invoices". It gets its own verify page.
3. Turn document signing on, below. It waits for your company's representative and for an owner or admin to confirm with two-factor authentication: an agent can ask, a person confirms.
4. widar issues your [organisation certificates](https://widar.com/docs/documents/certificates) on its own, free, and renews them every 30 days.
5. [Sign](https://widar.com/docs/documents/sign): one PDF per call, a folder as a batch, or inside your own servers with the sidecar.
6. Publish your [signing statement](https://widar.com/docs/documents/signing-log#signing-statement), so readers know you sign every PDF you issue.

**A document issuer**

```json
{
  "id": "sys_6Dq2xLr9WnKe",
  "object": "system",
  "kind": "document_issuer",
  "mode": "live",
  "name": "Lumen Labs invoices",
  "description": "Invoices, credit notes and monthly statements Lumen Labs issues to its API customers.",
  "state": "live",
  "domain": "lumenlabs.example",
  "verify_page_slug": "lumen-labs-invoices",
  "certificate_ids": {
    "organisation_identity": "crt_8Ty3pNc6RvLq",
    "pdf_signing": "crt_2Hs9mWd4QxBe"
  },
  "created_at": "2026-09-21T10:05:00Z"
}
```

## How PDF readers show it

Adobe Acrobat and Reader do not yet recognise widar as a trusted issuer, so they show the signature's validity as unknown; they still show whether the document has changed since it was signed. Your verify page shows the validated signer. Other C2PA validators may show your company's identity as not trusted, since they do not read widar's roots.

> **What a widar signature is.** widar's PDF signatures and timestamps are not qualified electronic signatures, seals or time stamps under eIDAS, and widar is not a qualified trust service provider. A widar signature can be one of the controls your business uses to show that an invoice came from you and has not changed since. Whether it is enough depends on your country's rules and your own controls. This is not tax or legal advice.

## What widar keeps

widar keeps no documents after signing. A single signing call keeps nothing of the file; a batch's files and results are deleted within 24 hours. widar keeps each document's hash, the signatures, the certificates and the [signing log](https://widar.com/docs/documents/signing-log). You keep your signed PDFs in your own archive, for as long as your rules require.

## Price

Charged per document signed, from your plan's included count and then per document. The organisation certificates, their renewals and every check on your verify page are free. See [Pricing](https://widar.com/docs/pricing).

## Read document signing

Whether the company signs its PDFs, with its document issuer, its confirmations, its organisation certificates, the PDF signature level and the verify link.

`GET /v1/settings/documents`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar settings documents get`. MCP tool: `settings_documents_get`.

**Parameters**

**Returns** document settings: Document signing: its state (off, waiting, on, suspended), the issuer, the confirmations, the certificates, the signature level, the verify link and the signing statement.

API:

```bash
curl -X GET https://api.widar.com/v1/settings/documents \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar settings documents get
```

MCP tool `settings_documents_get`:

```json
{
  "name": "settings_documents_get",
  "arguments": {}
}
```

Response, 200 OK:

```json
{
  "object": "document_settings",
  "system_id": "sys_6Dq2xLr9WnKe",
  "enabled": true,
  "suspended": false,
  "pades_level": "B-LT",
  "verify_link": true,
  "confirmations": {
    "representative_at": "2026-09-21T10:40:00Z",
    "admin_at": "2026-09-21T10:52:00Z",
    "admin": "Joris van Dijk"
  },
  "updated_at": "2026-09-21T10:52:00Z"
}
```

## Change document signing

Turn document signing on, suspend it at once or resume it, and set the PDF signature level, the verify link and the signing statement.

`PATCH /v1/settings/documents`. Who may: Owner and Admin. CLI: `widar settings documents update [--enabled <true|false>] [--issuer-name <name>] [--pades-level <B-T|B-LT>] [--verify-link <true|false>] [--suspended <true|false>] [--signing-statement <text|none>] [--signing-statement-since <date|none>]`. MCP tool: `settings_documents_update`.

**Parameters**
- `enabled` (boolean): Document signing on or off.
- `issuer_name` (string): the document issuer's name, when turning signing on creates it At most 80 characters.
- `pades_level` (enum): The PDF signature's level: `B-T`, the signature with widar's timestamp, or `B-LT`, which also stores the data needed to check it in the document.
- `verify_link` (boolean): Places a small visible link to the company's verify page on the first page.
- `suspended` (boolean): Stops every signing at once, by any path, until set back. Calls answer `document_signing_suspended`.
- `signing_statement` (string): The signing statement. At most 280 characters. `null` clears it.
- `signing_statement_since` (string): The signing statement since. `null` clears it.

**Returns** document settings: Document signing, changed.

API:

```bash
curl -X PATCH https://api.widar.com/v1/settings/documents \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "suspended": true
  }'
```

CLI:

```bash
widar settings documents update --suspended
```

MCP tool `settings_documents_update`:

```json
{
  "name": "settings_documents_update",
  "arguments": {
    "suspended": true
  }
}
```

## Sign many PDFs

Sign many PDFs for one document issuer in one batch: one result per file, a refused file with its reason, and a one-time download.

`POST /v1/marking_batches`. Who may: Owner, Admin, Compliance and Developer. CLI: `widar marking-batches create <file.pdf ...> --system-id <sys_...> [--mode <live|test>]`. MCP tool: `marking_batches_create`.

**Parameters**
- `system_id` (id (sys_), required): The system's id.
- `files` (array of object, required): The files. At most 1,000 items.
- `mode` (enum): live or test; the call's own mode when left out One of `live`, `test`.

**Returns** marking batch: The batch (mbt_), with one result per file: signed, with its record, or refused, with its reason.

API:

```bash
curl -X POST https://api.widar.com/v1/marking_batches \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "system_id": "sys_4kT9qWm2RbXe",
    "files": "<files>"
  }'
```

CLI:

```bash
widar marking-batches create --system-id sys_4kT9qWm2RbXe
```

MCP tool `marking_batches_create`:

```json
{
  "name": "marking_batches_create",
  "arguments": {
    "system_id": "sys_4kT9qWm2RbXe",
    "files": "<files>"
  }
}
```

## Read a batch

One batch with one result per file: signed, refused with its reason, or waiting its turn.

`GET /v1/marking_batches/{marking_batch_id}`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar marking-batches get <marking_batch_id>`. MCP tool: `marking_batches_get`.

**Parameters**
- `marking_batch_id` (id (mbt_), required): The marking batch's id. In the path.

**Returns** marking batch: The batch, with one result per file.

API:

```bash
curl -X GET https://api.widar.com/v1/marking_batches/mbt_7Kc4rTq1ZpWn \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar marking-batches get mbt_7Kc4rTq1ZpWn
```

MCP tool `marking_batches_get`:

```json
{
  "name": "marking_batches_get",
  "arguments": {
    "marking_batch_id": "mbt_7Kc4rTq1ZpWn"
  }
}
```

Response, 200 OK:

```json
{
  "id": "mbt_7Kc4rTq1ZpWn",
  "object": "marking_batch",
  "mode": "live",
  "system_id": "sys_6Dq2xLr9WnKe",
  "state": "completed",
  "files_total": 312,
  "files_signed": 311,
  "files_refused": 1,
  "results": [
    {
      "upload_id": "upl_2Qm8vTx4KcLs",
      "file_name": "Statement-Corvane-Studios-2026-11.pdf",
      "outcome": "signed",
      "mark_record_id": "mrk_6Hn3pRw9TcXa"
    },
    {
      "upload_id": "upl_7Rd1kLq5WzNe",
      "file_name": "Statement-Fjordline-2026-11.pdf",
      "outcome": "refused",
      "error": "pdf_encrypted"
    }
  ],
  "created_at": "2026-12-01T05:00:00Z",
  "created_by": "Billing run (API key)",
  "completed_at": "2026-12-01T05:06:00Z",
  "download_expires_at": "2026-12-02T05:06:00Z"
}
```

## Download a batch

The signed PDFs of a batch, once: a ZIP of every signed file, or one file by its place in the batch.

`GET /v1/marking_batches/{marking_batch_id}/download`. Who may: Owner, Admin, Compliance and Developer. CLI: `widar marking-batches download <marking_batch_id> [--file-index <n>] [--output <file>]`. MCP tool: `marking_batches_download`.

**Parameters**
- `marking_batch_id` (id (mbt_), required): The marking batch's id. In the path.
- `file_index` (integer): one file only, by its place in the batch

**Returns** download: The signed PDF, or a ZIP of every signed PDF of the batch. Each can be downloaded once; widar keeps no copy after.

API:

```bash
curl -X GET https://api.widar.com/v1/marking_batches/mbt_7Kc4rTq1ZpWn/download \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar marking-batches download mbt_7Kc4rTq1ZpWn
```

MCP tool `marking_batches_download`:

```json
{
  "name": "marking_batches_download",
  "arguments": {
    "marking_batch_id": "mbt_7Kc4rTq1ZpWn"
  }
}
```

## List the signing log

Every PDF the company signed: its system, time, hash, how it arrived and who sent it. Never the document.

`GET /v1/signing_log`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar signing-log list [--system-id <sys_...>] [--channel <api|batch|upload|sidecar>] [--from <time>] [--to <time>] [--sha256 <hash>] [--query <text>] [--limit <n>] [--cursor <cursor>]`. MCP tool: `signing_log_list`.

**Parameters**
- `system_id` (id (sys_)): The system's id.
- `channel` (enum): The channel. One of `api`, `batch`, `upload`, `sidecar`.
- `from` (string): Signed on or after this day.
- `to` (string): Signed on or before this day.
- `sha256` (string): The entry for one document's hash.
- `query` (string): part of the file name the caller gave At most 120 characters.
- `limit` (integer, default 50): The limit. At least 1, at most 200.
- `cursor` (string): The cursor. At most 40 characters.

**Returns** list of signed documents: The signatures, newest first, each with its system, time, hash and pages, with counts for today, 30 days and this month.

API:

```bash
curl -X GET "https://api.widar.com/v1/signing_log?from=2026-12-01" \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar signing-log list --from 2026-12-01
```

MCP tool `signing_log_list`:

```json
{
  "name": "signing_log_list",
  "arguments": {
    "from": "2026-12-01"
  }
}
```

Response, 200 OK:

```json
{
  "items": [
    {
      "object": "signing_log_entry",
      "system_id": "sys_6Dq2xLr9WnKe",
      "mark_record_id": "mrk_4Pz8sKd2VmQe",
      "sha256": "51e9ca32557ab8084197287211e990f046f7ff7d0fa36f86b07a0eb3865ccfcb",
      "file_name": "INV-2026-4821.pdf",
      "pages": 2,
      "channel": "api",
      "signed_at": "2026-12-03T07:18:00Z",
      "signed_by": "Billing system (API key)",
      "credential": {
        "signer": "Lumen Labs B.V.",
        "domain": "lumenlabs.example",
        "issuer": "widar Claim Signing CA G1"
      },
      "pdf_signature": {
        "level": "B-LT",
        "signer": "Lumen Labs B.V.",
        "issuer": "widar Document Signing CA G1"
      },
      "timestamp": {
        "authority": "widar Timestamp Authority 1",
        "at": "2026-12-03T07:18:00Z"
      },
      "verify_url": "https://widar.com/verify/lumen-labs-invoices"
    }
  ],
  "next_cursor": null
}
```

## Confirm document signing

A person's step: the legal representative, or an owner or admin with two-factor, confirms that the company signs its documents through widar.

`POST /v1/settings/documents/confirm`. Who may: Owner and Admin. CLI: `widar settings documents confirm --as <representative|admin> --code <123456>`. MCP tool: `settings_documents_confirm`.

**Parameters**
- `as` (enum, required): who confirms: the legal representative, or an owner or admin One of `representative`, `admin`.
- `code` (string, required): The code.

**Returns** document settings: Document signing, with the confirmation recorded; on once both are in.

API:

```bash
# Members only: a signed-in member makes this call, in the console or with the CLI signed in (widar auth login). An API key is refused with 403 key_scope_denied.
curl -X POST https://api.widar.com/v1/settings/documents/confirm \
  -H "Content-Type: application/json" \
  -d '{
    "as": "representative",
    "code": "<code>"
  }'
```

CLI:

```bash
widar settings documents confirm \
  --as representative \
  --code <code>
```

MCP tool `settings_documents_confirm`:

```json
{
  "name": "settings_documents_confirm",
  "arguments": {
    "as": "representative",
    "code": "<code>"
  }
}
```

## Export the signing log

The signing log as CSV, one signature a line: system, time, hash, pages, channel and who sent it.

`GET /v1/signing_log/export`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar signing-log export [--system-id <sys_...>] [--channel <api|batch|upload|sidecar>] [--from <time>] [--to <time>] [--output <file.csv>]`. MCP tool: `signing_log_export`.

**Parameters**
- `system_id` (id (sys_)): The system's id.
- `channel` (enum): The channel. One of `api`, `batch`, `upload`, `sidecar`.
- `from` (string): The from.
- `to` (string): The to.

**Returns** download: A CSV file, one signed PDF a line. No document is in it.

API:

```bash
curl -X GET https://api.widar.com/v1/signing_log/export \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar signing-log export
```

MCP tool `signing_log_export`:

```json
{
  "name": "signing_log_export",
  "arguments": {}
}
```

## Read a signed document

One signed PDF: its Content Credential, its PDF signature, its timestamp and its mark, each on its own line, with the record's hashes.

`GET /v1/signed_documents/{signed_document_id}`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar signed-documents get <signed_document_id>`. MCP tool: `signed_documents_get`.

**Parameters**
- `signed_document_id` (id (mrk_), required): The signed document's id. In the path.

**Returns** signed document: The signed PDF's record: the credential, the PDF signature, the timestamp and the mark, the certificates, the batch, and what happened to it. Never the document.

API:

```bash
curl -X GET https://api.widar.com/v1/signed_documents/mrk_7Kq2Xw9 \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar signed-documents get mrk_7Kq2Xw9
```

MCP tool `signed_documents_get`:

```json
{
  "name": "signed_documents_get",
  "arguments": {
    "signed_document_id": "mrk_7Kq2Xw9"
  }
}
```

## List batches

The company's batches: files, state, how many were signed and refused, who started each and its download.

`GET /v1/marking_batches`. Who may: Owner, Admin, Compliance, Developer and Viewer. CLI: `widar marking-batches list [--system-id <sys_...>] [--state <queued|running|completed|failed>]`. MCP tool: `marking_batches_list`.

**Parameters**
- `system_id` (id (sys_)): The system's id.
- `state` (enum): The state. One of `queued`, `running`, `completed`, `failed`.

**Returns** list of marking batches: The batches, newest first.

API:

```bash
curl -X GET https://api.widar.com/v1/marking_batches \
  -H "Authorization: Bearer $WIDAR_API_KEY"
```

CLI:

```bash
widar marking-batches list
```

MCP tool `marking_batches_list`:

```json
{
  "name": "marking_batches_list",
  "arguments": {}
}
```

## Errors

Document errors

| Code | Means |
| --- | --- |
| `pdf_already_signed` | The PDF already carries a signature that adding one would break. Sign the unsigned original. |
| `pdf_encrypted` | The PDF is encrypted or password-protected. Send it unencrypted. |
| `pdf_a_not_supported` | widar does not sign PDF/A files, so they keep their PDF/A conformance. Export a plain PDF instead. |
| `pdf_hybrid_not_supported` | A hybrid-reference PDF. Save it again as a plain PDF. |
| `document_signing_suspended` | Document signing is suspended for the workspace. An owner or admin turns it back on. |
| `content_too_large` | Over 50 MB. |

## Events

Document events

| Event | When |
| --- | --- |
| `marking.failed` | A PDF was refused, with its error code. Never sent silently past. |
| `marking_batch.completed` | A batch finished, with how many files were signed and refused. |
| `certificate.issued` | An organisation certificate was issued or renewed. |
