VR9 Infra
Log in
English

VR9 Infra webhooks

We send a POST with JSON to the address you entered when connecting the channel. Reply with 2xx within 5 seconds and do long work after replying. We don't follow redirects.

Headers

  • X-VR9-Signature: t=<unix>,v1=<hex>: the request signature. It is sent when the channel has a secret.
  • X-VR9-Event-Id: the message ID, equal to id in the body. Delivery is at least once, so the same message can arrive again: use the ID to drop duplicates.

Body

One request can carry several events, oldest first. Every item in events is a real event: there are no summary entries like "and N more". A large batch can arrive as several requests in a row. Times are in ISO 8601, UTC. detail and url can be null.

{
  "id": "6f1c0a9e3b7d4c25a8e1f09b2d4c7a31",
  "sentAt": "2026-11-04T09:30:12.000Z",
  "companyName": "Acme Ltd",
  "events": [
    {
      "id": "b3a71e0c95d24f68a1c4e7d20f5b8a93",
      "event": "targetDown",
      "occurredAt": "2026-11-04T09:29:48.000Z",
      "title": "Site is down",
      "detail": "Connection timed out",
      "entityName": "example.com",
      "url": "https://example.com"
    }
  ]
}

The event field is one of targetDown, targetUp, problemCreated, domainUnresolved, certExpired, portExposed, integrationDisconnected, mailFinding, mailAccountFailed, deadlines, deploySucceeded, deployFailed, deployCanceled or channelTest. New types can appear later: skip the ones you don't know.

Builds and deploys

The deploySucceeded, deployFailed and deployCanceled events report a build or a deploy that finished in the CI/CD connected to a project. Only these events carry the extra ci object; other events don't have the field at all. Here url at the top level is the project's page in VR9, and the link to the run itself is ci.url.

{
  "id": "d41e6a0b7c3f4e92a5b8c1f07e2d9a46",
  "event": "deployFailed",
  "occurredAt": "2026-11-12T14:05:31.000Z",
  "title": "Deploy failed",
  "detail": null,
  "entityName": "example.com",
  "url": "https://app.example/sites/64f0c1a2b3c4d5e6f7a8b9c0",
  "ci": {
    "kind": "deployment",
    "status": "failed",
    "name": "production",
    "branch": "main",
    "commitMessage": "Fix the checkout form",
    "author": "maria",
    "version": "1.4.2",
    "durationMs": 192000,
    "provider": "github",
    "url": "https://github.com/acme/shop/actions/runs/123456789"
  }
}
  • kind: deployment for a deploy, workflow for a build.
  • status: succeeded, failed or canceled. It always matches the event name.
  • name: the environment of a deploy or the workflow name of a build.
  • branch, commitMessage, author, version, durationMs and url can be null: not every system sends them.
  • provider: the system the event came from, github, gitlab or generic.

If a retry carries more events than before, the body id changes, but each event keeps its own id. Drop duplicates by events[].id.

Verifying the signature

Compute HMAC-SHA256 of <t>.<raw request body> with the channel secret and compare it to v1. Use the body exactly as received, before parsing. Reject requests older than 5 minutes. The secret is shown once. You can rotate it in the channel settings, and the old one stops working immediately.

Retries and pausing

We retry 429, 5xx and network failures for 24 hours and respect Retry-After. Messages older than 24 hours aren't sent. After a permanent refusal (other 4xx codes or a redirect) or 24 hours without a single success, the channel is paused and the company's admins are notified.

Test message

You receive a channelTest event when connecting, when pressing Test, and when re-enabling after a pause. Reply with 2xx as you would to any other event.

The secret is created together with the channel, so the first test is signed with a secret you haven't seen yet. If your receiver checks signatures, it will reject that test with 401: choose "Save anyway" in VR9 Infra, copy the secret from the final step and press Test again.

Signature check example

A Node.js example. The algorithm is the same in any language.

import { createHmac, timingSafeEqual } from 'node:crypto';

function isFromVr9(rawBody, header, secret) {
  if (typeof header !== 'string') return false;

  const parts = Object.fromEntries(header.split(',').map((part) => part.trim().split('=')));
  const time = Number(parts.t);

  if (!Number.isFinite(time) || !/^[0-9a-f]{64}$/i.test(parts.v1 ?? '')) return false;
  if (Math.abs(Date.now() / 1000 - time) > 300) return false;

  const expected = createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest();
  const received = Buffer.from(parts.v1, 'hex');

  return received.length === expected.length && timingSafeEqual(received, expected);
}

A lightweight infrastructure inventory and access registry for small teams.

Get started
Terms of UsePrivacy PolicyBlog
Support: infra@vr9.pro
© VR9 Infra 2026
Create by VR nine
Copy