Docs menu: Webhooks

Webhooks

Create a watch with an HTTPS URL and we POST a signed JSON event when something changes. Respond with any 2xx status within 8 seconds.

Events

EventWhen
vehicle.mot_due, vehicle.tax_dueThe days remaining reach each of your daysBefore values (default 30 days, 7 days and 1 day)
vehicle.mot_expired, vehicle.tax_expiredThe first daily check after expiry
vehicle.mot_test_recordedA new MOT test appears
company.status_changedCompanies House status changes
company.accounts_overdue, company.confirmation_statement_overdueA filing becomes overdue
company.risk_changedThe overall risk level changes
company.insolvency_noticeThe Gazette publishes a corporate insolvency notice for the company
company.filingCompanies House records a new filing
company.charge_created, company.charge_satisfiedA charge is registered or satisfied
company.insolvency_caseAn insolvency case is opened or updated
sanctions.match_added, sanctions.match_removedA monitored name gains or loses a potential match after a list update

Creating a watch

POST/v1/watches

Send one of registration, companyNumber or sanctions (a name to monitor) with a url. List with GET /v1/watches and remove with DELETE /v1/watches/{id}. Add many companies at once with POST /v1/watches/bulk.

curl https://api.vardic.dev/v1/watches \
  -H "x-api-key: $VARDIC_API_KEY" \
  -H "content-type: application/json" \
  -d '{"registration":"AB12CDE","url":"https://example.com/hooks/vardic","daysBefore":[30,7,1]}'

Example event

{
  "id": "evt_7c1f0a9b2e4d6083",
  "type": "vehicle.mot_due",
  "createdAt": "2026-11-26T07:00:00.000Z",
  "watchId": "wch_3b8e5d1a9f2c7064",
  "data": {
    "registration": "AB12CDE",
    "expiryDate": "2026-12-10",
    "daysRemaining": 14
  }
}

Verifying signatures

The vardic-signature header is t=<unix time>,v1=<hex HMAC-SHA256 of "t.body"> using your webhook secret. Reject events older than five minutes.

import crypto from "node:crypto";

// header looks like: t=1763542800,v1=5d41402abc4b2a76b9719d911017c592...
export function verify(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const expected = crypto
    .createHmac("sha256", secret)
    .update(`${parts.t}.${rawBody}`)
    .digest("hex");
  const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
  return fresh && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}

Test events

POST /v1/watches/test-event with {"url": "https://…", "type": "company.insolvency_notice"} sends a signed sample, even with a sandbox key.

Email digests

Vehicle, company and sanctions watches can also send a daily email digest to your account email: set "emailDigest": true when you create the watch. A digest only goes out on days with events.

Ready for live data?

Sign up with your email for a live key and a sandbox key, with a free allowance on every product. For volume, an SLA or invoice billing, talk to us.