Webhook Events
Outbound notifications from Komenin to your own systems, with signed payloads.
Register an endpoint
- Open Settings → Webhooks and add a URL.
- Optionally set a secret — with one, every delivery is signed.
- Select the event types, or leave all unselected to receive everything.
- Use the Test button to send a sample delivery.
Event types
- account.degraded, account.reauth_required, account.proxy_rotated
- comment.failed, content.failed
- approval.new, approval.timeout
- usage.warning, ai.quota_warning, ai.quota_exhausted
- competitor.new_post, campaign.completed, lead.captured
Verifying the signature
With a secret configured, deliveries carry X-Komenin-Signature: t=<unix>,v1=<hex hmac>. The signed payload is the string `<t>.<raw request body>`, HMAC-SHA256 with your secret. Reject timestamps older than 5 minutes to block replays, and compare in constant time.
// Node
import { createHmac, timingSafeEqual } from "node:crypto";
export function verify(secret, header, rawBody) {
const parts = Object.fromEntries(header.split(",").map((s) => s.split("=")));
const t = Number(parts.t);
if (!t || Math.abs(Math.floor(Date.now() / 1000) - t) > 300) return false;
const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
return timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1 || "", "hex"));
}Headers
- X-Komenin-Event — the event type
- X-Komenin-Signature — t=<unix>,v1=<hmac> (when a secret is set)
- X-Komenin-Delivery — stable id for this event; use it to dedupe retries
- Authorization: Bearer <secret> — kept for simple receivers
Payload shapes
Slack webhook URLs receive Block Kit, Discord webhook URLs receive an embed, and everything else receives the generic JSON envelope { event, title, body, href, workspace, extra, timestamp, source }.
Need the product UI? Open command center