Skip to content

Webhooks

A webhook is an address you give the application. When something happens that you chose, such as a review being requested or a planned control needing a ticket, the application posts the event there. Your service, your channel or your automation rule then acts on it. Administrators set webhooks up, under Administration, Webhooks.

  1. Under Administration, open Webhooks and choose Add a Webhook. The dialog goes step by step: Kind and Name, Address, Events, then Review.
  2. Kind and Name: choose what receives it, and give it a name your administrators will recognize.
    • Signed JSON: your own service. It gets the event as JSON, signed with a secret the application makes.
    • Slack: a Slack incoming webhook. A line or two appears in the channel, with a link to the model.
    • Microsoft Teams: a Teams workflow’s webhook. A card appears in the channel or chat, with a link to the model.
    • Jira Automation: an Automation rule’s incoming webhook. The rule gets the event as JSON and acts on it.
  3. Address: paste the address the other product gave you. For Jira Automation, also paste the rule’s Token.
  4. Events: choose what it is sent. Leave Include Restricted Models off unless you mean it (see Restricted Models). A webhook that is not Active is sent nothing.
  5. Review, then Add. For a signed webhook, the signing secret is shown once: copy it into your service’s secret store now.

An organization has at most 10 webhooks. The address, the signing secret and the token are kept sealed with your organization’s key. Once saved, only the address’s host and its last four characters are shown again.

Event Sent when
model.revision_added A revision becomes a model’s current one: the engine’s validation passed it.
review.requested An author asks for a model to be reviewed.
review.published The approver approves and publishes the current revision.
review.changes_requested The approver decides the current revision needs changes before it is published.
control.needs_ticket A control is planned or proposed in a revision that just became current, has no ticket linked, and was not already planned or proposed in the revision before. Each control is announced once, so a rule does not make its issue twice.
control.ticket_linked A control is linked to a ticket, or its link moves to another ticket. A status written to a link that stays the same is not announced.
control.ticket_unlinked A control’s link to a ticket is removed.
ping You choose Send a Test. No webhook subscribes to it.

The names never change, so a rule or a script can rely on them.

Every event has one shape. A field that does not apply is null.

{
"id": "0196f0a0-1c2d-7e3f-8a4b-5c6d7e8f9a0b",
"event": "control.needs_ticket",
"occurredAt": "2026-11-29T21:04:05.123+00:00",
"organization": { "id": "0196e1b2-0000-7000-8000-000000000001", "name": "Example Organization" },
"actor": { "name": "Ada Example", "kind": "person" },
"model": {
"id": "0196e1b2-0000-7000-8000-0000000000aa",
"name": "Billing",
"revision": 4,
"url": "https://forge.example.com/models/0196e1b2-0000-7000-8000-0000000000aa?tab=controls"
},
"control": { "id": "CTL-0001", "name": "Rate Limit Sign-In", "status": "planned", "owner": "Identity team", "dueDate": "2027-01-31" },
"ticket": null,
"webhook": null
}
  • id is the event’s own. A delivery sent again carries the same id, so use it to recognize an event you already acted on.
  • actor.kind is person or service_account.
  • model.url is the model’s address in the application, on the address the instance’s operator set for it.
  • control is there for the control. events, as the model says it. ticket is there for a ticket’s events: system (the ticket system’s name), id, status and url.
  • webhook is there for ping only: the webhook’s id and name.

Nothing else of a model is sent: not its description, its diagram, its threats or its other controls. Each text is at most 200 characters.

Each request is an HTTPS POST with Content-Type: application/json and these headers:

Header What it holds
X-Forge-Event The event’s name, such as review.requested.
X-Forge-Delivery This delivery’s id. A delivery sent again has a new one.
X-Forge-Signature Signed JSON only: t=<seconds>,v1=<signature> (see below).
X-Automation-Webhook-Token Jira Automation only: the rule’s token.
User-Agent NetBlueprint-Forge-Webhooks/1.0.

Slack is sent {"text": …}: one line for the event and a link to the model. Teams is sent a message with one Adaptive Card: the same line and an Open the Model button. In both, a name is shown as text: it cannot format the message or make a link of its own.

A signed webhook’s X-Forge-Signature is t= the time of the request in Unix seconds, and v1= the HMAC-SHA256, in lower-case hex, of the time, a dot and the body exactly as received, under the signing secret. Check it before you act on a request, and refuse one whose time is more than five minutes from your clock.

In Node.js:

import { createHmac, timingSafeEqual } from "node:crypto";
export function verify(secret, header, body, toleranceSeconds = 300) {
const parts = Object.fromEntries(header.split(",").map((part) => part.trim().split("=", 2)));
const time = Number(parts.t);
if (!Number.isInteger(time) || Math.abs(Date.now() / 1000 - time) > toleranceSeconds) return false;
const expected = Buffer.from(createHmac("sha256", secret).update(`${time}.${body}`).digest("hex"));
const given = Buffer.from(parts.v1 ?? "");
return given.length === expected.length && timingSafeEqual(given, expected);
}

In Python:

import hashlib
import hmac
import time
def verify(secret: str, header: str, body: bytes, tolerance: int = 300) -> bool:
parts = dict(part.strip().split("=", 1) for part in header.split(",") if "=" in part)
stamp = int(parts.get("t", "0"))
if abs(time.time() - stamp) > tolerance:
return False
expected = hmac.new(secret.encode(), f"{stamp}.".encode() + body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, parts.get("v1", ""))

Pass the body as your framework received it, before any parsing: a body parsed and written out again is not the one that was signed.

Roll the Secret makes a new signing secret, shown once. The old one stops at once, so put the new one in place right after.

  1. In Slack, make an app for your workspace (or open the one you have), turn on Incoming Webhooks, and choose Add New Webhook to Workspace with the channel to post to.
  2. Copy the webhook’s address. It begins https://hooks.slack.com/services/. It is a secret: anyone who has it can post to the channel.
  3. In NetBlueprint Forge, add a webhook of the kind Slack with that address.

Teams takes webhooks through its Workflows app; the older Office 365 connectors are retired.

  1. In Teams, open the channel’s More options, choose Workflows, and pick the template Send webhook alerts to a channel (or make a workflow that starts with When a Teams webhook request is received and posts the card it receives).
  2. Save it and copy the address it shows. It is on api.powerplatform.com (an older workflow’s is on logic.azure.com) and carries its signature in the query: it is a secret.
  3. In NetBlueprint Forge, add a webhook of the kind Microsoft Teams with that address.

A workflow belongs to the person who made it. Add a co-owner in Power Automate, so the webhook keeps working when they leave.

An Automation rule with an Incoming webhook trigger gets the event as JSON, which it reads as {{webhookData.…}}, and acts on it. The Jira Automation recipe sets up a rule that makes an issue for each planned control and writes the issue’s key back to the control.

A webhook sends events out of the application, past who may see what. So by default a webhook gets only the events of models everyone in your organization may see. With Include Restricted Models on, it also gets the events of restricted models: their names and the facts of each event go to wherever the address leads, and to whoever can read it there. Turn it on only for an address that only the people who may see those models can read.

The rule is checked when the event happens and again when it is sent: a webhook that stopped including restricted models is not sent the events queued for it.

Send a Test posts a ping to the webhook now, active or paused, and shows the answer: the status code and how long it took, or why it was not taken. A test is one attempt.

Recent Deliveries lists the last 50 deliveries of a webhook, kept 30 days: the event, when, whether it was sent, the attempts, and the last answer’s status code and time. What the other side answered is never kept. Send Again queues a failed delivery’s event once more, as a new delivery, under the rules that hold now.

An answer of 2xx is a delivery. Anything else is a failure, a redirect included: the application never follows one. A request with no answer in 10 seconds has failed too. A failed delivery is tried again after 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours; after the sixth attempt it is marked Failed.

A webhook whose deliveries have all failed for a day is paused, and the activity log says so. Fix the other side, choose Send a Test, then Change it and turn Active back on.

An address is checked when it is saved, and again at every connection, to the address actually connected to:

  • Only https, on port 443, with no user name or password in it and no # part.
  • No address inside the server or its network: loopback, link-local (the clouds’ metadata services among them), private networks (10/8, 172.16/12, 192.168/16), the carrier-shared range (100.64/10), IPv6 unique local and link-local addresses, the unspecified address, reserved ranges, and the IPv4-mapped forms of all of those. A name that resolves to any such address is refused, and so is one that cannot be found.
  • A Slack address must be on hooks.slack.com (or GovSlack’s hooks.slack-gov.com), a Teams one on api.powerplatform.com or logic.azure.com, a Jira Automation one on atlassian.com.
  • No redirect is followed, and the body of an answer is never read.

Every change to a webhook, every new secret, every removal and every pause is in the activity log, with the webhook’s host and never its address, its secret or a token.

The API posts webhooks itself, so it needs to reach the internet on port 443, as it does for an AI vendor. Three settings, in the Webhooks section:

Setting Default What it does
Webhooks:Enabled true false sends no webhook at all, refuses tests, and says so on the page.
Webhooks:AllowPrivateAddresses false true lets an address lead into a private network, for a self-hosted instance whose receiver is inside it. Loopback, link-local and metadata services stay refused.
Webhooks:DeliverySeconds 15 How often each API process looks for deliveries that are due; 0 leaves the sending to the other processes.