# Sign up and pay as an 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.

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/agents

An agent goes from no account to marked output with no person: it signs up with one call, works in test mode at once, and pays for a plan itself where you allow it.

Updated December 4, 2026

## From nothing to marking

An agent's path

| Step | What the agent does |
| --- | --- |
| Learn | Fetches [`/agent-setup.md`](https://widar.com/agent-setup.md) and `https://api.widar.com/openapi.json`. |
| Sign up | `POST /v1/signups` with no key: an email, a workspace name, a country and the workspace's uses, the same question a person is asked. The answer holds the workspace and a test key (`wd_test_`) at once. |
| Test | Registers a system and marks, signs, timestamps and checks in test mode, with the test certificate authority and timestamp authority. Free, and never billed. |
| Go live | Live keys work on Free up to 1,000 C2PA-only files and 500 watermarked files a month. Past them, Business or Volume: a person chooses it in the console, or the agent pays, by a Checkout link it completes or hands over, by a Shared Payment Token, or with prepaid credit. |
| Certify | Submits the legal entity and the system for validation and adds the domain, writing the challenge's DNS record or file itself. Validation is automated, with a widar staff member only on a flagged case. The free certificate follows, with or without a plan, and renews every 30 days. Only the company representative's confirmation needs a person. |
| Run | Installs a plugin or the sidecar, or calls the cloud API. |

## When an agent pays

- A Checkout link works everywhere Stripe Checkout does. The agent opens it, or hands it to you. It pays for a plan, a plan change, a top-up or an add-on, such as the [compliance pack](https://widar.com/docs/compliance/evidence-record#compliance-pack) for one system.
- The plans and their prices are one call away with no key: `GET /v1/plans`, `widar plans list`.
- A Shared Payment Token is a scoped grant of a payment method, limited to widar as seller, an amount and a time. A payment over the workspace's agent payment cap waits for a member with billing rights to confirm it.
- Every agent payment is in billing with the agent named, the method and the amount; its receipt goes to the owners and billing members.
- An agent can never remove a member, change who receives receipts, or turn agent payments on.
- A `402` to an agent carries both ways to pay: a Checkout link, and a payment challenge for a token.

> **Settings that hold it.** Owners and billing members set `billing.agent_payments` (on by default), `billing.agent_payment_cap` (the plan's monthly fee by default) and `billing.agent_plan_changes`. See [Settings](https://widar.com/docs/settings).

## What stays free

Free, on every plan

| Free | Limit |
| --- | --- |
| Test mode: marking, signing, timestamps and checks with test keys | None |
| Live marking and signing on Free | 1,000 C2PA-only and 500 watermarked files a month, then `402 plan_required` |
| Checks of widar's marks with a key, by the API or the MCP server | None |
| [Certificates](https://widar.com/docs/certificates): issue, renewal, domains, ACME and EST | None. Never `402` |
| Every verify page and its API, `check_verify_page` included | None for the people who check |
| The public detector and `check_file` and `check_url`, without an account | 10 lookups a day per visitor, against misuse, then `402 plan_required` with the link to a free account |
| Each live system's [basic evidence record](https://widar.com/docs/compliance/evidence-record) | None |

## Sign up with one call

**Sign up, then prove the email**

curl:

```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", "uses": ["mark_and_sign", "sign_documents"]}'

curl -X POST https://api.widar.com/v1/signups/sgn_3Rk7vMa2XcLq/verify \
  -H "Content-Type: application/json" -d '{"code": "482913"}'
```

CLI:

```bash
widar signup --email sanne.bakker@lumenlabs.example --workspace-name "Lumen Labs" \
  --country NL --uses mark_and_sign,sign_documents
```

MCP tool:

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

The uses can be changed at any time with `PATCH /v1/settings/uses`, `widar settings uses-update` or the MCP tool `settings_uses_update`. They change what the console shows first, never what a key may call. See [Workspace](https://widar.com/docs/workspace#see-what-the-workspace-is-for).

## Sign up

Create an account and its workspace with an email, and get a test key at once; a one-time code goes to the email to prove it. Live mode needs a plan.

`POST /v1/signups`. Who may: Anyone, with no account yet. CLI: `widar signup --email <email> --workspace-name <name> --country <country> [--region <EU|US>]`. MCP tool: `sign_up`.

**Parameters**
- `email` (email, required): Where the one-time code goes.
- `workspace_name` (string, required): Your company's name. At most 80 characters.
- `country` (string, required): Your company's country, ISO 3166-1 alpha-2.
- `region` (enum, default "EU"): The region. One of `EU`, `US`.

**Returns** sign-up: The sign-up to verify, the workspace, and a test key shown once; test mode marks with the test CA and the test TSA and never bills. Live mode needs a plan.

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

Response, 201 Created:

```json
{
  "id": "sgn_3Rk7vMa2XcLq",
  "object": "signup",
  "email": "sanne.bakker@lumenlabs.example",
  "verified": false,
  "workspace": { "id": "ws_Lm3Qx8Rk2VnT", "name": "Lumen Labs" },
  "key": { "id": "key_4Nc9wQx2RtLm", "mode": "test", "secret": "wd_test_1Vd7MCMnl13pnFERzSLjDPnDEkeuleoL2YCZDk1y" },
  "plan_url": "https://widar.com/console/plan"
}
```

## Verify a sign-up

Send back the one-time code from the sign-up email to prove the email, within 15 minutes and 5 tries. Live mode needs a plan.

`POST /v1/signups/{signup_id}/verify`. Who may: Anyone, with no account yet. CLI: `widar signup verify <signup_id> --code <code>`. MCP tool: `verify_signup`.

**Parameters**
- `signup_id` (id (sgn_), required): The signup's id. In the path.
- `code` (string, required): The code. At most 12 characters.

**Returns** sign-up, verified: The sign-up, proved, with its workspace and whether a plan is still needed for live mode.

API:

```bash
curl -X POST https://api.widar.com/v1/signups/sgn_3Rk7vMa2XcLq/verify \
  -H "Content-Type: application/json" \
  -d '{
    "code": "482913"
  }'
```

CLI:

```bash
widar signup verify sgn_3Rk7vMa2XcLq --code 482913
```

MCP tool `verify_signup`:

```json
{
  "name": "verify_signup",
  "arguments": {
    "signup_id": "sgn_3Rk7vMa2XcLq",
    "code": "482913"
  }
}
```

## Create a checkout link

`POST /v1/checkout_sessions`

A Stripe Checkout page for a plan, a plan change, a top-up or an add-on, such as the compliance pack for one system. Open it if you can, or hand the link to your person. What you bought starts when it is paid, and `checkout.completed` follows.

Create a checkout link

- Who may: Owner, Admin and Billing
- CLI: `widar checkout create --purpose <plan|plan_change|top_up|add_on> [--plan <name>] [--amount <usd>] [--add-on compliance_pack --system <system_id>]`
- MCP tool: `checkout_sessions_create`
- Returns: The page's `url` and when it expires.

**Parameters**
- `purpose` (enum, required): `plan`, `plan_change`, `top_up` or `add_on`.
- `plan` (string): The plan, for `plan` and `plan_change`: `business` or `volume`. Free needs no checkout; Enterprise is arranged with sales.
- `amount` (number): For `top_up`: the credit to buy, in USD.
- `add_on` (enum): For `add_on`: `compliance_pack`.
- `system` (id (sys_)): For the compliance pack: the system it covers. It is bought per system.

**Create a checkout link**

API:

```bash
curl -X POST https://api.widar.com/v1/checkout_sessions \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "purpose": "plan",
    "plan": "volume"
  }'
```

CLI:

```bash
widar checkout create compliance_pack \
  --purpose plan \
  --plan volume
```

MCP tool:

```json
{
  "name": "checkout_sessions_create",
  "arguments": {
    "purpose": "plan",
    "plan": "volume"
  }
}
```

**Response, 201 Created**

```json
{
  "object": "checkout_session",
  "purpose": "plan",
  "plan": "volume",
  "url": "https://checkout.stripe.com/c/pay/cs_live_b1Rk...",
  "expires_at": "2026-12-04T09:42:00Z"
}
```

## Pay with a shared payment token

`POST /v1/agent_payments`

Presents a Stripe Shared Payment Token your wallet issued for widar, for a plan, a plan change, a top-up or an add-on. Under the workspace's agent payment cap it goes through at once; above it, a member with billing rights confirms it. A token used outside its grant is refused.

Pay with a shared payment token

- Who may: Owner, Admin and Billing
- CLI: `widar payments create --shared-payment-token <spt_...> --purpose <plan|plan_change|top_up|add_on> [--plan <name>] [--amount <usd>] [--add-on compliance_pack --system <system_id>]`
- MCP tool: `agent_payments_create`
- Returns: `201` with the receipt, or `202 awaiting_confirmation`; `402 payment_grant_exceeded` outside the token's grant.

**Parameters**
- `shared_payment_token` (string, required): The token, scoped to widar as seller, an amount and a time.
- `purpose` (enum, required): `plan`, `plan_change`, `top_up` or `add_on`.
- `plan` (string): The plan, for `plan` and `plan_change`.
- `amount` (number): For `top_up`: the credit to buy, in USD.
- `add_on` (enum): For `add_on`: `compliance_pack`.
- `system` (id (sys_)): For the compliance pack: the system it covers.

**Pay with a shared payment token**

API:

```bash
curl -X POST https://api.widar.com/v1/agent_payments \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "shared_payment_token": "spt_1Qx8Lm4RvT2c",
    "purpose": "top_up",
    "amount": 200
  }'
```

CLI:

```bash
widar payments create compliance_pack \
  --shared-payment-token spt_1Qx8Lm4RvT2c \
  --purpose top_up \
  --amount 200
```

MCP tool:

```json
{
  "name": "agent_payments_create",
  "arguments": {
    "shared_payment_token": "spt_1Qx8Lm4RvT2c",
    "purpose": "top_up",
    "amount": 200
  }
}
```

**Response, 201 Created**

```json
{
  "id": "apy_5Wn8kTr3HdQe",
  "object": "agent_payment",
  "agent": "Build agent",
  "method": "shared_payment_token",
  "purpose": "top_up",
  "amount": { "usd": 200 },
  "state": "paid",
  "receipt_url": "https://widar.com/receipts/rcp_8Nd2kQx5WmLs",
  "created_at": "2026-12-03T09:42:00Z"
}
```

`GET /v1/agent_payments`: documented at [List payments by agents](https://widar.com/docs/billing#list-payments-by-agents).

## Read an agent payment

`GET /v1/agent_payments/{payment_id}`

One agent payment and its receipt.

Read an agent payment

- Who may: Owner, Admin and Billing
- CLI: `widar payments get <payment_id>`
- MCP tool: `agent_payments_get`
- Returns: The agent payment.

**Parameters**
- `payment_id` (id (apy_), required): The payment.

**Read an agent payment**

API:

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

CLI:

```bash
widar payments get apy_5Wn8kTr3HdQe
```

MCP tool:

```json
{
  "name": "agent_payments_get",
  "arguments": {
    "payment_id": "apy_5Wn8kTr3HdQe"
  }
}
```

## Buy prepaid credit

`POST /v1/credit`

Prepaid credit by the Machine Payments Protocol, with Stripe as the method, with or without a key. Without a key it makes a workspace for the agent with one key, no members and no plan.

Buy prepaid credit

- Who may: Anyone, with no key or account
- CLI: `widar credit buy --amount <usd>`
- MCP tool: `credit_buy`
- Returns: A payment challenge first (`402`), then the receipt and, with no key, the new workspace's key.

**Parameters**
- `amount` (number, required): The credit to buy, in USD.

**Buy prepaid credit**

API:

```bash
curl -X POST https://api.widar.com/v1/credit \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 50
  }'
```

CLI:

```bash
widar credit buy --amount 50
```

MCP tool:

```json
{
  "name": "credit_buy",
  "arguments": {
    "amount": 50
  }
}
```
