- 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 twov1values. - Answer
2xxwithin 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-Idis 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.failedalways 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)));
}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"
}
}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
modeThe mode. One of
live,test.limitThe limit. At least 1, at most 200.
cursorThe cursor’s id.
curl -X GET https://api.widar.com/v1/webhook_endpoints \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/webhook_endpoints
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
modeThe 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
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_idRequiredThe 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}
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_idThe endpoint’s id.
stateThe state. One of
delivered,pending,failed,skipped.eventThe event.
event_idThe event id.
object_idThe object id.
limitThe limit. At least 1, at most 200.
cursorThe cursor’s id.
curl -X GET https://api.widar.com/v1/webhook_deliveries \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/webhook_deliveries
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_idRequiredThe 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}
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
formatThe format. One of
widar,compatible.limitThe limit. At least 1, at most 200.
cursorThe cursor.
curl -X GET https://api.widar.com/v1/event_types \
-H "Authorization: Bearer $WIDAR_API_KEY"GET /v1/event_types
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
limitThe 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
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_keyGET /v1/webhooks/public_key
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
urlRequiredThe url. At most 2,048 characters.
eventsRequiredThe events. At most 60 items.
formatThe format. One of
widar,compatible.modeThe mode. One of
live,test.descriptionThe description. At most 240 characters.
sourceThe source. One of
custom,zapier,make,n8n.max_retriesThe max retries. At most 65.
retry_frequency_minutesThe 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
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_idRequiredThe endpoint’s id. In the path.
urlThe url. At most 2,048 characters.
eventsThe events. At most 60 items.
descriptionThe description. At most 240 characters.
stateThe state. One of
enabled,disabled.max_retriesThe max retries. At most 65.
retry_frequency_minutesThe 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/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_idRequiredThe 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}
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_idRequiredThe endpoint’s id. In the path.
overlapThe overlap. One of
none,1h,24h,3d,7d.end_previousThe 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
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_idRequiredThe endpoint’s id. In the path.
typeRequiredThe type.
payloadThe payload.
targetThe 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
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_idRequiredThe 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
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_idRequiredThe endpoint’s id. In the path.
sinceRequiredThe 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
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
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
typeRequiredThe type.
endpoint_idThe 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