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
    • List webhook endpoints
    • List webhook endpoints with their health
    • Read a webhook endpoint
    • List webhook deliveries
    • Read a webhook delivery
    • List event types
    • Read the test inbox
    • Read the webhook public key
    • Add a webhook endpoint
    • Change a webhook endpoint
    • Delete a webhook endpoint
    • Roll a signing secret
    • Send a test event
    • Resend a delivery
    • Recover failed deliveries
    • Clear the test inbox
    • Trigger a sample event
  • 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. Webhooks

API referenceEvents

Webhooks

widar sends events to your endpoint as they happen: a failed mark, a certificate issued or expiring, an install gone quiet, a check finished. Each delivery is signed with Widar-Signature and retried.

Updated December 3, 2026

Ask about this pageRead this page as Markdown
  • Each delivery is a POST with the event as JSON, signed in Widar-Signature: t=<unix seconds>,v1=<HMAC-SHA256 of "<t>.<body>"> with the endpoint’s secret. During a secret’s roll a delivery carries two v1 values.
  • Answer 2xx within 10 seconds. A delivery is tried 5 times over 15 minutes, and an endpoint failing for 72 hours is turned off; recover its deliveries once it works again.
  • Widar-Event-Id is the same on every try: use it to skip a delivery you already handled.
  • A delivery never goes to a private address. Test events go only to endpoints registered for test mode.
  • There is no event per marked output; marking.failed always fires. The catalogue is on Events.
import { createHmac, timingSafeEqual } from "node:crypto";

// header: the Widar-Signature header; body: the raw request body, as received
export function verify(header: string, body: string, secret: string): boolean {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=") as [string, string]));
  const t = Number(parts.t);
  if (!t || Math.abs(Date.now() / 1000 - t) > 300) return false; // older than five minutes
  const expected = createHmac("sha256", secret).update(`${t}.${body}`).digest("hex");
  return header
    .split(",")
    .filter((p) => p.startsWith("v1="))
    .some((p) => timingSafeEqual(Buffer.from(p.slice(3)), Buffer.from(expected)));
}
A delivery
POST /widar/events HTTP/1.1
Content-Type: application/json
User-Agent: Widar-Webhooks/1.0
Widar-Signature: t=1764755011,v1=5b1d6c0e9a...
Widar-Event-Id: evt_6Kd2qLw8XsRb

{
  "id": "evt_6Kd2qLw8XsRb",
  "object": "event",
  "type": "marking.failed",
  "mode": "live",
  "created_at": "2026-12-03T08:30:11Z",
  "data": {
    "id": "mfl_9Ns2cPw5RtLm",
    "object": "marking_failure",
    "system_id": "sys_4kT9qWm2RbXe",
    "reason_code": "format_not_supported",
    "outcome": "held"
  }
}

List webhook endpoints

Reads only

GET/v1/webhook_endpoints

Where the workspace receives events: each endpoint of a mode, newest first, with its state, its last delivery and its 24 hours' totals.

Who may
Owner, Admin and Developer
CLI
widar webhooks list [--mode <live|test>] [--limit <n>] [--cursor <whe_...>]
MCP tool
list_webhook_endpoints
Returns
The endpoints; next_cursor reads the page after.

Parameters

  • modeenum

    The mode. One of live, test.

  • limitinteger

    The limit. At least 1, at most 200.

  • cursorid (whe_)

    The cursor’s id.

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

GET /v1/webhook_endpoints

List webhook endpoints with their health

Reads only

GET/v1/webhook_endpoints/health

Every endpoint of a mode, widar’s own and the compatible ones, with its state, its last delivery and its requests, failures and times over 24 hours.

Who may
Owner, Admin and Developer
CLI
widar webhooks health [--mode <live|test>]
MCP tool
get_webhook_health
Returns
The endpoints with their health; never a secret, only its last four characters.

Parameters

  • modeenum

    The mode. One of live, test.

curl -X GET https://api.widar.com/v1/webhook_endpoints/health \
  -H "Authorization: Bearer $WIDAR_API_KEY"

GET /v1/webhook_endpoints/health

Read a webhook endpoint

Reads only

GET/v1/webhook_endpoints/{endpoint_id}

One endpoint: its address, format, mode, events, state, health, the secret’s last four characters and its retry rules.

Who may
Owner, Admin and Developer
CLI
widar webhooks get <endpoint_id>
MCP tool
get_webhook_endpoint
Returns
The endpoint, without its secret.

Parameters

  • endpoint_idid (whe_)Required

    The endpoint’s id. In the path.

curl -X GET https://api.widar.com/v1/webhook_endpoints/whe_7Kq2Xw9 \
  -H "Authorization: Bearer $WIDAR_API_KEY"

GET /v1/webhook_endpoints/{endpoint_id}

List webhook deliveries

Reads only

GET/v1/webhook_deliveries

One row per event per endpoint, newest first, with its state, attempts and last status; filter by endpoint, state, event type, one event’s id or an object’s id.

Who may
Owner, Admin and Developer
CLI
widar webhooks deliveries [--endpoint-id <whe_id>] [--state <delivered|pending|failed|skipped>] [--event <type>] [--event-id <evt_id>] [--object-id <object_id>] [--limit <n>] [--cursor <dlv_id>]
MCP tool
list_webhook_deliveries
Returns
The deliveries, newest first, test sends marked; next_cursor reads the page after.

Parameters

  • endpoint_idid (whe_)

    The endpoint’s id.

  • stateenum

    The state. One of delivered, pending, failed, skipped.

  • eventstring

    The event.

  • event_idstring

    The event id.

  • object_idstring

    The object id.

  • limitinteger

    The limit. At least 1, at most 200.

  • cursorid (dlv_)

    The cursor’s id.

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

GET /v1/webhook_deliveries

Read a webhook delivery

Reads only

GET/v1/webhook_deliveries/{delivery_id}

One delivery with every attempt: the request exactly as sent (address, method, headers with the signature, body) and the response (status, headers, body, time).

Who may
Owner, Admin and Developer
CLI
widar webhooks delivery <delivery_id>
MCP tool
get_webhook_delivery
Returns
The delivery and each attempt’s request and response.

Parameters

  • delivery_idid (dlv_)Required

    The delivery’s id. In the path.

curl -X GET https://api.widar.com/v1/webhook_deliveries/dlv_7Kq2Xw9 \
  -H "Authorization: Bearer $WIDAR_API_KEY"

GET /v1/webhook_deliveries/{delivery_id}

List event types

Reads only

GET/v1/event_types

The events an endpoint can receive, grouped by product, each with what it means and an example payload.

Who may
Owner, Admin and Developer
CLI
widar events types [--format <widar>] [--limit <n>] [--cursor <type>]
MCP tool
list_event_types
Returns
The catalogue of widar’s events, with examples.

Parameters

  • formatenum

    The format. One of widar, compatible.

  • limitinteger

    The limit. At least 1, at most 200.

  • cursorstring

    The cursor.

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

GET /v1/event_types

Read the test inbox

Reads only

GET/v1/webhook_inbox

The workspace’s widar-hosted test address and the last requests it received, each with its headers, body and whether its signature verifies.

Who may
Owner, Admin and Developer
CLI
widar webhooks inbox [--limit <1-100>]
MCP tool
get_webhook_inbox
Returns
The inbox’s address and its newest requests of the last 7 days: limit of them, 1 to 100, all 100 it keeps when left out.

Parameters

  • limitinteger

    The limit. At least 1, at most 100.

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

GET /v1/webhook_inbox

Read the webhook public key

Reads only

GET/v1/webhooks/public_key

widar’s RSA public key, published with no key so a receiver can fetch it on its own; at most 60 a minute from one address. A widar webhook is verified with its endpoint’s secret, in the widar-Signature header.

Who may
Anyone, with no account yet
CLI
widar webhooks public-key
MCP tool
get_webhook_public_key
Returns
status ok, the algorithm RS256 and the public key as PEM. When the signing key cannot be read: 503 with the code signing_key_unavailable.

No parameters.

curl -X GET https://api.widar.com/v1/webhooks/public_key

GET /v1/webhooks/public_key

Add a webhook endpoint

Changes data

POST/v1/webhook_endpoints

Register an https address for widar’s own events or for the compatible document events, live or test; its signing secret is shown once.

Who may
Owner, Admin and Developer
CLI
widar webhooks create --url <https://...> --events <type,type> [--format <widar>] [--mode <live|test>] [--description <text>] [--source <custom|zapier|make|n8n>] [--max-retries <0-65>] [--retry-frequency-minutes <1-1440>]
MCP tool
create_webhook_endpoint
Returns
The endpoint, and its signing secret shown this once.

Parameters

  • urlstringRequired

    The url. At most 2,048 characters.

  • eventsarray of stringRequired

    The events. At most 60 items.

  • formatenumDefault "widar"

    The format. One of widar, compatible.

  • modeenumDefault "live"

    The mode. One of live, test.

  • descriptionstring

    The description. At most 240 characters.

  • sourceenumDefault "custom"

    The source. One of custom, zapier, make, n8n.

  • max_retriesinteger

    The max retries. At most 65.

  • retry_frequency_minutesinteger

    The retry frequency minutes. At least 1, at most 1,440.

curl -X POST https://api.widar.com/v1/webhook_endpoints \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "<url>",
    "events": "<events>"
  }'

POST /v1/webhook_endpoints

Change a webhook endpoint

Changes data

PATCH/v1/webhook_endpoints/{endpoint_id}

Change an endpoint’s address, events or description, or disable it and enable it again; the format and the mode stay as made.

Who may
Owner, Admin and Developer
CLI
widar webhooks update <endpoint_id> [--url <https://...>] [--events <type,type>] [--description <text>] [--state <enabled|disabled>] [--max-retries <0-65>] [--retry-frequency-minutes <1-1440>]
MCP tool
update_webhook_endpoint
Returns
The endpoint as it is now.

Parameters

  • endpoint_idid (whe_)Required

    The endpoint’s id. In the path.

  • urlstring

    The url. At most 2,048 characters.

  • eventsarray of string

    The events. At most 60 items.

  • descriptionstring

    The description. At most 240 characters.

  • stateenum

    The state. One of enabled, disabled.

  • max_retriesinteger

    The max retries. At most 65.

  • retry_frequency_minutesinteger

    The retry frequency minutes. At least 1, at most 1,440.

curl -X PATCH https://api.widar.com/v1/webhook_endpoints/whe_7Kq2Xw9 \
  -H "Authorization: Bearer $WIDAR_API_KEY"

PATCH /v1/webhook_endpoints/{endpoint_id}

Delete a webhook endpoint

Changes data

DELETE/v1/webhook_endpoints/{endpoint_id}

Stop sending to an endpoint and remove it; its delivery log is kept until its retention ends.

Who may
Owner, Admin and Developer
CLI
widar webhooks delete <endpoint_id>
MCP tool
delete_webhook_endpoint
Returns
The endpoint’s id, deleted.

Parameters

  • endpoint_idid (whe_)Required

    The endpoint’s id. In the path.

curl -X DELETE https://api.widar.com/v1/webhook_endpoints/whe_7Kq2Xw9 \
  -H "Authorization: Bearer $WIDAR_API_KEY"

DELETE /v1/webhook_endpoints/{endpoint_id}

Roll a signing secret

Changes data

POST/v1/webhook_endpoints/{endpoint_id}/roll_secret

Give a widar endpoint a new signing secret, shown once; the old one keeps verifying for the overlap chosen, none to 7 days. While an earlier secret still verifies, a roll is refused unless it ends that one now.

Who may
Owner, Admin and Developer
CLI
widar webhooks roll-secret <endpoint_id> [--overlap <none|1h|24h|3d|7d>] [--end-previous]
MCP tool
roll_webhook_secret
Returns
The endpoint and its new secret, shown this once.

Parameters

  • endpoint_idid (whe_)Required

    The endpoint’s id. In the path.

  • overlapenumDefault "24h"

    The overlap. One of none, 1h, 24h, 3d, 7d.

  • end_previousbooleanDefault false

    The end previous.

curl -X POST https://api.widar.com/v1/webhook_endpoints/whe_7Kq2Xw9/roll_secret \
  -H "Authorization: Bearer $WIDAR_API_KEY"

POST /v1/webhook_endpoints/{endpoint_id}/roll_secret

Send a test event

Changes data

POST/v1/webhook_endpoints/{endpoint_id}/test

Send a sample of any event type to an endpoint, live or test, or to the test inbox, as a real signed request; the answer is the attempt.

Who may
Owner, Admin and Developer
CLI
widar webhooks test <endpoint_id> --type <event> [--payload <json>] [--target <endpoint|inbox>]
MCP tool
send_test_webhook
Returns
The test send: the request as sent and the endpoint’s answer, within 10 seconds.

Parameters

  • endpoint_idid (whe_)Required

    The endpoint’s id. In the path.

  • typestringRequired

    The type.

  • payloadrecord

    The payload.

  • targetenumDefault "endpoint"

    The target. One of endpoint, inbox.

curl -X POST https://api.widar.com/v1/webhook_endpoints/whe_7Kq2Xw9/test \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "<type>"
  }'

POST /v1/webhook_endpoints/{endpoint_id}/test

Resend a delivery

Changes data

POST/v1/webhook_deliveries/{delivery_id}/resend

Send one delivery again with the same event id and a fresh timestamp and signature; the real result is logged as a new attempt.

Who may
Owner, Admin and Developer
CLI
widar webhooks resend <delivery_id>
MCP tool
resend_webhook_delivery
Returns
The delivery with its new attempt.

Parameters

  • delivery_idid (dlv_)Required

    The delivery’s id. In the path.

curl -X POST https://api.widar.com/v1/webhook_deliveries/dlv_7Kq2Xw9/resend \
  -H "Authorization: Bearer $WIDAR_API_KEY"

POST /v1/webhook_deliveries/{delivery_id}/resend

Recover failed deliveries

Changes data

POST/v1/webhook_endpoints/{endpoint_id}/recover

Send again every delivery of an endpoint that failed or was skipped since a date, and try now every one still waiting for its next retry. One recover an endpoint a minute.

Who may
Owner, Admin and Developer
CLI
widar webhooks recover <endpoint_id> --since <date>
MCP tool
recover_webhook_deliveries
Returns
How many were sent again, how many waiting retries were tried now, how many were tried in the last minute and keep their schedule with the earliest next try, and the deliveries.

Parameters

  • endpoint_idid (whe_)Required

    The endpoint’s id. In the path.

  • sincestringRequired

    The since.

curl -X POST https://api.widar.com/v1/webhook_endpoints/whe_7Kq2Xw9/recover \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "since": "<since>"
  }'

POST /v1/webhook_endpoints/{endpoint_id}/recover

Clear the test inbox

Changes data

DELETE/v1/webhook_inbox/requests

Remove every request the test inbox holds; its address stays the same.

Who may
Owner, Admin and Developer
CLI
widar webhooks inbox-clear
MCP tool
clear_webhook_inbox
Returns
The inbox’s id, its requests deleted, and how many went; its address stays.

No parameters.

curl -X DELETE https://api.widar.com/v1/webhook_inbox/requests \
  -H "Authorization: Bearer $WIDAR_API_KEY"

DELETE /v1/webhook_inbox/requests

Trigger a sample event

Changes data

POST/v1/test_triggers

Send a sample of one event type, with invented data, to every endpoint of this mode that takes it, or to one endpoint, each as a test delivery.

Who may
Owner, Admin and Developer
CLI
widar webhooks trigger --type <event> [--endpoint-id <endpoint_id>]
MCP tool
trigger_sample_event
Returns
The sample, and the test delivery made to each endpoint it reached.

Parameters

  • typestringRequired

    The type.

  • endpoint_idid (whe_)

    The endpoint’s id.

curl -X POST https://api.widar.com/v1/test_triggers \
  -H "Authorization: Bearer $WIDAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "<type>"
  }'

POST /v1/test_triggers

PreviousErrorsNextEvents

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