Skip to content

Webhooks

A console for the endpoints that receive your events. Each endpoint shows its events, delivery rate and health; the selected endpoint opens below with its signing secret, a 24 hour histogram and recent deliveries with Retry, and an inspector shows the response and the payload and headers of any delivery.

On this page

Examples

Controlled selection

No endpoints yet

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

endpointsrequired
WebhookEndpoint[]
{ id, name, url, events, description?, paused?, createdBy?, createdAt?, apiVersion?, secretHint?, secret? }. The block adds the delivery rate and health itself. Give `secret` only if people may reveal it again; leave it out and the secret is shown once, when it is made.
deliveriesrequired
WebhookDelivery[]
{ id, endpointId, event, statusCode, durationMs, at, attempt? } for every endpoint. statusCode null means no answer (timeout or refused). Anything outside 2xx is a failure.
eventTypesrequired
string[]
The events the Add endpoint form offers as a multi-select.
selected / defaultSelected / onSelect
string | null / string | null / (id) => void
Defaultfirst endpoint
Controlled and uncontrolled. The selected endpoint opens below the table.
onAdd
(input, signal) => Promise<{ id, secret }>
Called with { url, events, description } once the form is valid (https only, at least one event). Resolve with the new id and the signing secret, which is shown once; add the endpoint to `endpoints` yourself. Throw to show the message in the form. Without it the button is disabled.
onRotateSecret
(endpoint, signal) => Promise<string>
Asks first (the old secret stops working), then shows the new one once. Throw to show the message and keep the choice open.
onRetry
(delivery, signal) => Promise<number | void>
Offered on failures. The row shows Retrying, then Delivered (with the new status code if you resolve with one), or the message and Try again if it throws. Honour `signal`.
loadDelivery
(id, signal) => Promise<DeliveryDetail>
Loaded when a delivery is selected: { request: { payload, headers }, response: { statusCode, durationMs, body } }. The inspector shows loading, the response and the Payload and Headers JSON with a copy button, or an error with Try again.
asOf
Date | string | number
Defaultnow
The moment times, rates and the strip count back from. Fix it for tests and demos.
pageSize
number
Default8
Deliveries shown before Show more.
description
string
DefaultWhere your events are delivered...
The line under the title.
title
string
DefaultWebhooks
The name of the region for screen readers. Give each block on a page its own.
headingLevel
2 | 3 | 4
Default2
The level of the block title; the selected endpoint is one level deeper and its sections two.
Health
endpoint
From the last 24 hours: Healthy when nothing failed, N failing otherwise (a watch above a 95% rate, at risk below it), Paused for a paused endpoint. The rate never rounds up to 100%.
Keyboard
lists
Up and Down move through endpoints and deliveries, Home and End jump, Enter selects. Retry and the other buttons are reached with Tab.
Motion
folds and swaps
The Add form and the rotate question fold open in 180 ms; Copy to Copied swaps text. Nothing plays on first render, and reduced motion makes all of it instant.
a11y
section
The strip has a text equivalent (delivered, failed and the worst hour). Status is an icon plus words, never colour alone. Retry, rotate and secret changes announce through a polite live region; errors use an alert.

When to use

When to use

  • Where people set up and watch the endpoints that receive events from your agent platform, and find out why a delivery failed.
  • Support for an integration: look at the exact payload and response of a delivery and send it again.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Webhooks to my app and wire it to my own data.
  • I need where people set up and watch the endpoints that receive events from your agent platform, and find out why a delivery failed. Set that up with the Knowns UI Webhooks.
  • Which Webhooks props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "webhooks" }) and search_docs({ query: "webhooks" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Webhooks, or found something off? We read every message.