Receive real-time notifications when data changes. Brutlers sends HTTP POST requests to your registered URL.
Register a URL that can receive HTTP POST requests. You will receive a secret for signature verification.
/api/vendor/webhooksRegister a new webhook. The secret is only shown once.
curl -X POST https://brutlers.com/api/vendor/webhooks \
-H "X-Api-Key: brut_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"url": "https://meine-app.de/webhooks/brutlers",
"events": ["order.created", "order.status_changed"]
}'Maximum 5 webhooks per vendor
| Event | Description |
|---|---|
| order.created | New order created |
| order.status_changed | Order status changed |
| inquiry.received | New inquiry received |
| appointment.confirmed | Appointment confirmed |
| appointment.cancelled | Appointment cancelled |
| customer.created | New customer created |
Each webhook request contains a JSON body with the event type and associated data.
{
"event": "order.status_changed",
"data": {
"id": "clx1234567890abcdef",
"status": "FITTING_READY",
"previousStatus": "IN_PRODUCTION",
"customerId": "clx0987654321fedcba",
"updatedAt": "2026-04-15T10:00:00.000Z"
},
"timestamp": "2026-04-15T10:00:01.234Z"
}Each request includes an HMAC-SHA256 signature header. Verify the signature to ensure the request is from Brutlers.
Header
X-Brutlers-Signatureimport { createHmac } from "crypto";
function verifySignature(body, signature, secret) {
const expected = createHmac("sha256", secret)
.update(body)
.digest("hex");
return signature === expected;
}
// Express/Next.js example
app.post("/webhooks/brutlers", (req, res) => {
const signature = req.headers["x-brutlers-signature"];
const body = JSON.stringify(req.body);
if (!verifySignature(body, signature, process.env.WEBHOOK_SECRET)) {
return res.status(401).send("Invalid signature");
}
const { event, data } = req.body;
console.log(`Event: ${event}`, data);
res.status(200).send("OK");
});On failure (status ≠ 2xx or timeout), the webhook will be retried up to 3 times:
/api/vendor/webhooksRegister a new webhook. The secret is only shown once.
/api/vendor/webhooks/:idUpdate the URL, events, or status of a webhook.
/api/vendor/webhooks/:idDelete a webhook and all associated delivery logs.