Appearance
Webhooks
A project can post its changes to your endpoint. Add one on the webhooks button in the editor rail — it is the owner's to set, since it decides where a copy of every change goes. Events:
element.created / updated / deleted— systems, containers, components and code elements.connection.created / updated / deleted.change_set.status_changed— the one a pipeline usually waits for.
Events arrive after the model settles, not on every keystroke, and say what changed rather than carrying the whole model. When one lands, ask the API for the current state of what it names.
http
POST /your/endpoint
X-Viaduct-Event: element.updated
X-Viaduct-Timestamp: 1788370155
X-Viaduct-Signature: 9f2b…
{
"event": "element.updated",
"project_id": "…",
"resource_id": "…",
"occurred_at": "2026-09-02T18:00:00.000Z",
"actor_id": "…",
"before": { "id": "…", "name": "Billing", "level": "system" },
"after": { "id": "…", "name": "Billing API", "level": "system" }
}Verify before you trust it. The signature is HMAC-SHA256 over timestamp.body with the secret shown once when the webhook is created:
js
const signed = `${req.headers['x-viaduct-timestamp']}.${rawBody}`;
const mine = crypto.createHmac('sha256', SECRET).update(signed).digest('hex');
const fresh = Math.abs(Date.now() / 1000 - Number(req.headers['x-viaduct-timestamp'])) < 300;
if (!fresh || mine !== req.headers['x-viaduct-signature']) return res.sendStatus(400);Non-2xx answers are retried five times over an hour, widening the gap each time; an endpoint that keeps failing is switched off and says so in its delivery log, which the dialog shows. Endpoints must be https and public — an address on a private network is refused when you add it and again before every delivery.