One API on one host for every workspace, in widar’s EU data plane. The console calls the same routes your server does. Everything a person can do in the console is also an API call, a CLI command (widar <resource> <verb>) and an MCP tool, made from one registry so the four never differ. The OpenAPI description is at https://api.widar.com/openapi.json.
Authentication
Send a key as Authorization: Bearer. A wd_test_ key works in test mode and is never billed; wd_live_ is live. A key belongs to one workspace. Keys are stored as hashes and shown once. See Keys and test mode.
Requests and answers
- JSON in and out, every field in snake case. An object answers as itself, with
id,objectandmode; a list is{"items": [...], "next_cursor": ...}. - A call that carries content (marking, checking) sends the file as the request body with its media type, and its parameters in the query. A marked file comes back as the answer’s body, its ids in headers.
- Every answer carries
X-Request-Id, also namedX-Widar-Request-Id. - Times are UTC in ISO 8601. Ids are a prefix and twelve characters, such as
sys_for a system.
Errors
An error is {"error": {"code", "message", "doc_url", "issues"?}}. A fault that would happen again is a 4xx; only 500 and 503 (no room now, with Retry-After) are 5xx. Every code is on Errors.
Idempotency
Send Idempotency-Key (1 to 255 printable characters) on any write. A repeat within 24 hours gets the first answer, marked X-Widar-Idempotent-Replay: true. The same key on another request is 409 idempotency_key_reused; a repeat while the first runs is 409 idempotency_in_progress with Retry-After: 1. A repeated marking call returns the same marked output and is billed once, though widar kept nothing of the first.
Pagination
Lists are pages: limit (default 50, at most 200) and the opaque cursor from the last page’s next_cursor, until it is null. Newest first unless a page says otherwise.
Limits
A workspace has a rate its keys share, and a key may have its own cap below it and a daily spend cap. Over a limit, the answer is 429 rate_limited with Retry-After. Content calls have size limits per content type; see Mark.
Versions
The version is in the path: /v1. Within it, changes are additive only: new routes, new fields, new values. Read unknown fields and values without failing.
Every route
All 365 routes, core first, each linked to its entry with its request, its answer, its CLI command and its MCP tool. The CLI and the MCP server list the same calls by command and by tool.
Legal entity
Systems, policies and watermark keys
Installs and plugin keys
Marking
Signing
Certificates
Domains
Certificate renewal
Certificate transparency log, no key
Documents
Timestamps
Verifications
Verify pages
Public routes, no key
Interoperability
External schemes
Registered and imported keys
Shared detection
Classify
Evidence
Evidence record
Compliance center
Trust pages and access requests
Member listing
Badge
Routes
White label
Disclose
Fact checkers
Agent payments
Workspace and keys
Settings
Workspace
Members
Events
API keys
Webhooks
Search
Sign up
Your account
Notifications
Inbox
Assistant
Overview
Policies
Certificates, domains and the transparency log
Marking
Mark records
Timestamps
Verifications
Evidence
Accreditation
Settings
Realtime
Agent prompts
API logs
Downloads
Mcp
Billing and plan
Detect
Documents
Shared detection and keys
Compliance center
Trust pages
Member directory
White label
https://api.widar.com/v1curl https://api.widar.com/v1/systems \
-H "Authorization: Bearer $WIDAR_API_KEY"{
"error": {
"code": "marking_failed",
"message": "The output could not be marked and was held back.",
"doc_url": "https://widar.com/docs/errors#marking_failed"
}
}