Webhooks
Receive signed events from Brunel. Event catalog with example bodies, the X-Brunel-Signature header and how to verify it, delivery log, redelivery and retention.
Webhooks are available on Business and above. Set the endpoint in Platform → Notifications, then follow deliveries in Platform → Webhooks.
Delivery
Brunel sends a POST with a JSON body to your HTTPS endpoint:
| Header | Value |
|---|---|
Content-Type | application/json |
User-Agent | Brunel-Webhooks |
X-Brunel-Event | the event, e.g. usage.alert |
X-Brunel-Delivery | the delivery id |
X-Brunel-Signature | sha256=<HMAC-SHA256 of the raw body with your signing secret> |
Answer with any 2xx within 5 seconds. Redirects are not followed. Endpoints must be public addresses: private and internal ranges are refused, checked at each delivery.
Body
{
"id": "evt_Q2m9x3…",
"event": "usage.alert",
"createdAt": "2026-09-26T09:00:00.000Z",
"title": "80 % of this month's analyses used",
"lines": ["240 of 300 analyses used on the Pro plan"],
"repo": null,
"url": "https://brunel.cloud/c/…",
"data": {}
}id is stable: a redelivery sends the same body with the same id, so you can de-duplicate.
Verify the signature
Compute the HMAC-SHA256 of the raw body with your signing secret and compare it with the header in constant time, before parsing the JSON.
import { createHmac, timingSafeEqual } from "node:crypto";
export function verify(rawBody: string, header: string | null, secret: string): boolean {
const expected = Buffer.from(`sha256=${createHmac("sha256", secret).update(rawBody).digest("hex")}`);
const got = Buffer.from(header ?? "");
return got.length === expected.length && timingSafeEqual(got, expected);
}import hmac, hashlib
def verify(raw_body: bytes, header: str, secret: str) -> bool:
expected = "sha256=" + hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, header or "")Delivery log and redelivery
Each delivery is logged with its attempts: time, duration, response code or error. Brunel makes one attempt per event; Redeliver sends the same body again, signed with the current secret, up to 10 attempts per delivery. Send a test event checks your endpoint. Deliveries are kept 30 days.
Rotate the signing secret
Rotate secret issues a new secret; later deliveries and redeliveries use it. Update your receiver first, then rotate.
Events
api_key.expiring
API key expiring. An API key with an expiry reminder expires in 7 days.
{
"id": "evt_Q2m9…",
"event": "api_key.expiring",
"createdAt": "2026-09-26T09:00:00.000Z",
"title": "API key “CI” expires in 7 days",
"lines": [
"Rotate or replace it in Console → API keys."
],
"repo": null,
"url": "https://brunel.cloud/console/keys",
"data": {
"keyId": "3f9a1c0b2d4e"
}
}test
Test event. Sent from the console to check your endpoint.
{
"id": "evt_Q2m9…",
"event": "test",
"createdAt": "2026-09-26T09:00:00.000Z",
"title": "Test event from the Brunel console",
"lines": [],
"repo": null,
"url": null,
"data": {}
}