Skip to main content

outbound webhooks

The Outbound Webhooks integration POSTs signed JSON events to any HTTPS endpoint you control as things happen in PosKit. It sits in the Automation & Webhooks group of the integrations catalogue, carrying the Outbound Events capability badge, and works with anything that can receive an HTTP POST — Zapier, Make, n8n, or your own services.

Unlike the per-rule webhook alert action, this is an organization-level integration: it fires on the events you subscribe to across the whole estate, deliveries are queued with automatic retries, and every attempt is recorded in the integration's activity log.

setup fields​

FieldNotes
Endpoint URLRequired — a public HTTPS endpoint that returns a 2xx for POSTs. Private and internal addresses are rejected
Subscribed EventsRequired — pick at least one event type
Signing SecretRequired — generated for you in the form; copy it to your receiver before saving. Stored encrypted and not shown again

You can run several webhook integrations side by side — one endpoint per integration, each with its own event subscriptions and secret.

event types​

EventFires when
alert.triggeredAn alert rule fires
alert.acknowledgedSomeone acknowledges an alert
alert.resolvedAn alert resolves, manually or automatically
alert.escalatedAn alert escalates
device.onlineA device comes back from offline
device.offlineA device stops reporting and is marked offline
integration.sync_failedA data sync on another integration fails
pingAlways sent by Test connection, regardless of subscriptions

payload​

Every delivery is a JSON envelope:

{
"id": "5f0f8c3e-…",
"event": "alert.triggered",
"occurredAt": "2026-09-14T12:00:00.000Z",
"organizationId": "org_…",
"data": {
"alert": { "id": "…", "title": "…", "level": "CRITICAL" },
"device": { "id": "…", "name": "POS-01" },
"location": { "id": "…", "name": "Soho" }
}
}

The data shape depends on the event type; the envelope fields are always present. id is the delivery id, also sent as the X-PosKit-Delivery header.

verifying signatures​

Each request carries:

HeaderContents
X-PosKit-EventThe event type
X-PosKit-DeliveryThe delivery id (use it to deduplicate)
X-PosKit-Signaturet=<unix seconds>,v1=<hex hmac>

To verify, compute HMAC-SHA256(secret, "<t>.<raw request body>") and compare it (constant-time) against v1:

const crypto = require("node:crypto");

function verify(secret, signatureHeader, rawBody) {
// {64} pins the length, so timingSafeEqual can't throw on a malformed header
const [, t, v1] = signatureHeader.match(/^t=(\d+),v1=([0-9a-f]{64})$/) ?? [];
if (!t) return false;
const expected = crypto
.createHmac("sha256", secret)
.update(`${t}.${rawBody}`)
.digest("hex");
return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));
}

Reject stale timestamps (e.g. older than 5 minutes) if replay protection matters to you.

delivery, retries, and failure​

  • Deliveries are queued — a slow endpoint never slows down alerting.
  • A delivery counts as successful only on a 2xx response within 10 seconds. Redirects are treated as failures and never followed.
  • Failed deliveries are retried automatically a few times before being parked on a dead-letter queue.
  • Deliveries are at-least-once: a retried delivery can arrive twice, so deduplicate on X-PosKit-Delivery if your handler is not idempotent.
  • Every attempt lands in the integration's activity log as DELIVER_EVENT. A failed delivery flips the integration to ERROR with the failure as the last error (hover the status in the list); the next successful delivery flips it back to ACTIVE.

row actions​

ActionWhat it does
Test connectionSends a signed ping event and expects a 2xx
Sync dataSummarises the last 7 days of deliveries (delivered vs failed attempts)

permissions​

Standard integration permissions apply — see integrations: integration:create to add, integration:edit to edit or test, integration:delete to remove.