Reference
Webhooks
Receive signed HTTP POSTs when events happen in your account. Configure endpoints from the API page in the dashboard; subscriptions are managed there rather than via this API.
Configure endpoints in the dashboard
Webhook subscriptions are created and revoked through the API page in the VIA dashboard, not through this API. Each endpoint can carry an optional shared secret; when one is set, VIA signs every delivery so you can verify it came from us.
Event types
data_source.data_updated
Active
Verifying deliveries
When an endpoint has a shared secret, every delivery includes an X-Webhook-Signature header containing the HMAC-SHA256 of the raw request body, prefixed with sha256=. Strip the prefix, recompute the digest with your secret, and compare using a constant-time comparison, never with ===.
The body itself carries the event name and an ISO 8601 timestamp, so you can route and log deliveries without trusting any header.
POST /your/webhook/endpoint HTTP/1.1
Content-Type: application/json
X-Webhook-Signature: sha256=7a4e8d61a93c...
{
"event": "data_source.data_updated",
"timestamp": "2026-05-20T14:30:00Z",
"data": {
"data_source_id": 4,
"data_source_name": "Consumer"
}
}
// Node 20+: verify the X-Webhook-Signature header
import crypto from 'node:crypto';
function verify(payloadRaw, signatureHeader, secret) {
const received = signatureHeader.replace(/^sha256=/, '');
const expected = crypto
.createHmac('sha256', secret)
.update(payloadRaw)
.digest('hex');
return crypto.timingSafeEqual(
Buffer.from(expected, 'hex'),
Buffer.from(received, 'hex'),
);
}