From nothing to marking
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 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
402to an agent carries both ways to pay: a Checkout link, and a payment challenge for a token.
What stays free
Sign up with one call
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.
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"}'POST/v1/signups
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.
- Who may
- Anyone, with no account yet
- CLI
widar signup --email <email> --workspace-name <name> --country <country> [--region <EU|US>]- MCP tool
sign_up- Returns
- 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.
Parameters
emailRequiredWhere the one-time code goes.
workspace_nameRequiredYour company’s name. At most 80 characters.
countryRequiredYour company’s country, ISO 3166-1 alpha-2.
regionThe region. One of
EU,US.
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"
}'POST /v1/signups
{
"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"
}POST/v1/signups/{signup_id}/verify
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.
- Who may
- Anyone, with no account yet
- CLI
widar signup verify <signup_id> --code <code>- MCP tool
verify_signup- Returns
- The sign-up, proved, with its workspace and whether a plan is still needed for live mode.
Parameters
signup_idRequiredThe signup’s id. In the path.
codeRequiredThe code. At most 12 characters.
curl -X POST https://api.widar.com/v1/signups/sgn_3Rk7vMa2XcLq/verify \
-H "Content-Type: application/json" \
-d '{
"code": "482913"
}'POST /v1/signups/{signup_id}/verify
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.
- 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
urland when it expires.
Parameters
purposeRequiredplan,plan_change,top_uporadd_on.planThe plan, for
planandplan_change:businessorvolume. Free needs no checkout; Enterprise is arranged with sales.amountFor
top_up: the credit to buy, in USD.add_onFor
add_on:compliance_pack.systemFor the compliance pack: the system it covers. It is bought per system.
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"
}'{
"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.
- 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
201with the receipt, or202 awaiting_confirmation;402 payment_grant_exceededoutside the token’s grant.
Parameters
shared_payment_tokenRequiredThe token, scoped to widar as seller, an amount and a time.
purposeRequiredplan,plan_change,top_uporadd_on.planThe plan, for
planandplan_change.amountFor
top_up: the credit to buy, in USD.add_onFor
add_on:compliance_pack.systemFor the compliance pack: the system it covers.
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
}'{
"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.
Read an agent payment
GET/v1/agent_payments/{payment_id}
One agent payment and its receipt.
- Who may
- Owner, Admin and Billing
- CLI
widar payments get <payment_id>- MCP tool
agent_payments_get- Returns
- The agent payment.
Parameters
payment_idRequiredThe payment.
curl -X GET https://api.widar.com/v1/agent_payments/apy_5Wn8kTr3HdQe \
-H "Authorization: Bearer $WIDAR_API_KEY"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.
- 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
amountRequiredThe credit to buy, in USD.
curl -X POST https://api.widar.com/v1/credit \
-H "Content-Type: application/json" \
-d '{
"amount": 50
}'