Skip to content

Webhooks

A webhook is a URL the Platform posts a signed JSON event to when something finishes or changes: a run of steps, a load, a host. Your receiver posts to chat, updates a ticket, or lets a pipeline through. The Platform keeps a record of every delivery and retries the ones that fail.

Under Settings, Webhooks (admins): the URL, a secret of at least 16 characters, and the events wanted:

  • run.finished: a run of steps ended, passed, failed or in error.
  • load.finished: a load run ended with its verdict.
  • host.changed: a simulated host was created, changed, started, stopped or deleted.

The secret is kept to sign deliveries and never shown again. Send a test posts a ping event now and shows the receiver’s answer.

URLs to loopback, link-local and private addresses are refused unless the install sets ISO8583SIM_PLATFORM_WEBHOOKS_ALLOW_PRIVATE=true (a relay on the same network). Set ISO8583SIM_PLATFORM_PUBLIC_URL to the console’s address so the payload’s links are whole.

{
"event": "run.finished",
"delivery_id": "6f1c2d9e-...",
"sent_at": "2026-10-22T21:04:11.120934+00:00",
"subject": {
"id": 412, "scenario_id": 7, "scenario_name": "Authorization basics", "kind": "steps",
"status": "failed", "trigger": "api", "suite": "cli-20261022-210300-1a2b3c",
"passed": 3, "failed": 1, "error": null,
"created_at": "...", "finished_at": "...",
"path": "/runs/412", "url": "https://platform.example.com/runs/412"
}
}

Headers: X-ISO8583sim-Event (the event), X-ISO8583sim-Delivery (the delivery id, the same on every retry, so a receiver can ignore a repeat), and X-ISO8583sim-Signature.

A host event’s subject has the host’s id, name, port, enabled, version and change (created, updated, started, stopped, deleted).

The signature header is t=<unix seconds>,v1=<hex>, where the hex is HMAC SHA-256 with your secret over "<t>." + body. Refuse a signature whose time is more than a few minutes off, so a captured delivery can’t be replayed:

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

Answer with any 2xx status. Anything else, a connection error or ten seconds without an answer counts as a failed attempt.

Pick the Slack message or Microsoft Teams message format and give the URL of the channel’s incoming webhook. The Platform then posts the message those services expect instead of the JSON event: a title with the outcome (“Run failed: Nightly regression”), the counts, what started it, and a link to the console. Both services take the message as it is; the signature headers are sent too but neither service checks them, so keep the incoming webhook URL itself private.

In Slack, add an incoming webhook to the channel (Slack’s “Incoming Webhooks” app) and paste its URL. In Teams, add an “Incoming Webhook” connector to the channel, or a Workflows “post to a channel when a webhook request is received” flow, and paste its URL.

A failed attempt is tried again after 10 seconds, then a minute, then five minutes; after four attempts the delivery is marked failed. The webhook’s page shows the last deliveries with their status, attempts, the receiver’s status code and the error, and keeps the latest 200.

The Platform never follows a redirect: the signed body goes to the URL you gave and nowhere else.