Skip to content
Docs
Ask the assistant
Sign inCreate a free account
Get startedMark and signCertificatesDocumentsCheck and recoverComply and proveAPI referencePricing and data

The API

  • Introduction
  • Errors

Events

  • Webhooks
  • Events
  • Realtime

Tools

  • CLI
  • SDKs
  • Agent prompts
  • API logs

Workspace

  • Workspace overview
  • Workspace
  • Members
  • API keys
  • Settings
  • Billing and plan
  • Search
  • Assistant

Your account

  • Your account
  • Notifications
  • Inbox

For agents

  • agent-setup.md
  • llms.txt
  • llms-full.txt
  1. Home
  2. Docs
  3. SDKs

API referenceTools

SDKs

Typed server SDKs for TypeScript, Python, Go and Rust, with your widar workspace. Each reads its key from the environment, retries safely and answers the API’s own objects.

Updated December 3, 2026

Ask about this pageRead this page as Markdown
On this page 3 sections
  1. Mark an output
  2. What every SDK does
  3. Errors

The SDKs come with a widar workspace: widar’s sales team provides them. Every call is also a plain HTTP call to https://api.widar.com, shown as curl on every page of the API reference.

Mark an output

// Client: widar's TypeScript SDK, provided with your workspace
import { readFile, writeFile } from "node:fs/promises";

const widar = new Client(); // reads WIDAR_API_KEY

const marked = await widar.markings.create({
  systemId: "sys_4kT9qWm2RbXe",
  file: await readFile("output.png"),
  contentType: "image/png",
  idempotencyKey: "lumen-out-7731",
});
await writeFile("marked.png", marked.body);
console.log(marked.markId, marked.manifestId);

What every SDK does

  • Reads the key from WIDAR_API_KEY, or takes it when the client is made. Never logs it.
  • Retries a 429, a 5xx or a lost connection with backoff, as long as Retry-After asks, with the same Idempotency-Key, a capped number of times.
  • Pages through lists for you, and answers the API’s own objects with their fields in your language’s case.
  • Raises one error type with the API’s code, message, status and request_id.
  • Every SDK passes the same conformance suite before a release.

Errors

TypeScript
// Client and ApiError: widar's TypeScript SDK, provided with your workspace

const widar = new Client(); // reads WIDAR_API_KEY

try {
  await widar.markings.create({ systemId: "sys_4kT9qWm2RbXe", file, contentType: "image/gif" });
} catch (e) {
  if (e instanceof ApiError && e.code === "marking_failed") {
    // held back: the policy fails closed. Do not serve the file.
  }
  throw e;
}

Every page in the API reference shows each call in all four languages, beside the API call, the CLI command and the MCP tool. An agent can use the MCP server at https://widar.com/mcp instead.

PreviousCLINextWorkspace overview

For agents

  • Read this page as Markdown

Start without a browser: POST https://api.widar.com/v1/signups, then the emailed code; or sign in with the CLI, which comes with a widar workspace: widar auth login. The key is read from WIDAR_API_KEY.

  • Agent setup
  • MCP serverhttps://widar.com/mcp
  • Docs MCP serverhttps://widar.com/mcp
  • OpenAPI
  • 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.

A product of Bynn Intelligence, Inc.

  • llms.txt
  • agent-setup.md
  • Pricing

On this page

  1. Mark an output
  2. What every SDK does
  3. Errors