Skip to content

webhookSink

function webhookSink(options): AuditSink;

Defined in: src/sinks/webhook.ts:158

Create a Standard Webhooks-signed sink.

For per-tenant self-serve endpoints (customers adding their own SIEM URLs, with a portal, retries and dead-letters), use the @xtandard/webhooks bridge instead: @xtandard/audit/sinks/xtandard-webhooks.

Parameter Type
options WebhookSinkOptions

AuditSink

import { webhookSink } from "@xtandard/audit/sinks/webhook";
const sink = webhookSink({
url: "https://hooks.example.com/audit",
secret: process.env.AUDIT_WEBHOOK_SECRET!, // "whsec_…"
});